{
  "components": {
    "schemas": {
      "Actor": {
        "properties": {
          "display": {
            "maxLength": 160,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "kind": {
            "anyOf": [
              {
                "enum": [
                  "human",
                  "api_credential",
                  "mcp_client",
                  "operator",
                  "system"
                ],
                "type": "string"
              },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          }
        },
        "required": ["kind"],
        "title": "Actor",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/events.ts#ActorSchema",
        "x-signalsitter-source-only-refinements": [
          "Actors other than system actors require an opaque actor ID."
        ]
      },
      "AnomalyFeedbackPage": {
        "additionalProperties": false,
        "properties": {
          "counts": {
            "additionalProperties": false,
            "properties": {
              "accept_normal": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "expected": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "not_useful": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "useful": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": ["accept_normal", "expected", "not_useful", "useful"],
            "type": "object"
          },
          "items": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "actor": {
                  "properties": {
                    "display": {
                      "maxLength": 160,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "id": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                      "type": "string"
                    },
                    "kind": {
                      "anyOf": [
                        {
                          "enum": [
                            "human",
                            "api_credential",
                            "mcp_client",
                            "operator",
                            "system"
                          ],
                          "type": "string"
                        },
                        {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": ["kind"],
                  "type": "object"
                },
                "configurationVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "feedbackId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "incidentId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "note": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "observationSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "replayed": { "type": "boolean" },
                "submittedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "verdict": {
                  "enum": ["accept_normal", "expected", "not_useful", "useful"],
                  "type": "string"
                }
              },
              "required": [
                "actor",
                "configurationVersion",
                "feedbackId",
                "incidentId",
                "replayed",
                "submittedAt",
                "verdict"
              ],
              "type": "object"
            },
            "maxItems": 200,
            "type": "array"
          }
        },
        "required": ["counts", "items"],
        "title": "AnomalyFeedbackPage",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/anomaly-feedback.ts#AnomalyFeedbackPageSchema",
        "x-signalsitter-source-only-refinements": [
          "Verdict counts cannot describe fewer records than the page lists."
        ]
      },
      "AnomalyFeedbackRecord": {
        "additionalProperties": false,
        "properties": {
          "actor": {
            "properties": {
              "display": {
                "maxLength": 160,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "kind": {
                "anyOf": [
                  {
                    "enum": [
                      "human",
                      "api_credential",
                      "mcp_client",
                      "operator",
                      "system"
                    ],
                    "type": "string"
                  },
                  {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["kind"],
            "type": "object"
          },
          "configurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "feedbackId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "incidentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "note": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "observationSequence": {
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          },
          "replayed": { "type": "boolean" },
          "submittedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "verdict": {
            "enum": ["accept_normal", "expected", "not_useful", "useful"],
            "type": "string"
          }
        },
        "required": [
          "actor",
          "configurationVersion",
          "feedbackId",
          "incidentId",
          "replayed",
          "submittedAt",
          "verdict"
        ],
        "title": "AnomalyFeedbackRecord",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/anomaly-feedback.ts#AnomalyFeedbackRecordSchema"
      },
      "AnomalyFeedbackSubmitRequest": {
        "additionalProperties": false,
        "properties": {
          "note": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "observationSequence": {
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          },
          "verdict": {
            "enum": ["accept_normal", "expected", "not_useful", "useful"],
            "type": "string"
          }
        },
        "required": ["verdict"],
        "title": "AnomalyFeedbackSubmitRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/anomaly-feedback.ts#AnomalyFeedbackSubmitRequestSchema"
      },
      "AnomalyReplayCost": {
        "additionalProperties": false,
        "properties": {
          "detectorEvaluations": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "durationMilliseconds": { "minimum": 0, "type": "number" },
          "meanMicrosecondsPerObservation": { "minimum": 0, "type": "number" },
          "measurementEvaluations": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "observationsEvaluated": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "detectorEvaluations",
          "durationMilliseconds",
          "meanMicrosecondsPerObservation",
          "measurementEvaluations",
          "observationsEvaluated"
        ],
        "title": "AnomalyReplayCost",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/anomaly-replay.ts#AnomalyReplayCostSchema"
      },
      "AnomalyReplayDiff": {
        "additionalProperties": false,
        "properties": {
          "addedEpisodes": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "observationsInEpisode": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "openedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "openedAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "recoveredAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "recoveredAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "severity": {
                  "enum": ["info", "warning", "critical"],
                  "type": "string"
                },
                "triggers": {
                  "items": {
                    "enum": [
                      "explicit_rule",
                      "extreme_deviation",
                      "moderate_confirmation",
                      "persistent_shift"
                    ],
                    "type": "string"
                  },
                  "maxItems": 4,
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "explanation",
                "observationsInEpisode",
                "openedAt",
                "openedAtSequence",
                "severity",
                "triggers"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "matchedEpisodes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "recordedEpisodeCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "recordedObservations": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "removedEpisodes": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "observationsInEpisode": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "openedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "openedAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "recoveredAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "recoveredAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "severity": {
                  "enum": ["info", "warning", "critical"],
                  "type": "string"
                },
                "triggers": {
                  "items": {
                    "enum": [
                      "explicit_rule",
                      "extreme_deviation",
                      "moderate_confirmation",
                      "persistent_shift"
                    ],
                    "type": "string"
                  },
                  "maxItems": 4,
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "explanation",
                "observationsInEpisode",
                "openedAt",
                "openedAtSequence",
                "severity",
                "triggers"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "truncated": { "type": "boolean" }
        },
        "required": [
          "addedEpisodes",
          "matchedEpisodes",
          "recordedEpisodeCount",
          "recordedObservations",
          "removedEpisodes",
          "truncated"
        ],
        "title": "AnomalyReplayDiff",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/anomaly-replay.ts#AnomalyReplayDiffSchema"
      },
      "AnomalyReplayEpisode": {
        "additionalProperties": false,
        "properties": {
          "explanation": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "observationsInEpisode": {
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          },
          "openedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "openedAtSequence": {
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          },
          "recoveredAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "recoveredAtSequence": {
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          },
          "severity": {
            "enum": ["info", "warning", "critical"],
            "type": "string"
          },
          "triggers": {
            "items": {
              "enum": [
                "explicit_rule",
                "extreme_deviation",
                "moderate_confirmation",
                "persistent_shift"
              ],
              "type": "string"
            },
            "maxItems": 4,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "explanation",
          "observationsInEpisode",
          "openedAt",
          "openedAtSequence",
          "severity",
          "triggers"
        ],
        "title": "AnomalyReplayEpisode",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/anomaly-replay.ts#AnomalyReplayEpisodeSchema",
        "x-signalsitter-source-only-refinements": [
          "An episode cannot recover before it opened, and a recovered episode records both its time and its sequence."
        ]
      },
      "AnomalyReplayRequest": {
        "additionalProperties": false,
        "properties": {
          "historyLimit": { "maximum": 200, "minimum": 1, "type": "integer" },
          "patch": {
            "additionalProperties": false,
            "properties": {
              "callback": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "disabled", "type": "string" }
                    },
                    "required": ["kind"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "organization_default",
                        "type": "string"
                      }
                    },
                    "required": ["kind"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "alias": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "kind": { "const": "named", "type": "string" }
                    },
                    "required": ["kind", "alias"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "inline", "type": "string" },
                      "url": {
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      }
                    },
                    "required": ["kind", "url"],
                    "type": "object"
                  }
                ]
              },
              "graceSeconds": {
                "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                "maximum": 604800,
                "minimum": 0,
                "type": "integer"
              },
              "heartbeatExpectation": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "graceSeconds": {
                        "default": 60,
                        "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "intervalSeconds": {
                        "maximum": 31536000,
                        "minimum": 60,
                        "type": "integer"
                      },
                      "state": { "const": "enabled", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["intervalSeconds", "state", "version"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "state": { "const": "disabled", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["state", "version"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "graceSeconds": {
                        "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "state": { "const": "automatic", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["state", "version"],
                    "type": "object"
                  }
                ]
              },
              "incidentPolicy": {
                "additionalProperties": false,
                "properties": {
                  "anomalySensitivity": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "notificationCooldownSeconds": {
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "recoveryConfirmationBeats": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "regimeChangeMode": {
                    "enum": ["manual", "automatic"],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "intervalSeconds": {
                "maximum": 31536000,
                "minimum": 60,
                "type": "integer"
              },
              "measurements": {
                "additionalProperties": {
                  "additionalProperties": false,
                  "properties": {
                    "disabledRules": {
                      "items": {
                        "enum": [
                          "minimum",
                          "maximum",
                          "zero",
                          "nonzero",
                          "absolute_delta",
                          "percentage_delta",
                          "ratio_minimum",
                          "ratio_maximum"
                        ],
                        "type": "string"
                      },
                      "maxItems": 8,
                      "type": "array"
                    },
                    "maximum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    },
                    "maximumAbsoluteDelta": {
                      "anyOf": [
                        { "minimum": 0, "type": "number" },
                        { "type": "null" }
                      ]
                    },
                    "maximumPercentageDelta": {
                      "anyOf": [
                        { "minimum": 0, "type": "number" },
                        { "type": "null" }
                      ]
                    },
                    "metricType": {
                      "enum": [
                        "gauge",
                        "count",
                        "rate",
                        "duration",
                        "counter",
                        "size"
                      ],
                      "type": "string"
                    },
                    "minimum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    },
                    "missingPolicy": {
                      "enum": ["skip", "zero", "reject"],
                      "type": "string"
                    },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    },
                    "ratio": {
                      "additionalProperties": false,
                      "properties": {
                        "denominator": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maximum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        },
                        "minimum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        }
                      },
                      "type": "object"
                    },
                    "ruleAction": {
                      "additionalProperties": false,
                      "properties": {
                        "mode": {
                          "enum": ["inactive", "active"],
                          "type": "string"
                        },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["mode", "version"],
                      "type": "object"
                    },
                    "rulePolicy": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "consecutiveObservations": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "sustainedConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "sustainedCriterion": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "observations",
                                      "type": "string"
                                    },
                                    "observations": {
                                      "maximum": 10,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "observations"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "elapsed_time",
                                      "type": "string"
                                    },
                                    "seconds": {
                                      "maximum": 604800,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "seconds"],
                                  "type": "object"
                                }
                              ]
                            },
                            "transientConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["version"],
                          "type": "object"
                        }
                      ]
                    },
                    "sensitivity": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "zeroExpectation": {
                      "anyOf": [
                        { "enum": ["zero", "nonzero"], "type": "string" },
                        { "type": "null" }
                      ]
                    }
                  },
                  "type": "object"
                },
                "propertyNames": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "type": "object"
              },
              "name": {
                "maxLength": 120,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "timeZone": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "title": "AnomalyReplayRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/anomaly-replay.ts#AnomalyReplayRequestSchema"
      },
      "AnomalyReplayResult": {
        "additionalProperties": false,
        "properties": {
          "baseConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "candidateEpisodeCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "cost": {
            "additionalProperties": false,
            "properties": {
              "detectorEvaluations": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "durationMilliseconds": { "minimum": 0, "type": "number" },
              "meanMicrosecondsPerObservation": {
                "minimum": 0,
                "type": "number"
              },
              "measurementEvaluations": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "observationsEvaluated": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "detectorEvaluations",
              "durationMilliseconds",
              "meanMicrosecondsPerObservation",
              "measurementEvaluations",
              "observationsEvaluated"
            ],
            "type": "object"
          },
          "diff": {
            "additionalProperties": false,
            "properties": {
              "addedEpisodes": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "observationsInEpisode": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "openedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "openedAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "recoveredAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "recoveredAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "triggers": {
                      "items": {
                        "enum": [
                          "explicit_rule",
                          "extreme_deviation",
                          "moderate_confirmation",
                          "persistent_shift"
                        ],
                        "type": "string"
                      },
                      "maxItems": 4,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "explanation",
                    "observationsInEpisode",
                    "openedAt",
                    "openedAtSequence",
                    "severity",
                    "triggers"
                  ],
                  "type": "object"
                },
                "maxItems": 32,
                "type": "array"
              },
              "matchedEpisodes": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "recordedEpisodeCount": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "recordedObservations": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "removedEpisodes": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "observationsInEpisode": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "openedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "openedAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "recoveredAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "recoveredAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "triggers": {
                      "items": {
                        "enum": [
                          "explicit_rule",
                          "extreme_deviation",
                          "moderate_confirmation",
                          "persistent_shift"
                        ],
                        "type": "string"
                      },
                      "maxItems": 4,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "explanation",
                    "observationsInEpisode",
                    "openedAt",
                    "openedAtSequence",
                    "severity",
                    "triggers"
                  ],
                  "type": "object"
                },
                "maxItems": 32,
                "type": "array"
              },
              "truncated": { "type": "boolean" }
            },
            "required": [
              "addedEpisodes",
              "matchedEpisodes",
              "recordedEpisodeCount",
              "recordedObservations",
              "removedEpisodes",
              "truncated"
            ],
            "type": "object"
          },
          "evaluatedObservations": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "fromSequence": {
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          },
          "inputSummary": {
            "additionalProperties": false,
            "properties": {
              "evaluatedMeasurementKeys": {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "maxItems": 32,
                "type": "array"
              },
              "numericObservationCount": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "policyActive": { "type": "boolean" },
              "publishedMeasurementKeyCount": {
                "maximum": 3200,
                "minimum": 0,
                "type": "integer"
              },
              "publishedMeasurementKeys": {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "maxItems": 32,
                "type": "array"
              },
              "selectedMeasurementKeys": {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "maxItems": 32,
                "type": "array"
              }
            },
            "required": [
              "evaluatedMeasurementKeys",
              "numericObservationCount",
              "policyActive",
              "publishedMeasurementKeyCount",
              "publishedMeasurementKeys",
              "selectedMeasurementKeys"
            ],
            "type": "object"
          },
          "proposedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "release": {
            "additionalProperties": false,
            "properties": {
              "engineVersions": {
                "additionalProperties": false,
                "properties": {
                  "adaptiveBaseline": {
                    "maximum": 999,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "explicitRule": {
                    "maximum": 999,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "incidentPolicy": {
                    "maximum": 999,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "persistentShift": {
                    "maximum": 999,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "seasonalBaseline": {
                    "maximum": 999,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [
                  "adaptiveBaseline",
                  "explicitRule",
                  "incidentPolicy",
                  "persistentShift",
                  "seasonalBaseline"
                ],
                "type": "object"
              },
              "releaseId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[a-z0-9][a-z0-9-]*$",
                "type": "string"
              }
            },
            "required": ["engineVersions", "releaseId"],
            "type": "object"
          },
          "replayedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "throughSequence": {
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          },
          "unavailableEvidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "evidence": {
                  "enum": [
                    "adaptive_baseline",
                    "explicit_rule",
                    "incident_policy",
                    "persistent_shift",
                    "seasonal_baseline"
                  ],
                  "type": "string"
                },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "reason": {
                  "enum": ["engine_version", "unreadable"],
                  "type": "string"
                },
                "recordedEngineVersion": {
                  "maximum": 999,
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": ["evidence", "explanation", "reason"],
              "type": "object"
            },
            "maxItems": 5,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "baseConfigurationVersion",
          "candidateEpisodeCount",
          "cost",
          "diff",
          "evaluatedObservations",
          "proposedConfigurationVersion",
          "release",
          "replayedAt"
        ],
        "title": "AnomalyReplayResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/anomaly-replay.ts#AnomalyReplayResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Unavailable-evidence entries name each stored record at most once, carry this contract's own explanation for their reason, and state a recorded engine version exactly when the engine version is the reason and never the version this build runs.",
          "A replayed window names both ends or neither, its cost describes the window that was replayed, and its diff cannot claim more episodes than either timeline holds."
        ]
      },
      "ApiCredentialCreateCommand": {
        "properties": {
          "expiresAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "label": {
            "maxLength": 100,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "preset": {
            "enum": ["read", "write", "readwrite", "manage"],
            "type": "string"
          }
        },
        "required": ["idempotencyKey", "label", "preset"],
        "title": "ApiCredentialCreateCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/credentials.ts#ApiCredentialCreateCommandSchema"
      },
      "ApiCredentialCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "expiresAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "label": {
            "maxLength": 100,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "preset": {
            "enum": ["read", "write", "readwrite", "manage"],
            "type": "string"
          }
        },
        "required": ["label", "preset"],
        "title": "ApiCredentialCreateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#ApiCredentialCreateRequestSchema"
      },
      "ApiCredentialId": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
        "title": "ApiCredentialId",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/credentials.ts#ApiCredentialIdSchema"
      },
      "ApiCredentialIssueResult": {
        "properties": {
          "credential": {
            "properties": {
              "createdAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "generation": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "label": {
                "maxLength": 100,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "lastUsedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "prefix": {
                "pattern": "^sig_v1_[A-Za-z0-9_-]{16}$",
                "type": "string"
              },
              "preset": {
                "enum": ["read", "write", "readwrite", "manage"],
                "type": "string"
              },
              "projectId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "revokedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "rotatedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "scopes": {
                "items": {
                  "enum": [
                    "callbacks:read",
                    "callbacks:write",
                    "credentials:write",
                    "incidents:read",
                    "incidents:write",
                    "monitors:read",
                    "monitors:write",
                    "observations:read",
                    "organization:write",
                    "organization:destroy",
                    "projects:read",
                    "projects:write",
                    "projects:administer",
                    "usage:read"
                  ],
                  "type": "string"
                },
                "maxItems": 14,
                "minItems": 1,
                "type": "array"
              },
              "state": { "enum": ["active", "revoked"], "type": "string" }
            },
            "required": [
              "id",
              "projectId",
              "label",
              "prefix",
              "preset",
              "scopes",
              "state",
              "generation",
              "createdAt"
            ],
            "type": "object"
          },
          "replayed": { "type": "boolean" },
          "secret": {
            "properties": {
              "onlyShownOnce": { "const": true, "type": "boolean" },
              "revealedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "secret": {
                "maxLength": 2048,
                "pattern": "^sig_v1_[A-Za-z0-9_-]{16}\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]{43}\\.[A-Za-z0-9_-]{43}$",
                "type": "string"
              }
            },
            "required": ["secret", "revealedAt", "onlyShownOnce"],
            "type": "object"
          }
        },
        "required": ["credential", "replayed"],
        "title": "ApiCredentialIssueResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/credentials.ts#ApiCredentialIssueResultSchema",
        "x-signalsitter-source-only-refinements": [
          "A new credential reveals one secret while an idempotent replay reveals none."
        ]
      },
      "ApiCredentialListPage": {
        "properties": {
          "items": {
            "items": {
              "properties": {
                "createdAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "expiresAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "generation": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "id": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "label": {
                  "maxLength": 100,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "lastUsedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "prefix": {
                  "pattern": "^sig_v1_[A-Za-z0-9_-]{16}$",
                  "type": "string"
                },
                "preset": {
                  "enum": ["read", "write", "readwrite", "manage"],
                  "type": "string"
                },
                "projectId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "revokedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "rotatedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "scopes": {
                  "items": {
                    "enum": [
                      "callbacks:read",
                      "callbacks:write",
                      "credentials:write",
                      "incidents:read",
                      "incidents:write",
                      "monitors:read",
                      "monitors:write",
                      "observations:read",
                      "organization:write",
                      "organization:destroy",
                      "projects:read",
                      "projects:write",
                      "projects:administer",
                      "usage:read"
                    ],
                    "type": "string"
                  },
                  "maxItems": 14,
                  "minItems": 1,
                  "type": "array"
                },
                "state": { "enum": ["active", "revoked"], "type": "string" }
              },
              "required": [
                "id",
                "projectId",
                "label",
                "prefix",
                "preset",
                "scopes",
                "state",
                "generation",
                "createdAt"
              ],
              "type": "object"
            },
            "maxItems": 200,
            "type": "array"
          },
          "nextCursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["items"],
        "title": "ApiCredentialListPage",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/credentials.ts#ApiCredentialListPageSchema",
        "x-signalsitter-source-only-refinements": [
          "Each item preserves the credential metadata preset/scope and lifecycle refinements."
        ]
      },
      "ApiCredentialListPageRequest": {
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          }
        },
        "title": "ApiCredentialListPageRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/credentials.ts#ApiCredentialListPageRequestSchema"
      },
      "ApiCredentialMetadata": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "expiresAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "generation": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "label": {
            "maxLength": 100,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "lastUsedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "prefix": {
            "pattern": "^sig_v1_[A-Za-z0-9_-]{16}$",
            "type": "string"
          },
          "preset": {
            "enum": ["read", "write", "readwrite", "manage"],
            "type": "string"
          },
          "projectId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "revokedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "rotatedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "scopes": {
            "items": {
              "enum": [
                "callbacks:read",
                "callbacks:write",
                "credentials:write",
                "incidents:read",
                "incidents:write",
                "monitors:read",
                "monitors:write",
                "observations:read",
                "organization:write",
                "organization:destroy",
                "projects:read",
                "projects:write",
                "projects:administer",
                "usage:read"
              ],
              "type": "string"
            },
            "maxItems": 14,
            "minItems": 1,
            "type": "array"
          },
          "state": { "enum": ["active", "revoked"], "type": "string" }
        },
        "required": [
          "id",
          "projectId",
          "label",
          "prefix",
          "preset",
          "scopes",
          "state",
          "generation",
          "createdAt"
        ],
        "title": "ApiCredentialMetadata",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/credentials.ts#ApiCredentialMetadataSchema",
        "x-signalsitter-source-only-refinements": [
          "Scopes exactly match the preset, lifecycle timestamps do not precede creation, and revocation state agrees with revokedAt."
        ]
      },
      "ApiCredentialPreset": {
        "enum": ["read", "write", "readwrite", "manage"],
        "title": "ApiCredentialPreset",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/credentials.ts#ApiCredentialPresetSchema"
      },
      "ApiCredentialRevokeCommand": {
        "properties": {
          "credentialId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["credentialId"],
        "title": "ApiCredentialRevokeCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/credentials.ts#ApiCredentialRevokeCommandSchema"
      },
      "ApiCredentialRotateCommand": {
        "properties": {
          "credentialId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "expiresAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              { "type": "null" }
            ]
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "overlapSeconds": {
            "default": 300,
            "maximum": 900,
            "minimum": 0,
            "type": "integer"
          },
          "preset": {
            "enum": ["read", "write", "readwrite", "manage"],
            "type": "string"
          }
        },
        "required": ["credentialId", "idempotencyKey"],
        "title": "ApiCredentialRotateCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/credentials.ts#ApiCredentialRotateCommandSchema"
      },
      "ApiCredentialRotateRequest": {
        "additionalProperties": false,
        "properties": {
          "expiresAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              { "type": "null" }
            ]
          },
          "overlapSeconds": {
            "default": 300,
            "maximum": 900,
            "minimum": 0,
            "type": "integer"
          },
          "preset": {
            "enum": ["read", "write", "readwrite", "manage"],
            "type": "string"
          }
        },
        "title": "ApiCredentialRotateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#ApiCredentialRotateRequestSchema"
      },
      "AuditRecord": {
        "properties": {
          "action": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
            "type": "string"
          },
          "actor": {
            "properties": {
              "display": {
                "maxLength": 160,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "kind": {
                "anyOf": [
                  {
                    "enum": [
                      "human",
                      "api_credential",
                      "mcp_client",
                      "operator",
                      "system"
                    ],
                    "type": "string"
                  },
                  {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["kind"],
            "type": "object"
          },
          "correlationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "occurredAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "organizationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "outcome": {
            "enum": ["succeeded", "denied", "failed"],
            "type": "string"
          },
          "target": {
            "properties": {
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "type": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            },
            "required": ["type", "id"],
            "type": "object"
          }
        },
        "required": [
          "id",
          "occurredAt",
          "organizationId",
          "correlationId",
          "actor",
          "action",
          "target",
          "outcome"
        ],
        "title": "AuditRecord",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/events.ts#AuditRecordSchema",
        "x-signalsitter-source-only-refinements": [
          "Nested actors other than system actors require an opaque actor ID."
        ]
      },
      "AuthorizationScope": {
        "enum": [
          "callbacks:read",
          "callbacks:write",
          "credentials:write",
          "incidents:read",
          "incidents:write",
          "monitors:read",
          "monitors:write",
          "observations:read",
          "organization:write",
          "organization:destroy",
          "projects:read",
          "projects:write",
          "projects:administer",
          "usage:read"
        ],
        "title": "AuthorizationScope",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/authorization.ts#AuthorizationScopeSchema"
      },
      "AuthorizationScopeSet": {
        "items": {
          "enum": [
            "callbacks:read",
            "callbacks:write",
            "credentials:write",
            "incidents:read",
            "incidents:write",
            "monitors:read",
            "monitors:write",
            "observations:read",
            "organization:write",
            "organization:destroy",
            "projects:read",
            "projects:write",
            "projects:administer",
            "usage:read"
          ],
          "type": "string"
        },
        "maxItems": 14,
        "minItems": 1,
        "title": "AuthorizationScopeSet",
        "type": "array",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/authorization.ts#AuthorizationScopeSetSchema",
        "x-signalsitter-source-only-refinements": [
          "Authorization scope values must be unique within a scope set."
        ]
      },
      "BillingAllotmentTransitionChange": {
        "additionalProperties": false,
        "properties": {
          "action": { "enum": ["suspended", "released"], "type": "string" },
          "appliedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "cause": {
            "enum": [
              "catalog_revision",
              "subscription_reconciliation",
              "operator_assignment"
            ],
            "type": "string"
          },
          "fromPlan": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "enum": ["free", "builder", "smart", "scale"],
                "type": "string"
              },
              "name": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              }
            },
            "required": ["id", "name", "version"],
            "type": "object"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "planChangedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "toPlan": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "enum": ["free", "builder", "smart", "scale"],
                "type": "string"
              },
              "name": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              }
            },
            "required": ["id", "name", "version"],
            "type": "object"
          },
          "transitionId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": [
          "action",
          "appliedAt",
          "cause",
          "fromPlan",
          "jurisdiction",
          "monitorId",
          "planChangedAt",
          "toPlan",
          "transitionId"
        ],
        "title": "BillingAllotmentTransitionChange",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/billing.ts#BillingAllotmentTransitionChangeSchema"
      },
      "BillingAllotmentTransitionChangePage": {
        "properties": {
          "items": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "action": {
                  "enum": ["suspended", "released"],
                  "type": "string"
                },
                "appliedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "cause": {
                  "enum": [
                    "catalog_revision",
                    "subscription_reconciliation",
                    "operator_assignment"
                  ],
                  "type": "string"
                },
                "fromPlan": {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "enum": ["free", "builder", "smart", "scale"],
                      "type": "string"
                    },
                    "name": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                      "type": "string"
                    },
                    "version": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": ["id", "name", "version"],
                  "type": "object"
                },
                "jurisdiction": {
                  "enum": ["unrestricted", "eu", "us", "fedramp"],
                  "type": "string"
                },
                "monitorId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "planChangedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "toPlan": {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "enum": ["free", "builder", "smart", "scale"],
                      "type": "string"
                    },
                    "name": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                      "type": "string"
                    },
                    "version": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": ["id", "name", "version"],
                  "type": "object"
                },
                "transitionId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                }
              },
              "required": [
                "action",
                "appliedAt",
                "cause",
                "fromPlan",
                "jurisdiction",
                "monitorId",
                "planChangedAt",
                "toPlan",
                "transitionId"
              ],
              "type": "object"
            },
            "maxItems": 200,
            "type": "array"
          },
          "nextCursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["items"],
        "title": "BillingAllotmentTransitionChangePage",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/billing.ts#BillingAllotmentTransitionChangePageSchema"
      },
      "BillingAllotmentTransitionListRequest": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          }
        },
        "title": "BillingAllotmentTransitionListRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/billing.ts#BillingAllotmentTransitionListRequestSchema"
      },
      "BillingCheckoutAvailability": {
        "additionalProperties": false,
        "properties": { "checkoutAvailable": { "type": "boolean" } },
        "required": ["checkoutAvailable"],
        "title": "BillingCheckoutAvailability",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/billing.ts#BillingCheckoutAvailabilitySchema"
      },
      "BillingCheckoutSessionRequest": {
        "additionalProperties": false,
        "properties": {
          "planId": {
            "enum": ["free", "builder", "smart", "scale"],
            "type": "string"
          }
        },
        "required": ["planId"],
        "title": "BillingCheckoutSessionRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/billing.ts#BillingCheckoutSessionRequestSchema"
      },
      "BillingPortalSessionRequest": {
        "additionalProperties": false,
        "properties": {},
        "title": "BillingPortalSessionRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/billing.ts#BillingPortalSessionRequestSchema"
      },
      "BillingSession": {
        "additionalProperties": false,
        "properties": {
          "expiresAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "url": { "format": "uri", "maxLength": 2048, "type": "string" }
        },
        "required": ["expiresAt", "url"],
        "title": "BillingSession",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/billing.ts#BillingSessionSchema",
        "x-signalsitter-source-only-refinements": [
          "A billing session URL is an HTTPS URL."
        ]
      },
      "CallbackDeliveryAttempt": {
        "additionalProperties": false,
        "properties": {
          "attempt": { "maximum": 1000, "minimum": 1, "type": "integer" },
          "completedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "deliveryId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "outcome": {
            "enum": ["success", "retryable", "terminal", "unknown"],
            "type": "string"
          },
          "reason": {
            "anyOf": [
              {
                "enum": [
                  "binding_disabled",
                  "binding_unresolved",
                  "endpoint_disabled",
                  "inline_destination_unsupported",
                  "intent_payload_unsupported",
                  "signing_key_unavailable",
                  "destination_rejected",
                  "destination_unresolved",
                  "egress_rate_limited",
                  "http_success",
                  "http_client_error",
                  "http_server_error",
                  "network_error",
                  "timed_out",
                  "redirect_refused",
                  "response_too_large",
                  "attempts_exhausted",
                  "message_abandoned",
                  "superseded_before_delivery",
                  "heartbeat_disabled",
                  "monitor_deleted"
                ],
                "type": "string"
              },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "redelivery": { "type": "boolean" },
          "responsePrefix": {
            "maxLength": 256,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "responseStatus": {
            "maximum": 599,
            "minimum": 100,
            "type": "integer"
          },
          "startedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": [
          "attempt",
          "completedAt",
          "deliveryId",
          "outcome",
          "reason",
          "redelivery",
          "startedAt"
        ],
        "title": "CallbackDeliveryAttempt",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/callback-delivery.ts#CallbackDeliveryAttemptSchema"
      },
      "CallbackDeliveryDiagnostics": {
        "additionalProperties": false,
        "properties": {
          "attempts": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "attempt": { "maximum": 1000, "minimum": 1, "type": "integer" },
                "completedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "deliveryId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "outcome": {
                  "enum": ["success", "retryable", "terminal", "unknown"],
                  "type": "string"
                },
                "reason": {
                  "anyOf": [
                    {
                      "enum": [
                        "binding_disabled",
                        "binding_unresolved",
                        "endpoint_disabled",
                        "inline_destination_unsupported",
                        "intent_payload_unsupported",
                        "signing_key_unavailable",
                        "destination_rejected",
                        "destination_unresolved",
                        "egress_rate_limited",
                        "http_success",
                        "http_client_error",
                        "http_server_error",
                        "network_error",
                        "timed_out",
                        "redirect_refused",
                        "response_too_large",
                        "attempts_exhausted",
                        "message_abandoned",
                        "superseded_before_delivery",
                        "heartbeat_disabled",
                        "monitor_deleted"
                      ],
                      "type": "string"
                    },
                    {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    }
                  ]
                },
                "redelivery": { "type": "boolean" },
                "responsePrefix": {
                  "maxLength": 256,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "responseStatus": {
                  "maximum": 599,
                  "minimum": 100,
                  "type": "integer"
                },
                "startedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                }
              },
              "required": [
                "attempt",
                "completedAt",
                "deliveryId",
                "outcome",
                "reason",
                "redelivery",
                "startedAt"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "attemptsRemaining": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "eventId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "incidentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "intentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "lastOutcome": {
            "enum": ["success", "retryable", "terminal", "unknown"],
            "type": "string"
          },
          "lastReason": {
            "anyOf": [
              {
                "enum": [
                  "binding_disabled",
                  "binding_unresolved",
                  "endpoint_disabled",
                  "inline_destination_unsupported",
                  "intent_payload_unsupported",
                  "signing_key_unavailable",
                  "destination_rejected",
                  "destination_unresolved",
                  "egress_rate_limited",
                  "http_success",
                  "http_client_error",
                  "http_server_error",
                  "network_error",
                  "timed_out",
                  "redirect_refused",
                  "response_too_large",
                  "attempts_exhausted",
                  "message_abandoned",
                  "superseded_before_delivery",
                  "heartbeat_disabled",
                  "monitor_deleted"
                ],
                "type": "string"
              },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "nextAttemptAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "redeliverable": { "type": "boolean" },
          "remediation": {
            "maxLength": 1024,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "state": {
            "enum": [
              "pending_enqueue",
              "pending",
              "claimed",
              "succeeded",
              "retrying",
              "failed_terminal",
              "outcome_unknown",
              "dead_lettered"
            ],
            "type": "string"
          }
        },
        "required": [
          "attempts",
          "attemptsRemaining",
          "eventId",
          "incidentId",
          "intentId",
          "remediation",
          "state",
          "redeliverable"
        ],
        "title": "CallbackDeliveryDiagnostics",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/callback-delivery.ts#CallbackDeliveryDiagnosticsSchema"
      },
      "CallbackDeliveryDiagnosticsList": {
        "additionalProperties": false,
        "properties": {
          "deliveries": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "attempts": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "attempt": {
                        "maximum": 1000,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "completedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "deliveryId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "outcome": {
                        "enum": ["success", "retryable", "terminal", "unknown"],
                        "type": "string"
                      },
                      "reason": {
                        "anyOf": [
                          {
                            "enum": [
                              "binding_disabled",
                              "binding_unresolved",
                              "endpoint_disabled",
                              "inline_destination_unsupported",
                              "intent_payload_unsupported",
                              "signing_key_unavailable",
                              "destination_rejected",
                              "destination_unresolved",
                              "egress_rate_limited",
                              "http_success",
                              "http_client_error",
                              "http_server_error",
                              "network_error",
                              "timed_out",
                              "redirect_refused",
                              "response_too_large",
                              "attempts_exhausted",
                              "message_abandoned",
                              "superseded_before_delivery",
                              "heartbeat_disabled",
                              "monitor_deleted"
                            ],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      },
                      "redelivery": { "type": "boolean" },
                      "responsePrefix": {
                        "maxLength": 256,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "responseStatus": {
                        "maximum": 599,
                        "minimum": 100,
                        "type": "integer"
                      },
                      "startedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "attempt",
                      "completedAt",
                      "deliveryId",
                      "outcome",
                      "reason",
                      "redelivery",
                      "startedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "attemptsRemaining": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "eventId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "incidentId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "intentId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "lastOutcome": {
                  "enum": ["success", "retryable", "terminal", "unknown"],
                  "type": "string"
                },
                "lastReason": {
                  "anyOf": [
                    {
                      "enum": [
                        "binding_disabled",
                        "binding_unresolved",
                        "endpoint_disabled",
                        "inline_destination_unsupported",
                        "intent_payload_unsupported",
                        "signing_key_unavailable",
                        "destination_rejected",
                        "destination_unresolved",
                        "egress_rate_limited",
                        "http_success",
                        "http_client_error",
                        "http_server_error",
                        "network_error",
                        "timed_out",
                        "redirect_refused",
                        "response_too_large",
                        "attempts_exhausted",
                        "message_abandoned",
                        "superseded_before_delivery",
                        "heartbeat_disabled",
                        "monitor_deleted"
                      ],
                      "type": "string"
                    },
                    {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    }
                  ]
                },
                "nextAttemptAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "redeliverable": { "type": "boolean" },
                "remediation": {
                  "maxLength": 1024,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "state": {
                  "enum": [
                    "pending_enqueue",
                    "pending",
                    "claimed",
                    "succeeded",
                    "retrying",
                    "failed_terminal",
                    "outcome_unknown",
                    "dead_lettered"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "attempts",
                "attemptsRemaining",
                "eventId",
                "incidentId",
                "intentId",
                "remediation",
                "state",
                "redeliverable"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": ["deliveries"],
        "title": "CallbackDeliveryDiagnosticsList",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callback-delivery.ts#CallbackDeliveryDiagnosticsListSchema",
        "x-signalsitter-source-only-refinements": [
          "Nested delivery refinements apply to every delivery in the list."
        ]
      },
      "CallbackDeliveryIntentPayload": {
        "properties": {
          "anomaly": {
            "properties": {
              "confirmedObservations": {
                "maximum": 6,
                "minimum": 0,
                "type": "integer"
              },
              "measurements": {
                "items": {
                  "properties": {
                    "detector": {
                      "enum": [
                        "explicit_rule",
                        "adaptive_baseline",
                        "seasonal_baseline",
                        "persistent_shift"
                      ],
                      "type": "string"
                    },
                    "key": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    }
                  },
                  "required": ["detector", "key", "severity"],
                  "type": "object"
                },
                "maxItems": 8,
                "minItems": 1,
                "type": "array"
              },
              "requiredObservations": {
                "maximum": 6,
                "minimum": 1,
                "type": "integer"
              },
              "severity": {
                "enum": ["info", "warning", "critical"],
                "type": "string"
              },
              "triggers": {
                "items": {
                  "enum": [
                    "explicit_rule",
                    "extreme_deviation",
                    "moderate_confirmation",
                    "persistent_shift"
                  ],
                  "type": "string"
                },
                "maxItems": 6,
                "minItems": 1,
                "type": "array"
              }
            },
            "required": [
              "confirmedObservations",
              "measurements",
              "requiredObservations",
              "severity",
              "triggers"
            ],
            "type": "object"
          },
          "deadlineAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "eventId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "incident": {
            "properties": {
              "closedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "confirmedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "detectedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "openedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "stateMachineVersion": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "violationFamily": {
                "enum": ["missing_beat", "numeric_anomaly"],
                "type": "string"
              }
            },
            "required": [
              "detectedAt",
              "id",
              "openedAt",
              "stateMachineVersion",
              "violationFamily"
            ],
            "type": "object"
          },
          "kind": {
            "enum": ["missing_beat", "numeric_anomaly", "recovery"],
            "type": "string"
          },
          "monitor": {
            "properties": {
              "jurisdiction": {
                "enum": ["unrestricted", "eu", "us", "fedramp"],
                "type": "string"
              },
              "key": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              }
            },
            "required": ["jurisdiction", "key"],
            "type": "object"
          },
          "occurredAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "outageSeconds": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "recovery": {
            "properties": {
              "confirmedBeats": {
                "maximum": 10,
                "minimum": 0,
                "type": "integer"
              },
              "requiredBeats": {
                "maximum": 10,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": ["confirmedBeats", "requiredBeats"],
            "type": "object"
          },
          "summary": {
            "maxLength": 256,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "version": { "const": 2, "type": "number" }
        },
        "required": [
          "eventId",
          "incident",
          "kind",
          "monitor",
          "occurredAt",
          "summary",
          "version"
        ],
        "title": "CallbackDeliveryIntentPayload",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callback-events.ts#CallbackDeliveryIntentPayloadSchema",
        "x-signalsitter-source-only-refinements": [
          "A missing-beat intent states the deadline it missed and when the beat was expected.",
          "A recovery intent states when the incident closed, and a missing-beat intent does not."
        ]
      },
      "CallbackDeliveryRedeliverRequest": {
        "additionalProperties": false,
        "properties": {},
        "title": "CallbackDeliveryRedeliverRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#CallbackDeliveryRedeliverRequestSchema"
      },
      "CallbackDeliveryRedeliverResult": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "additionalProperties": false,
            "properties": {
              "attempts": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "attempt": {
                      "maximum": 1000,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "completedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "deliveryId": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                      "type": "string"
                    },
                    "outcome": {
                      "enum": ["success", "retryable", "terminal", "unknown"],
                      "type": "string"
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "enum": [
                            "binding_disabled",
                            "binding_unresolved",
                            "endpoint_disabled",
                            "inline_destination_unsupported",
                            "intent_payload_unsupported",
                            "signing_key_unavailable",
                            "destination_rejected",
                            "destination_unresolved",
                            "egress_rate_limited",
                            "http_success",
                            "http_client_error",
                            "http_server_error",
                            "network_error",
                            "timed_out",
                            "redirect_refused",
                            "response_too_large",
                            "attempts_exhausted",
                            "message_abandoned",
                            "superseded_before_delivery",
                            "heartbeat_disabled",
                            "monitor_deleted"
                          ],
                          "type": "string"
                        },
                        {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        }
                      ]
                    },
                    "redelivery": { "type": "boolean" },
                    "responsePrefix": {
                      "maxLength": 256,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "responseStatus": {
                      "maximum": 599,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "startedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "attempt",
                    "completedAt",
                    "deliveryId",
                    "outcome",
                    "reason",
                    "redelivery",
                    "startedAt"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "attemptsRemaining": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "eventId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "incidentId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "intentId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "lastOutcome": {
                "enum": ["success", "retryable", "terminal", "unknown"],
                "type": "string"
              },
              "lastReason": {
                "anyOf": [
                  {
                    "enum": [
                      "binding_disabled",
                      "binding_unresolved",
                      "endpoint_disabled",
                      "inline_destination_unsupported",
                      "intent_payload_unsupported",
                      "signing_key_unavailable",
                      "destination_rejected",
                      "destination_unresolved",
                      "egress_rate_limited",
                      "http_success",
                      "http_client_error",
                      "http_server_error",
                      "network_error",
                      "timed_out",
                      "redirect_refused",
                      "response_too_large",
                      "attempts_exhausted",
                      "message_abandoned",
                      "superseded_before_delivery",
                      "heartbeat_disabled",
                      "monitor_deleted"
                    ],
                    "type": "string"
                  },
                  {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                ]
              },
              "nextAttemptAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "redeliverable": { "type": "boolean" },
              "remediation": {
                "maxLength": 1024,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "state": {
                "enum": [
                  "pending_enqueue",
                  "pending",
                  "claimed",
                  "succeeded",
                  "retrying",
                  "failed_terminal",
                  "outcome_unknown",
                  "dead_lettered"
                ],
                "type": "string"
              }
            },
            "required": [
              "attempts",
              "attemptsRemaining",
              "eventId",
              "incidentId",
              "intentId",
              "remediation",
              "state",
              "redeliverable"
            ],
            "type": "object"
          },
          "replayed": { "type": "boolean" }
        },
        "required": ["delivery", "replayed"],
        "title": "CallbackDeliveryRedeliverResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/callback-delivery.ts#CallbackDeliveryRedeliverResultSchema"
      },
      "CallbackEndpointCreateCommand": {
        "properties": {
          "alias": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "kind": {
            "default": "webhook",
            "enum": ["webhook", "whooshbang_subscriber", "whooshbang_group"],
            "type": "string"
          },
          "url": { "format": "uri", "maxLength": 512, "type": "string" },
          "whooshbang": {
            "additionalProperties": false,
            "properties": {
              "actorId": { "maxLength": 128, "minLength": 1, "type": "string" },
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "type": "object"
          },
          "whooshbangGroup": {
            "additionalProperties": false,
            "properties": {
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "required": ["idempotencyKey", "alias"],
        "title": "CallbackEndpointCreateCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointCreateCommandSchema",
        "x-signalsitter-source-only-refinements": [
          "Exactly one destination is stated, and it is the one the kind names: a webhook states a URL, a WhooshBang subscriber destination states its subscriber, and a WhooshBang group destination states its group member.",
          "Callback destinations must be public HTTPS URLs without credentials or fragments."
        ]
      },
      "CallbackEndpointCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "alias": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "kind": {
            "default": "webhook",
            "enum": ["webhook", "whooshbang_subscriber", "whooshbang_group"],
            "type": "string"
          },
          "url": { "format": "uri", "maxLength": 512, "type": "string" },
          "whooshbang": {
            "additionalProperties": false,
            "properties": {
              "actorId": { "maxLength": 128, "minLength": 1, "type": "string" },
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "type": "object"
          },
          "whooshbangGroup": {
            "additionalProperties": false,
            "properties": {
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "required": ["alias"],
        "title": "CallbackEndpointCreateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#CallbackEndpointCreateRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "Exactly one destination is stated, and it is the one the kind names: a webhook states a URL, a WhooshBang subscriber destination states its subscriber, and a WhooshBang group destination states its group member.",
          "Callback destinations must be public HTTPS URLs without credentials or fragments."
        ]
      },
      "CallbackEndpointDisableCommand": {
        "properties": {
          "endpointId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["endpointId"],
        "title": "CallbackEndpointDisableCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointDisableCommandSchema"
      },
      "CallbackEndpointId": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
        "title": "CallbackEndpointId",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointIdSchema"
      },
      "CallbackEndpointIssueResult": {
        "properties": {
          "endpoint": {
            "properties": {
              "alias": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "createdAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "disabledAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "generation": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "isOrganizationDefault": { "type": "boolean" },
              "kind": {
                "default": "webhook",
                "enum": [
                  "webhook",
                  "whooshbang_subscriber",
                  "whooshbang_group"
                ],
                "type": "string"
              },
              "lifecycle": { "enum": ["active", "disabled"], "type": "string" },
              "projectId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "secret": {
                "additionalProperties": false,
                "properties": {
                  "issuedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "overlapEndsAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "previousVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 65535,
                    "type": "integer"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 65535,
                    "type": "integer"
                  }
                },
                "required": ["version", "issuedAt"],
                "type": "object"
              },
              "updatedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "url": { "format": "uri", "maxLength": 512, "type": "string" },
              "whooshbang": {
                "additionalProperties": false,
                "properties": {
                  "actorId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "contractVersion": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "notifierId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                    "type": "string"
                  }
                },
                "required": ["actorId", "contractVersion", "notifierId"],
                "type": "object"
              },
              "whooshbangGroup": {
                "additionalProperties": false,
                "properties": {
                  "contractVersion": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "notifierId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                    "type": "string"
                  }
                },
                "required": ["contractVersion", "notifierId"],
                "type": "object"
              }
            },
            "required": [
              "id",
              "projectId",
              "alias",
              "lifecycle",
              "isOrganizationDefault",
              "generation",
              "createdAt",
              "updatedAt"
            ],
            "type": "object"
          },
          "replayed": { "type": "boolean" },
          "signingSecret": {
            "properties": {
              "onlyShownOnce": { "const": true, "type": "boolean" },
              "overlapEndsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "previousVersion": {
                "exclusiveMinimum": 0,
                "maximum": 65535,
                "type": "integer"
              },
              "revealedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "secret": {
                "pattern": "^sigcb_v1_[A-Za-z0-9_-]{43}$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 65535,
                "type": "integer"
              }
            },
            "required": ["secret", "revealedAt", "onlyShownOnce", "version"],
            "type": "object"
          }
        },
        "required": ["endpoint", "replayed"],
        "title": "CallbackEndpointIssueResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointIssueResultSchema",
        "x-signalsitter-source-only-refinements": [
          "A newly issued signing secret is revealed once, and only for a webhook destination; an idempotent replay and a destination this product issues no secret for reveal none.",
          "The nested endpoint preserves its lifecycle, default, and rotation-overlap refinements."
        ]
      },
      "CallbackEndpointListPage": {
        "properties": {
          "items": {
            "items": {
              "properties": {
                "alias": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "createdAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "disabledAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "generation": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "id": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "isOrganizationDefault": { "type": "boolean" },
                "kind": {
                  "default": "webhook",
                  "enum": [
                    "webhook",
                    "whooshbang_subscriber",
                    "whooshbang_group"
                  ],
                  "type": "string"
                },
                "lifecycle": {
                  "enum": ["active", "disabled"],
                  "type": "string"
                },
                "projectId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "secret": {
                  "additionalProperties": false,
                  "properties": {
                    "issuedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "overlapEndsAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "previousVersion": {
                      "exclusiveMinimum": 0,
                      "maximum": 65535,
                      "type": "integer"
                    },
                    "version": {
                      "exclusiveMinimum": 0,
                      "maximum": 65535,
                      "type": "integer"
                    }
                  },
                  "required": ["version", "issuedAt"],
                  "type": "object"
                },
                "updatedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "url": { "format": "uri", "maxLength": 512, "type": "string" },
                "whooshbang": {
                  "additionalProperties": false,
                  "properties": {
                    "actorId": {
                      "maxLength": 128,
                      "minLength": 1,
                      "type": "string"
                    },
                    "contractVersion": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "notifierId": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                      "type": "string"
                    }
                  },
                  "required": ["actorId", "contractVersion", "notifierId"],
                  "type": "object"
                },
                "whooshbangGroup": {
                  "additionalProperties": false,
                  "properties": {
                    "contractVersion": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    },
                    "notifierId": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                      "type": "string"
                    }
                  },
                  "required": ["contractVersion", "notifierId"],
                  "type": "object"
                }
              },
              "required": [
                "id",
                "projectId",
                "alias",
                "lifecycle",
                "isOrganizationDefault",
                "generation",
                "createdAt",
                "updatedAt"
              ],
              "type": "object"
            },
            "maxItems": 200,
            "type": "array"
          },
          "nextCursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["items"],
        "title": "CallbackEndpointListPage",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointListPageSchema",
        "x-signalsitter-source-only-refinements": [
          "Each item preserves the endpoint lifecycle, default, and rotation-overlap refinements."
        ]
      },
      "CallbackEndpointListPageRequest": {
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          }
        },
        "title": "CallbackEndpointListPageRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointListPageRequestSchema"
      },
      "CallbackEndpointMetadata": {
        "properties": {
          "alias": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "disabledAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "generation": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "isOrganizationDefault": { "type": "boolean" },
          "kind": {
            "default": "webhook",
            "enum": ["webhook", "whooshbang_subscriber", "whooshbang_group"],
            "type": "string"
          },
          "lifecycle": { "enum": ["active", "disabled"], "type": "string" },
          "projectId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "secret": {
            "additionalProperties": false,
            "properties": {
              "issuedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "overlapEndsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "previousVersion": {
                "exclusiveMinimum": 0,
                "maximum": 65535,
                "type": "integer"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 65535,
                "type": "integer"
              }
            },
            "required": ["version", "issuedAt"],
            "type": "object"
          },
          "updatedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "url": { "format": "uri", "maxLength": 512, "type": "string" },
          "whooshbang": {
            "additionalProperties": false,
            "properties": {
              "actorId": { "maxLength": 128, "minLength": 1, "type": "string" },
              "contractVersion": {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "required": ["actorId", "contractVersion", "notifierId"],
            "type": "object"
          },
          "whooshbangGroup": {
            "additionalProperties": false,
            "properties": {
              "contractVersion": {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "required": ["contractVersion", "notifierId"],
            "type": "object"
          }
        },
        "required": [
          "id",
          "projectId",
          "alias",
          "lifecycle",
          "isOrganizationDefault",
          "generation",
          "createdAt",
          "updatedAt"
        ],
        "title": "CallbackEndpointMetadata",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointMetadataSchema",
        "x-signalsitter-source-only-refinements": [
          "Exactly one destination is stated, and it is the one the kind names: a webhook endpoint states a URL and a signing secret, a WhooshBang subscriber endpoint states its subscriber, and a WhooshBang group endpoint states its group.",
          "Lifecycle and disabledAt agree, and a disabled endpoint is never the organization default.",
          "A rotation overlap names both the previous secret version and when it stops being accepted.",
          "updatedAt never precedes createdAt."
        ]
      },
      "CallbackEndpointRemovalResult": {
        "additionalProperties": false,
        "properties": {
          "endpoint": {
            "properties": {
              "alias": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "createdAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "disabledAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "generation": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "isOrganizationDefault": { "type": "boolean" },
              "kind": {
                "default": "webhook",
                "enum": [
                  "webhook",
                  "whooshbang_subscriber",
                  "whooshbang_group"
                ],
                "type": "string"
              },
              "lifecycle": { "enum": ["active", "disabled"], "type": "string" },
              "projectId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "secret": {
                "additionalProperties": false,
                "properties": {
                  "issuedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "overlapEndsAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "previousVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 65535,
                    "type": "integer"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 65535,
                    "type": "integer"
                  }
                },
                "required": ["version", "issuedAt"],
                "type": "object"
              },
              "updatedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "url": { "format": "uri", "maxLength": 512, "type": "string" },
              "whooshbang": {
                "additionalProperties": false,
                "properties": {
                  "actorId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "contractVersion": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "notifierId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                    "type": "string"
                  }
                },
                "required": ["actorId", "contractVersion", "notifierId"],
                "type": "object"
              },
              "whooshbangGroup": {
                "additionalProperties": false,
                "properties": {
                  "contractVersion": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "notifierId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                    "type": "string"
                  }
                },
                "required": ["contractVersion", "notifierId"],
                "type": "object"
              }
            },
            "required": [
              "id",
              "projectId",
              "alias",
              "lifecycle",
              "isOrganizationDefault",
              "generation",
              "createdAt",
              "updatedAt"
            ],
            "type": "object"
          },
          "removedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": ["endpoint", "removedAt"],
        "title": "CallbackEndpointRemovalResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointRemovalResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The nested endpoint preserves its lifecycle, default, and rotation-overlap refinements."
        ]
      },
      "CallbackEndpointRemoveCommand": {
        "properties": {
          "endpointId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["endpointId"],
        "title": "CallbackEndpointRemoveCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointRemoveCommandSchema"
      },
      "CallbackEndpointRotateSecretCommand": {
        "properties": {
          "endpointId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "overlapSeconds": {
            "default": 300,
            "maximum": 900,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": ["endpointId", "idempotencyKey"],
        "title": "CallbackEndpointRotateSecretCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointRotateSecretCommandSchema"
      },
      "CallbackEndpointRotateSecretRequest": {
        "additionalProperties": false,
        "properties": {
          "overlapSeconds": {
            "default": 300,
            "maximum": 900,
            "minimum": 0,
            "type": "integer"
          }
        },
        "title": "CallbackEndpointRotateSecretRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#CallbackEndpointRotateSecretRequestSchema"
      },
      "CallbackEndpointTestAttempt": {
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "occurredAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "outcome": { "enum": ["succeeded", "failed"], "type": "string" },
          "reason": {
            "enum": [
              "url_rejected",
              "dns_unresolved",
              "address_not_public",
              "connection_failed",
              "timed_out",
              "redirect_refused",
              "unexpected_status",
              "response_too_large"
            ],
            "type": "string"
          },
          "responseStatus": {
            "maximum": 599,
            "minimum": 100,
            "type": "integer"
          }
        },
        "required": ["id", "occurredAt", "outcome"],
        "title": "CallbackEndpointTestAttempt",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointTestAttemptSchema",
        "x-signalsitter-source-only-refinements": [
          "A failed test delivery states exactly one reason."
        ]
      },
      "CallbackEndpointTestCommand": {
        "properties": {
          "endpointId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["endpointId", "idempotencyKey"],
        "title": "CallbackEndpointTestCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointTestCommandSchema"
      },
      "CallbackEndpointTestResult": {
        "additionalProperties": false,
        "properties": {
          "attempt": {
            "properties": {
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "occurredAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "outcome": { "enum": ["succeeded", "failed"], "type": "string" },
              "reason": {
                "enum": [
                  "url_rejected",
                  "dns_unresolved",
                  "address_not_public",
                  "connection_failed",
                  "timed_out",
                  "redirect_refused",
                  "unexpected_status",
                  "response_too_large"
                ],
                "type": "string"
              },
              "responseStatus": {
                "maximum": 599,
                "minimum": 100,
                "type": "integer"
              }
            },
            "required": ["id", "occurredAt", "outcome"],
            "type": "object"
          },
          "endpoint": {
            "properties": {
              "alias": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "createdAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "disabledAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "generation": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "isOrganizationDefault": { "type": "boolean" },
              "kind": {
                "default": "webhook",
                "enum": [
                  "webhook",
                  "whooshbang_subscriber",
                  "whooshbang_group"
                ],
                "type": "string"
              },
              "lifecycle": { "enum": ["active", "disabled"], "type": "string" },
              "projectId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "secret": {
                "additionalProperties": false,
                "properties": {
                  "issuedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "overlapEndsAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "previousVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 65535,
                    "type": "integer"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 65535,
                    "type": "integer"
                  }
                },
                "required": ["version", "issuedAt"],
                "type": "object"
              },
              "updatedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "url": { "format": "uri", "maxLength": 512, "type": "string" },
              "whooshbang": {
                "additionalProperties": false,
                "properties": {
                  "actorId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "contractVersion": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "notifierId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                    "type": "string"
                  }
                },
                "required": ["actorId", "contractVersion", "notifierId"],
                "type": "object"
              },
              "whooshbangGroup": {
                "additionalProperties": false,
                "properties": {
                  "contractVersion": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "notifierId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                    "type": "string"
                  }
                },
                "required": ["contractVersion", "notifierId"],
                "type": "object"
              }
            },
            "required": [
              "id",
              "projectId",
              "alias",
              "lifecycle",
              "isOrganizationDefault",
              "generation",
              "createdAt",
              "updatedAt"
            ],
            "type": "object"
          },
          "replayed": { "type": "boolean" }
        },
        "required": ["endpoint", "attempt", "replayed"],
        "title": "CallbackEndpointTestResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointTestResultSchema",
        "x-signalsitter-source-only-refinements": [
          "A failed test delivery states exactly one reason.",
          "The nested endpoint preserves its lifecycle, default, and rotation-overlap refinements."
        ]
      },
      "CallbackEndpointUpdateCommand": {
        "properties": {
          "alias": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "endpointId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "lifecycle": { "enum": ["active", "disabled"], "type": "string" },
          "url": { "format": "uri", "maxLength": 512, "type": "string" },
          "whooshbang": {
            "additionalProperties": false,
            "properties": {
              "actorId": { "maxLength": 128, "minLength": 1, "type": "string" },
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "type": "object"
          },
          "whooshbangGroup": {
            "additionalProperties": false,
            "properties": {
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "required": ["notifierId"],
            "type": "object"
          }
        },
        "required": ["endpointId", "idempotencyKey"],
        "title": "CallbackEndpointUpdateCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointUpdateCommandSchema",
        "x-signalsitter-source-only-refinements": [
          "An update changes at least one of alias, url, whooshbang, whooshbangGroup, or lifecycle, and never more than one destination at once.",
          "A WhooshBang subscriber change states at least one of actorId or notifierId, and a WhooshBang group change states its notifierId.",
          "Callback destinations must be public HTTPS URLs without credentials or fragments."
        ]
      },
      "CallbackEndpointUpdateRequest": {
        "additionalProperties": false,
        "properties": {
          "alias": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "lifecycle": { "enum": ["active", "disabled"], "type": "string" },
          "url": { "format": "uri", "maxLength": 512, "type": "string" },
          "whooshbang": {
            "additionalProperties": false,
            "properties": {
              "actorId": { "maxLength": 128, "minLength": 1, "type": "string" },
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "type": "object"
          },
          "whooshbangGroup": {
            "additionalProperties": false,
            "properties": {
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "required": ["notifierId"],
            "type": "object"
          }
        },
        "title": "CallbackEndpointUpdateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackEndpointUpdateRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "An update changes at least one of alias, url, whooshbang, whooshbangGroup, or lifecycle, and never more than one destination at once.",
          "A WhooshBang subscriber change states at least one of actorId or notifierId, and a WhooshBang group change states its notifierId.",
          "Callback destinations must be public HTTPS URLs without credentials or fragments."
        ]
      },
      "CallbackIncidentEvent": {
        "properties": {
          "correlationid": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "data": {
            "properties": {
              "contractVersion": { "const": 1, "type": "number" },
              "deadlineAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "delivery": {
                "properties": {
                  "attempt": {
                    "maximum": 1000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "redelivery": { "type": "boolean" }
                },
                "required": ["attempt", "id", "redelivery"],
                "type": "object"
              },
              "expectedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "incident": {
                "properties": {
                  "confirmedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "detectedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "openedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "stateMachineVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "violationFamily": {
                    "enum": ["missing_beat", "numeric_anomaly"],
                    "type": "string"
                  }
                },
                "required": [
                  "detectedAt",
                  "id",
                  "openedAt",
                  "stateMachineVersion",
                  "violationFamily"
                ],
                "type": "object"
              },
              "monitor": {
                "properties": {
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "key": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  }
                },
                "required": ["jurisdiction", "key"],
                "type": "object"
              },
              "summary": {
                "maxLength": 256,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              }
            },
            "required": [
              "contractVersion",
              "deadlineAt",
              "delivery",
              "expectedAt",
              "incident",
              "monitor",
              "summary"
            ],
            "type": "object"
          },
          "datacontenttype": { "const": "application/json", "type": "string" },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "organizationid": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "source": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\s\\u0000-\\u001F\\u007F]+$",
            "type": "string"
          },
          "specversion": { "const": "1.0", "type": "string" },
          "subject": {
            "maxLength": 256,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "time": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "type": {
            "const": "com.signalsitter.incident.opened.v1",
            "type": "string"
          }
        },
        "required": [
          "specversion",
          "id",
          "source",
          "type",
          "time",
          "datacontenttype",
          "correlationid",
          "organizationid",
          "data"
        ],
        "title": "CallbackIncidentEvent",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callback-events.ts#CallbackIncidentEventSchema",
        "x-signalsitter-source-only-refinements": [
          "Event data stays inside its JSON and byte bound.",
          "A deadline never precedes the beat it waits for."
        ]
      },
      "CallbackIntentId": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
        "title": "CallbackIntentId",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#CallbackIntentIdSchema"
      },
      "CallbackRecoveryEvent": {
        "properties": {
          "correlationid": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "data": {
            "properties": {
              "contractVersion": { "const": 1, "type": "number" },
              "delivery": {
                "properties": {
                  "attempt": {
                    "maximum": 1000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "redelivery": { "type": "boolean" }
                },
                "required": ["attempt", "id", "redelivery"],
                "type": "object"
              },
              "incident": {
                "properties": {
                  "closedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "confirmedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "detectedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "openedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "stateMachineVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "violationFamily": {
                    "enum": ["missing_beat", "numeric_anomaly"],
                    "type": "string"
                  }
                },
                "required": [
                  "detectedAt",
                  "id",
                  "openedAt",
                  "stateMachineVersion",
                  "violationFamily",
                  "closedAt"
                ],
                "type": "object"
              },
              "monitor": {
                "properties": {
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "key": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  }
                },
                "required": ["jurisdiction", "key"],
                "type": "object"
              },
              "outageSeconds": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "recovery": {
                "properties": {
                  "confirmedBeats": {
                    "maximum": 10,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "requiredBeats": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": ["confirmedBeats", "requiredBeats"],
                "type": "object"
              },
              "summary": {
                "maxLength": 256,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              }
            },
            "required": [
              "contractVersion",
              "delivery",
              "incident",
              "monitor",
              "outageSeconds",
              "recovery",
              "summary"
            ],
            "type": "object"
          },
          "datacontenttype": { "const": "application/json", "type": "string" },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "organizationid": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "source": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\s\\u0000-\\u001F\\u007F]+$",
            "type": "string"
          },
          "specversion": { "const": "1.0", "type": "string" },
          "subject": {
            "maxLength": 256,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "time": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "type": {
            "const": "com.signalsitter.incident.recovered.v1",
            "type": "string"
          }
        },
        "required": [
          "specversion",
          "id",
          "source",
          "type",
          "time",
          "datacontenttype",
          "correlationid",
          "organizationid",
          "data"
        ],
        "title": "CallbackRecoveryEvent",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callback-events.ts#CallbackRecoveryEventSchema",
        "x-signalsitter-source-only-refinements": [
          "Event data stays inside its JSON and byte bound.",
          "An incident never closes before it opened.",
          "outageSeconds agrees with the incident timestamps."
        ]
      },
      "CallbackSigningSecretResult": {
        "properties": {
          "onlyShownOnce": { "const": true, "type": "boolean" },
          "overlapEndsAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "previousVersion": {
            "exclusiveMinimum": 0,
            "maximum": 65535,
            "type": "integer"
          },
          "revealedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "secret": {
            "pattern": "^sigcb_v1_[A-Za-z0-9_-]{43}$",
            "type": "string"
          },
          "version": {
            "exclusiveMinimum": 0,
            "maximum": 65535,
            "type": "integer"
          }
        },
        "required": ["secret", "revealedAt", "onlyShownOnce", "version"],
        "title": "CallbackSigningSecretResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#CallbackSigningSecretResultSchema"
      },
      "ContractFixtureBehavior": {
        "enum": [
          "success",
          "invalid_request",
          "authentication",
          "authorization",
          "tenant_isolation",
          "idempotency",
          "conflict",
          "retry_ambiguity"
        ],
        "title": "ContractFixtureBehavior",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/contract-fixtures.ts#ContractFixtureBehaviorSchema"
      },
      "ContractFixtureDefinition": {
        "additionalProperties": false,
        "properties": {
          "behavior": {
            "enum": [
              "success",
              "invalid_request",
              "authentication",
              "authorization",
              "tenant_isolation",
              "idempotency",
              "conflict",
              "retry_ambiguity"
            ],
            "type": "string"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^v1\\.[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
            "type": "string"
          },
          "request": {
            "additionalProperties": false,
            "properties": {
              "headers": {
                "additionalProperties": false,
                "properties": {
                  "Signalsitter-Mock-Scenario": {
                    "enum": [
                      "success",
                      "invalid_request",
                      "authentication",
                      "authorization",
                      "tenant_isolation",
                      "idempotency",
                      "conflict",
                      "retry_ambiguity"
                    ],
                    "type": "string"
                  }
                },
                "required": ["Signalsitter-Mock-Scenario"],
                "type": "object"
              },
              "method": { "const": "GET", "type": "string" },
              "path": {
                "maxLength": 512,
                "minLength": 1,
                "pattern": "^\\/_contract\\/v1\\/fixtures\\/v1\\.[a-z][a-z0-9_.]*$",
                "type": "string"
              }
            },
            "required": ["method", "path", "headers"],
            "type": "object"
          },
          "response": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "behavior": {
                        "enum": ["success", "idempotency"],
                        "type": "string"
                      },
                      "correlationId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                        "type": "string"
                      },
                      "etag": {
                        "maxLength": 130,
                        "pattern": "^\"[A-Za-z0-9][A-Za-z0-9._~:/+-]*\"$",
                        "type": "string"
                      },
                      "fixtureId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^v1\\.[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                        "type": "string"
                      },
                      "replayed": { "type": "boolean" },
                      "requestId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                        "type": "string"
                      },
                      "servedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "fixtureId",
                      "behavior",
                      "requestId",
                      "correlationId",
                      "servedAt",
                      "etag",
                      "replayed"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "code": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^signalsitter\\.[a-z][a-z0-9]*(?:[._][a-z0-9]+)*$",
                        "type": "string"
                      },
                      "correlationId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                        "type": "string"
                      },
                      "detail": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "fieldErrors": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "code": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "message": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "path": {
                              "allOf": [
                                { "pattern": "^[^\\u0000-\\u001F\\u007F]*$" },
                                { "pattern": "^(?:|(?:\\/(?:[^~]|~[01])*)+)$" }
                              ],
                              "maxLength": 256,
                              "type": "string"
                            }
                          },
                          "required": ["path", "code", "message"],
                          "type": "object"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "instance": {
                        "maxLength": 512,
                        "minLength": 1,
                        "pattern": "^[^\\s\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      },
                      "limit": {
                        "additionalProperties": false,
                        "properties": {
                          "attempted": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "current": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "detectorFeature": {
                            "enum": [
                              "heartbeat",
                              "explicit_rule",
                              "adaptive_baseline",
                              "persistent_shift",
                              "seasonal_baseline"
                            ],
                            "type": "string"
                          },
                          "dimension": {
                            "enum": [
                              "active_monitors",
                              "beat_cadence",
                              "minimum_interval_seconds",
                              "measurements_per_observation",
                              "stored_observations",
                              "observation_retention_seconds",
                              "callback_endpoints",
                              "detector_feature",
                              "api_requests_per_minute",
                              "mcp_requests_per_minute",
                              "service_state",
                              "entitlement_lease"
                            ],
                            "type": "string"
                          },
                          "limit": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "plan": {
                            "additionalProperties": false,
                            "properties": {
                              "id": {
                                "enum": ["free", "builder", "smart", "scale"],
                                "type": "string"
                              },
                              "name": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                                "type": "string"
                              },
                              "version": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": ["id", "name", "version"],
                            "type": "object"
                          },
                          "remediation": {
                            "enum": [
                              "upgrade_plan",
                              "reduce_usage",
                              "increase_interval",
                              "remove_feature",
                              "retry_after_refresh",
                              "contact_support",
                              "export_data"
                            ],
                            "type": "string"
                          },
                          "serviceState": {
                            "enum": [
                              "active",
                              "payment_grace",
                              "abuse_suspended",
                              "canceled",
                              "deleting"
                            ],
                            "type": "string"
                          }
                        },
                        "required": ["dimension", "remediation"],
                        "type": "object"
                      },
                      "remediation": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "code": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "documentation": {
                              "allOf": [
                                {
                                  "pattern": "^[^\\s\\u0000-\\u001F\\u007F]+$"
                                },
                                {
                                  "pattern": "^(?:\\/(?!\\/)|[Hh][Tt][Tt][Pp][Ss]:\\/\\/)"
                                }
                              ],
                              "maxLength": 512,
                              "minLength": 1,
                              "type": "string"
                            },
                            "message": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            }
                          },
                          "required": ["code", "message"],
                          "type": "object"
                        },
                        "maxItems": 8,
                        "type": "array"
                      },
                      "retryable": { "type": "boolean" },
                      "retryAfterSeconds": {
                        "exclusiveMinimum": 0,
                        "maximum": 86400,
                        "type": "integer"
                      },
                      "status": {
                        "maximum": 599,
                        "minimum": 400,
                        "type": "integer"
                      },
                      "title": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "type": {
                        "maxLength": 512,
                        "minLength": 1,
                        "pattern": "^[^\\s\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "title",
                      "status",
                      "detail",
                      "code",
                      "correlationId",
                      "retryable"
                    ],
                    "type": "object"
                  }
                ]
              },
              "headers": {
                "additionalProperties": false,
                "properties": {
                  "Content-Type": {
                    "enum": ["application/json", "application/problem+json"],
                    "type": "string"
                  },
                  "ETag": {
                    "maxLength": 130,
                    "pattern": "^\"[A-Za-z0-9][A-Za-z0-9._~:/+-]*\"$",
                    "type": "string"
                  },
                  "Retry-After": {
                    "pattern": "^[1-9][0-9]{0,4}$",
                    "type": "string"
                  },
                  "X-Correlation-ID": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "X-Request-ID": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  }
                },
                "required": [
                  "Content-Type",
                  "X-Request-ID",
                  "X-Correlation-ID"
                ],
                "type": "object"
              },
              "status": { "maximum": 599, "minimum": 200, "type": "integer" }
            },
            "required": ["status", "headers", "body"],
            "type": "object"
          },
          "version": { "const": 1, "type": "number" },
          "virtualTime": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": [
          "version",
          "id",
          "behavior",
          "virtualTime",
          "request",
          "response"
        ],
        "title": "ContractFixtureDefinition",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/contract-fixtures.ts#ContractFixtureDefinitionSchema",
        "x-signalsitter-source-only-refinements": [
          "Problem URI references must pass full URI-reference parsing, including percent escapes, authority brackets, and scheme syntax.",
          "Problem documentation links must parse as credential-free HTTPS URLs or root-relative paths.",
          "Problem retryAfterSeconds is allowed only when retryable is true.",
          "Fixture path, scenario, response status, headers, body, virtual time, behavior, replay, entity tag, and retry metadata must agree."
        ]
      },
      "ContractFixtureId": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^v1\\.[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
        "title": "ContractFixtureId",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/contract-fixtures.ts#ContractFixtureIdSchema"
      },
      "ContractFixtureSuccess": {
        "properties": {
          "behavior": { "enum": ["success", "idempotency"], "type": "string" },
          "correlationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "etag": {
            "maxLength": 130,
            "pattern": "^\"[A-Za-z0-9][A-Za-z0-9._~:/+-]*\"$",
            "type": "string"
          },
          "fixtureId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^v1\\.[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
            "type": "string"
          },
          "replayed": { "type": "boolean" },
          "requestId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "servedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": [
          "fixtureId",
          "behavior",
          "requestId",
          "correlationId",
          "servedAt",
          "etag",
          "replayed"
        ],
        "title": "ContractFixtureSuccess",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/contract-fixtures.ts#ContractFixtureSuccessSchema"
      },
      "ContractFixtureToolInput": {
        "properties": {
          "fixtureId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^v1\\.[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
            "type": "string"
          },
          "scenario": {
            "enum": [
              "success",
              "invalid_request",
              "authentication",
              "authorization",
              "tenant_isolation",
              "idempotency",
              "conflict",
              "retry_ambiguity"
            ],
            "type": "string"
          }
        },
        "required": ["fixtureId"],
        "title": "ContractFixtureToolInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/contract-fixtures.ts#ContractFixtureToolInputSchema"
      },
      "CorrelationId": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
        "title": "CorrelationId",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#CorrelationIdSchema"
      },
      "CredentialMcpActivationEventRequest": {
        "additionalProperties": false,
        "properties": {
          "client": {
            "enum": ["codex", "claude_code", "vscode"],
            "type": "string"
          },
          "connected": { "type": "boolean" },
          "elapsedMs": { "maximum": 86400000, "minimum": 0, "type": "integer" },
          "eventId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "friction": {
            "enum": [
              "validation",
              "request_failed",
              "copy_failed",
              "connection_failed"
            ],
            "type": "string"
          },
          "name": {
            "enum": [
              "credential_created",
              "credential_secret_copied",
              "mcp_configuration_copied",
              "mcp_connection_tested",
              "activation_friction"
            ],
            "type": "string"
          },
          "step": {
            "enum": ["credential", "configuration", "connection"],
            "type": "string"
          }
        },
        "required": ["eventId", "name", "step"],
        "title": "CredentialMcpActivationEventRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/activation.ts#CredentialMcpActivationEventRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "Activation event names and steps agree; clients, connection results, and friction are present only for their applicable event shapes."
        ]
      },
      "CredentialMcpActivationEventResult": {
        "additionalProperties": false,
        "properties": { "recorded": { "const": true, "type": "boolean" } },
        "required": ["recorded"],
        "title": "CredentialMcpActivationEventResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/activation.ts#CredentialMcpActivationEventResultSchema"
      },
      "CursorPageRequest": {
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          }
        },
        "title": "CursorPageRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#CursorPageRequestSchema"
      },
      "EntitlementLimitContext": {
        "additionalProperties": false,
        "properties": {
          "attempted": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "current": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "detectorFeature": {
            "enum": [
              "heartbeat",
              "explicit_rule",
              "adaptive_baseline",
              "persistent_shift",
              "seasonal_baseline"
            ],
            "type": "string"
          },
          "dimension": {
            "enum": [
              "active_monitors",
              "beat_cadence",
              "minimum_interval_seconds",
              "measurements_per_observation",
              "stored_observations",
              "observation_retention_seconds",
              "callback_endpoints",
              "detector_feature",
              "api_requests_per_minute",
              "mcp_requests_per_minute",
              "service_state",
              "entitlement_lease"
            ],
            "type": "string"
          },
          "limit": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "plan": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "enum": ["free", "builder", "smart", "scale"],
                "type": "string"
              },
              "name": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              }
            },
            "required": ["id", "name", "version"],
            "type": "object"
          },
          "remediation": {
            "enum": [
              "upgrade_plan",
              "reduce_usage",
              "increase_interval",
              "remove_feature",
              "retry_after_refresh",
              "contact_support",
              "export_data"
            ],
            "type": "string"
          },
          "serviceState": {
            "enum": [
              "active",
              "payment_grace",
              "abuse_suspended",
              "canceled",
              "deleting"
            ],
            "type": "string"
          }
        },
        "required": ["dimension", "remediation"],
        "title": "EntitlementLimitContext",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/entitlements.ts#EntitlementLimitContextSchema",
        "x-signalsitter-source-only-refinements": [
          "Detector and service-state limit dimensions carry their matching bounded context."
        ]
      },
      "EntityTag": {
        "maxLength": 130,
        "pattern": "^\"[A-Za-z0-9][A-Za-z0-9._~:/+-]*\"$",
        "title": "EntityTag",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#EntityTagSchema"
      },
      "EventEnvelope": {
        "properties": {
          "correlationid": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "data": {},
          "datacontenttype": { "const": "application/json", "type": "string" },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "organizationid": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "source": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\s\\u0000-\\u001F\\u007F]+$",
            "type": "string"
          },
          "specversion": { "const": "1.0", "type": "string" },
          "subject": {
            "maxLength": 256,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "time": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "type": {
            "maxLength": 160,
            "minLength": 1,
            "pattern": "^com\\.signalsitter\\.[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*\\.v[1-9][0-9]*$",
            "type": "string"
          }
        },
        "required": [
          "specversion",
          "id",
          "source",
          "type",
          "time",
          "datacontenttype",
          "correlationid",
          "organizationid",
          "data"
        ],
        "title": "EventEnvelope",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/events.ts#EventEnvelopeSchema",
        "x-signalsitter-source-only-refinements": [
          "The source URI must pass full URI-reference parsing.",
          "Event data must be finite, plain JSON within the configured depth, node, collection, string, key-safety, and encoded-byte limits."
        ]
      },
      "HistoricalObservation": {
        "additionalProperties": false,
        "properties": {
          "observedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "payload": {
            "anyOf": [
              { "type": "number" },
              {
                "additionalProperties": {
                  "anyOf": [
                    { "type": "number" },
                    {
                      "anyOf": [
                        { "type": "boolean" },
                        { "type": "null" },
                        {
                          "maxLength": 256,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        }
                      ]
                    }
                  ]
                },
                "propertyNames": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "type": "object"
              }
            ]
          }
        },
        "required": ["observedAt", "payload"],
        "title": "HistoricalObservation",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/historical-observations.ts#HistoricalObservationSchema",
        "x-signalsitter-source-only-refinements": [
          "The nested payload applies the existing bounded publish-observation validation."
        ]
      },
      "HistoricalObservationImportReceipt": {
        "additionalProperties": false,
        "properties": {
          "configurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "count": { "maximum": 500, "minimum": 1, "type": "integer" },
          "distinctMetricKeys": {
            "items": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "maxItems": 16,
            "type": "array"
          },
          "newestObservedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "oldestObservedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "provenance": { "const": "historical_import", "type": "string" },
          "sealed": { "const": true, "type": "boolean" }
        },
        "required": [
          "configurationVersion",
          "count",
          "newestObservedAt",
          "oldestObservedAt",
          "distinctMetricKeys",
          "provenance",
          "sealed"
        ],
        "title": "HistoricalObservationImportReceipt",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/historical-observations.ts#HistoricalObservationImportReceiptSchema",
        "x-signalsitter-source-only-refinements": [
          "The oldest/newest observed-at range is ordered.",
          "Distinct metric keys are unique and sorted."
        ]
      },
      "HistoricalObservationImportRequest": {
        "additionalProperties": false,
        "properties": {
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "observations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "observedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "payload": {
                  "anyOf": [
                    { "type": "number" },
                    {
                      "additionalProperties": {
                        "anyOf": [
                          { "type": "number" },
                          {
                            "anyOf": [
                              { "type": "boolean" },
                              { "type": "null" },
                              {
                                "maxLength": 256,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              }
                            ]
                          }
                        ]
                      },
                      "propertyNames": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "type": "object"
                    }
                  ]
                }
              },
              "required": ["observedAt", "payload"],
              "type": "object"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": ["expectedConfigurationVersion", "observations"],
        "title": "HistoricalObservationImportRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/historical-observations.ts#HistoricalObservationImportRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "Observations are strictly chronological by observedAt.",
          "Every nested payload applies the existing bounded publish-observation validation."
        ]
      },
      "IdempotencyKey": {
        "maxLength": 255,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
        "title": "IdempotencyKey",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#IdempotencyKeySchema"
      },
      "IdempotencyRecord": {
        "properties": {
          "completedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "expiresAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "key": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "requestFingerprint": {
            "pattern": "^sha256:[a-f0-9]{64}$",
            "type": "string"
          },
          "requestId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "responseFingerprint": {
            "pattern": "^sha256:[a-f0-9]{64}$",
            "type": "string"
          },
          "state": { "enum": ["in_progress", "completed"], "type": "string" }
        },
        "required": [
          "key",
          "requestFingerprint",
          "requestId",
          "state",
          "createdAt",
          "expiresAt"
        ],
        "title": "IdempotencyRecord",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#IdempotencyRecordSchema",
        "x-signalsitter-source-only-refinements": [
          "Expiry must follow creation, completion must fall inside the idempotency window, and completion fields must agree with state."
        ]
      },
      "Incident": {
        "additionalProperties": false,
        "properties": {
          "acknowledgement": {
            "additionalProperties": false,
            "properties": {
              "acknowledgedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "actor": {
                "properties": {
                  "display": {
                    "maxLength": 160,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": {
                    "anyOf": [
                      {
                        "enum": [
                          "human",
                          "api_credential",
                          "mcp_client",
                          "operator",
                          "system"
                        ],
                        "type": "string"
                      },
                      {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["kind"],
                "type": "object"
              }
            },
            "required": ["acknowledgedAt", "actor"],
            "type": "object"
          },
          "archivedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "closedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "confirmedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "detectedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "notification": {
            "enum": [
              "requested",
              "suppressed_by_cooldown",
              "suppressed_by_recovery_hysteresis"
            ],
            "type": "string"
          },
          "openedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "recovery": {
            "additionalProperties": false,
            "properties": {
              "confirmedBeats": {
                "maximum": 10,
                "minimum": 0,
                "type": "integer"
              },
              "requiredBeats": {
                "maximum": 10,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": ["confirmedBeats", "requiredBeats"],
            "type": "object"
          },
          "state": {
            "enum": ["open", "recovering", "recovered", "resolved"],
            "type": "string"
          },
          "stateMachineVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "updatedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "violationFamily": {
            "enum": ["missing_beat", "numeric_anomaly"],
            "type": "string"
          }
        },
        "required": [
          "detectedAt",
          "id",
          "jurisdiction",
          "monitorKey",
          "notification",
          "openedAt",
          "recovery",
          "state",
          "stateMachineVersion",
          "updatedAt",
          "violationFamily"
        ],
        "title": "Incident",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentSchema",
        "x-signalsitter-source-only-refinements": [
          "closedAt is present exactly for the recovered and resolved states, and neither closedAt nor updatedAt may precede openedAt."
        ]
      },
      "IncidentAnnotateRequest": {
        "additionalProperties": false,
        "properties": {
          "note": {
            "maxLength": 1024,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "required": ["note"],
        "title": "IncidentAnnotateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#IncidentAnnotateRequestSchema"
      },
      "IncidentControlRequest": {
        "additionalProperties": false,
        "properties": {
          "note": {
            "maxLength": 1024,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "title": "IncidentControlRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#IncidentControlRequestSchema"
      },
      "IncidentControlResult": {
        "additionalProperties": false,
        "properties": {
          "event": {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "audit": {
                    "properties": {
                      "action": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                        "type": "string"
                      },
                      "actor": {
                        "properties": {
                          "display": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "id": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "kind": {
                            "anyOf": [
                              {
                                "enum": [
                                  "human",
                                  "api_credential",
                                  "mcp_client",
                                  "operator",
                                  "system"
                                ],
                                "type": "string"
                              },
                              {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      "correlationId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                        "type": "string"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "occurredAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "outcome": {
                        "enum": ["succeeded", "denied", "failed"],
                        "type": "string"
                      },
                      "target": {
                        "properties": {
                          "id": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "type": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        },
                        "required": ["type", "id"],
                        "type": "object"
                      }
                    },
                    "required": [
                      "id",
                      "occurredAt",
                      "correlationId",
                      "actor",
                      "action",
                      "target",
                      "outcome"
                    ],
                    "type": "object"
                  },
                  "callbackIntentId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "configurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "deadlineAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "detectionDelayMs": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "expectedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "note": {
                    "maxLength": 1024,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "notification": {
                    "enum": [
                      "requested",
                      "suppressed_by_cooldown",
                      "suppressed_by_recovery_hysteresis"
                    ],
                    "type": "string"
                  },
                  "observationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "reason": {
                    "enum": [
                      "deadline_missed",
                      "recovery_lapsed",
                      "beat_accepted",
                      "operator_resolved",
                      "heartbeat_disabled",
                      "anomaly_confirmed",
                      "anomaly_sustained",
                      "anomaly_cleared",
                      "new_normal_accepted"
                    ],
                    "type": "string"
                  },
                  "recovery": {
                    "additionalProperties": false,
                    "properties": {
                      "confirmedBeats": {
                        "maximum": 10,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "requiredBeats": {
                        "maximum": 10,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": ["confirmedBeats", "requiredBeats"],
                    "type": "object"
                  },
                  "sourceRequestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "version": { "const": 1, "type": "number" },
                  "violationFamily": {
                    "enum": ["missing_beat", "numeric_anomaly"],
                    "type": "string"
                  }
                },
                "required": ["version"],
                "type": "object"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "incidentId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "occurredAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "sequence": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "stateAfter": {
                "enum": ["open", "recovering", "recovered", "resolved"],
                "type": "string"
              },
              "type": {
                "enum": [
                  "detected",
                  "confirmed",
                  "notification_requested",
                  "acknowledged",
                  "annotated",
                  "recovery_started",
                  "recovered",
                  "resolved",
                  "rebaselined",
                  "archived"
                ],
                "type": "string"
              }
            },
            "required": [
              "data",
              "id",
              "incidentId",
              "occurredAt",
              "sequence",
              "stateAfter",
              "type"
            ],
            "type": "object"
          },
          "incident": {
            "additionalProperties": false,
            "properties": {
              "acknowledgement": {
                "additionalProperties": false,
                "properties": {
                  "acknowledgedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "actor": {
                    "properties": {
                      "display": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "kind": {
                        "anyOf": [
                          {
                            "enum": [
                              "human",
                              "api_credential",
                              "mcp_client",
                              "operator",
                              "system"
                            ],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["kind"],
                    "type": "object"
                  }
                },
                "required": ["acknowledgedAt", "actor"],
                "type": "object"
              },
              "archivedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "closedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "confirmedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "detectedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "jurisdiction": {
                "enum": ["unrestricted", "eu", "us", "fedramp"],
                "type": "string"
              },
              "monitorKey": {
                "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "notification": {
                "enum": [
                  "requested",
                  "suppressed_by_cooldown",
                  "suppressed_by_recovery_hysteresis"
                ],
                "type": "string"
              },
              "openedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "recovery": {
                "additionalProperties": false,
                "properties": {
                  "confirmedBeats": {
                    "maximum": 10,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "requiredBeats": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": ["confirmedBeats", "requiredBeats"],
                "type": "object"
              },
              "state": {
                "enum": ["open", "recovering", "recovered", "resolved"],
                "type": "string"
              },
              "stateMachineVersion": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "updatedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "violationFamily": {
                "enum": ["missing_beat", "numeric_anomaly"],
                "type": "string"
              }
            },
            "required": [
              "detectedAt",
              "id",
              "jurisdiction",
              "monitorKey",
              "notification",
              "openedAt",
              "recovery",
              "state",
              "stateMachineVersion",
              "updatedAt",
              "violationFamily"
            ],
            "type": "object"
          },
          "replayed": { "type": "boolean" }
        },
        "required": ["event", "incident", "replayed"],
        "title": "IncidentControlResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentControlResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The returned control event must belong to the returned incident.",
          "Nested incident and actor refinements apply to the embedded incident and audit record."
        ]
      },
      "IncidentEvent": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "additionalProperties": false,
            "properties": {
              "audit": {
                "properties": {
                  "action": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                    "type": "string"
                  },
                  "actor": {
                    "properties": {
                      "display": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "kind": {
                        "anyOf": [
                          {
                            "enum": [
                              "human",
                              "api_credential",
                              "mcp_client",
                              "operator",
                              "system"
                            ],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["kind"],
                    "type": "object"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "occurredAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "outcome": {
                    "enum": ["succeeded", "denied", "failed"],
                    "type": "string"
                  },
                  "target": {
                    "properties": {
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "type": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    },
                    "required": ["type", "id"],
                    "type": "object"
                  }
                },
                "required": [
                  "id",
                  "occurredAt",
                  "correlationId",
                  "actor",
                  "action",
                  "target",
                  "outcome"
                ],
                "type": "object"
              },
              "callbackIntentId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "configurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "deadlineAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "detectionDelayMs": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "expectedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "note": {
                "maxLength": 1024,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "notification": {
                "enum": [
                  "requested",
                  "suppressed_by_cooldown",
                  "suppressed_by_recovery_hysteresis"
                ],
                "type": "string"
              },
              "observationId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "reason": {
                "enum": [
                  "deadline_missed",
                  "recovery_lapsed",
                  "beat_accepted",
                  "operator_resolved",
                  "heartbeat_disabled",
                  "anomaly_confirmed",
                  "anomaly_sustained",
                  "anomaly_cleared",
                  "new_normal_accepted"
                ],
                "type": "string"
              },
              "recovery": {
                "additionalProperties": false,
                "properties": {
                  "confirmedBeats": {
                    "maximum": 10,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "requiredBeats": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": ["confirmedBeats", "requiredBeats"],
                "type": "object"
              },
              "sourceRequestId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                "type": "string"
              },
              "version": { "const": 1, "type": "number" },
              "violationFamily": {
                "enum": ["missing_beat", "numeric_anomaly"],
                "type": "string"
              }
            },
            "required": ["version"],
            "type": "object"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "incidentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "occurredAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "sequence": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "stateAfter": {
            "enum": ["open", "recovering", "recovered", "resolved"],
            "type": "string"
          },
          "type": {
            "enum": [
              "detected",
              "confirmed",
              "notification_requested",
              "acknowledged",
              "annotated",
              "recovery_started",
              "recovered",
              "resolved",
              "rebaselined",
              "archived"
            ],
            "type": "string"
          }
        },
        "required": [
          "data",
          "id",
          "incidentId",
          "occurredAt",
          "sequence",
          "stateAfter",
          "type"
        ],
        "title": "IncidentEvent",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentEventSchema",
        "x-signalsitter-source-only-refinements": [
          "Nested actor and recovery-progress refinements apply to the embedded audit record and recovery counters."
        ]
      },
      "IncidentEventType": {
        "enum": [
          "detected",
          "confirmed",
          "notification_requested",
          "acknowledged",
          "annotated",
          "recovery_started",
          "recovered",
          "resolved",
          "rebaselined",
          "archived"
        ],
        "title": "IncidentEventType",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentEventTypeSchema"
      },
      "IncidentId": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
        "title": "IncidentId",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentIdSchema"
      },
      "IncidentPage": {
        "properties": {
          "items": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "acknowledgement": {
                  "additionalProperties": false,
                  "properties": {
                    "acknowledgedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "actor": {
                      "properties": {
                        "display": {
                          "maxLength": 160,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "id": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "kind": {
                          "anyOf": [
                            {
                              "enum": [
                                "human",
                                "api_credential",
                                "mcp_client",
                                "operator",
                                "system"
                              ],
                              "type": "string"
                            },
                            {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            }
                          ]
                        }
                      },
                      "required": ["kind"],
                      "type": "object"
                    }
                  },
                  "required": ["acknowledgedAt", "actor"],
                  "type": "object"
                },
                "archivedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "closedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "confirmedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "detectedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "id": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "jurisdiction": {
                  "enum": ["unrestricted", "eu", "us", "fedramp"],
                  "type": "string"
                },
                "monitorKey": {
                  "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "notification": {
                  "enum": [
                    "requested",
                    "suppressed_by_cooldown",
                    "suppressed_by_recovery_hysteresis"
                  ],
                  "type": "string"
                },
                "openedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "recovery": {
                  "additionalProperties": false,
                  "properties": {
                    "confirmedBeats": {
                      "maximum": 10,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "requiredBeats": {
                      "maximum": 10,
                      "minimum": 1,
                      "type": "integer"
                    }
                  },
                  "required": ["confirmedBeats", "requiredBeats"],
                  "type": "object"
                },
                "state": {
                  "enum": ["open", "recovering", "recovered", "resolved"],
                  "type": "string"
                },
                "stateMachineVersion": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "updatedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "violationFamily": {
                  "enum": ["missing_beat", "numeric_anomaly"],
                  "type": "string"
                }
              },
              "required": [
                "detectedAt",
                "id",
                "jurisdiction",
                "monitorKey",
                "notification",
                "openedAt",
                "recovery",
                "state",
                "stateMachineVersion",
                "updatedAt",
                "violationFamily"
              ],
              "type": "object"
            },
            "maxItems": 200,
            "type": "array"
          },
          "nextCursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["items"],
        "title": "IncidentPage",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentPageSchema",
        "x-signalsitter-source-only-refinements": [
          "Nested incident refinements apply to every incident in the page."
        ]
      },
      "IncidentPolicy": {
        "additionalProperties": false,
        "properties": {
          "anomalySensitivity": {
            "default": 0.5,
            "maximum": 1,
            "minimum": 0,
            "type": "number"
          },
          "notificationCooldownSeconds": {
            "default": 0,
            "maximum": 604800,
            "minimum": 0,
            "type": "integer"
          },
          "recoveryConfirmationBeats": {
            "default": 1,
            "maximum": 10,
            "minimum": 1,
            "type": "integer"
          },
          "regimeChangeMode": {
            "default": "manual",
            "enum": ["manual", "automatic"],
            "type": "string"
          }
        },
        "title": "IncidentPolicy",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentPolicySchema"
      },
      "IncidentPolicyDecision": {
        "additionalProperties": false,
        "properties": {
          "configurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "confirmation": {
            "additionalProperties": false,
            "properties": {
              "confirmed": { "type": "boolean" },
              "observedInWindow": {
                "maximum": 6,
                "minimum": 0,
                "type": "integer"
              },
              "required": { "maximum": 6, "minimum": 1, "type": "integer" },
              "window": { "maximum": 6, "minimum": 1, "type": "integer" }
            },
            "required": ["confirmed", "observedInWindow", "required", "window"],
            "type": "object"
          },
          "contributions": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "breach": {
                  "additionalProperties": false,
                  "properties": {
                    "consequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    },
                    "justBecameSustained": { "type": "boolean" },
                    "phase": {
                      "enum": ["clear", "transient", "sustained"],
                      "type": "string"
                    },
                    "progress": {
                      "additionalProperties": false,
                      "properties": {
                        "elapsedSeconds": {
                          "maximum": 604800,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "qualifyingObservations": {
                          "maximum": 10,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "remaining": {
                          "maximum": 604800,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "startedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "elapsedSeconds",
                        "qualifyingObservations",
                        "remaining"
                      ],
                      "type": "object"
                    },
                    "sustainedConsequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    },
                    "sustainedCriterion": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "kind": {
                              "const": "observations",
                              "type": "string"
                            },
                            "observations": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": ["kind", "observations"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "kind": {
                              "const": "elapsed_time",
                              "type": "string"
                            },
                            "seconds": {
                              "maximum": 604800,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": ["kind", "seconds"],
                          "type": "object"
                        }
                      ]
                    },
                    "transientConsequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    }
                  },
                  "required": [
                    "consequence",
                    "justBecameSustained",
                    "phase",
                    "progress",
                    "sustainedConsequence",
                    "sustainedCriterion",
                    "transientConsequence"
                  ],
                  "type": "object"
                },
                "detector": {
                  "enum": [
                    "explicit_rule",
                    "adaptive_baseline",
                    "seasonal_baseline",
                    "persistent_shift"
                  ],
                  "type": "string"
                },
                "durationSamples": {
                  "maximum": 1000000,
                  "minimum": 0,
                  "type": "integer"
                },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "residualScore": { "minimum": 0, "type": "number" },
                "ruleId": {
                  "maxLength": 160,
                  "minLength": 3,
                  "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                  "type": "string"
                },
                "severity": {
                  "enum": ["info", "warning", "critical"],
                  "type": "string"
                },
                "trigger": {
                  "enum": [
                    "explicit_rule",
                    "extreme_deviation",
                    "moderate_confirmation",
                    "persistent_shift"
                  ],
                  "type": "string"
                }
              },
              "required": ["detector", "measurementKey", "severity"],
              "type": "object"
            },
            "maxItems": 80,
            "type": "array"
          },
          "engineVersion": { "const": 1, "type": "number" },
          "evaluation": {
            "additionalProperties": false,
            "properties": {
              "evaluatedMeasurementKeys": {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "maxItems": 32,
                "type": "array"
              },
              "policyActive": { "type": "boolean" },
              "publishedMeasurementKeys": {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "maxItems": 32,
                "type": "array"
              }
            },
            "required": [
              "evaluatedMeasurementKeys",
              "policyActive",
              "publishedMeasurementKeys"
            ],
            "type": "object"
          },
          "explanation": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "notifiable": { "type": "boolean" },
          "outcome": {
            "enum": [
              "none",
              "recorded",
              "confirming",
              "incident_opened",
              "incident_sustained",
              "recovery_pending",
              "recovery_confirmed"
            ],
            "type": "string"
          },
          "profile": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "configured": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "confirmationRequired": { "const": 4, "type": "number" },
                  "confirmationWindow": { "const": 6, "type": "number" },
                  "extremeResidualMultiple": { "const": 4, "type": "number" },
                  "name": { "const": "low", "type": "string" },
                  "recoveryConfirmationObservations": {
                    "const": 4,
                    "type": "number"
                  },
                  "regimeChangeObservations": { "const": 96, "type": "number" }
                },
                "required": [
                  "configured",
                  "confirmationRequired",
                  "confirmationWindow",
                  "extremeResidualMultiple",
                  "name",
                  "recoveryConfirmationObservations",
                  "regimeChangeObservations"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "configured": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "confirmationRequired": { "const": 3, "type": "number" },
                  "confirmationWindow": { "const": 5, "type": "number" },
                  "extremeResidualMultiple": { "const": 3, "type": "number" },
                  "name": { "const": "medium", "type": "string" },
                  "recoveryConfirmationObservations": {
                    "const": 3,
                    "type": "number"
                  },
                  "regimeChangeObservations": { "const": 48, "type": "number" }
                },
                "required": [
                  "configured",
                  "confirmationRequired",
                  "confirmationWindow",
                  "extremeResidualMultiple",
                  "name",
                  "recoveryConfirmationObservations",
                  "regimeChangeObservations"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "configured": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "confirmationRequired": { "const": 2, "type": "number" },
                  "confirmationWindow": { "const": 4, "type": "number" },
                  "extremeResidualMultiple": { "const": 2.5, "type": "number" },
                  "name": { "const": "high", "type": "string" },
                  "recoveryConfirmationObservations": {
                    "const": 3,
                    "type": "number"
                  },
                  "regimeChangeObservations": { "const": 24, "type": "number" }
                },
                "required": [
                  "configured",
                  "confirmationRequired",
                  "confirmationWindow",
                  "extremeResidualMultiple",
                  "name",
                  "recoveryConfirmationObservations",
                  "regimeChangeObservations"
                ],
                "type": "object"
              }
            ]
          },
          "recovery": {
            "additionalProperties": false,
            "properties": {
              "confirmedObservations": {
                "maximum": 10,
                "minimum": 0,
                "type": "integer"
              },
              "requiredObservations": {
                "maximum": 10,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": ["confirmedObservations", "requiredObservations"],
            "type": "object"
          },
          "regimeChange": {
            "additionalProperties": false,
            "properties": {
              "measurementKeys": {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "maxItems": 16,
                "type": "array"
              },
              "mode": { "enum": ["manual", "automatic"], "type": "string" },
              "requiredObservations": {
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              "state": {
                "enum": ["none", "watching", "available", "applied"],
                "type": "string"
              },
              "sustainedObservations": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "measurementKeys",
              "mode",
              "requiredObservations",
              "state",
              "sustainedObservations"
            ],
            "type": "object"
          },
          "severity": {
            "enum": ["info", "warning", "critical"],
            "type": "string"
          },
          "suppression": {
            "enum": [
              "detector_unconfirmed",
              "detector_warming",
              "detector_shadow_mode",
              "open_incident"
            ],
            "type": "string"
          },
          "triggers": {
            "items": {
              "enum": [
                "explicit_rule",
                "extreme_deviation",
                "moderate_confirmation",
                "persistent_shift"
              ],
              "type": "string"
            },
            "maxItems": 4,
            "type": "array"
          }
        },
        "required": [
          "configurationVersion",
          "confirmation",
          "contributions",
          "engineVersion",
          "explanation",
          "notifiable",
          "outcome",
          "profile",
          "recovery",
          "regimeChange",
          "severity",
          "triggers"
        ],
        "title": "IncidentPolicyDecision",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/publish.ts#IncidentPolicyDecisionSchema",
        "x-signalsitter-source-only-refinements": [
          "Only a newly opened episode or a confirmed recovery is notifiable.",
          "A suppressed outcome states its reason, and no other outcome does.",
          "Actionable evidence names its triggers, each once, and each backed by a contribution that produced it.",
          "An empty decision carries no contributing evidence, and severity without evidence is refused.",
          "Confirmation, recovery, and regime-change counts must follow the profile the decision records.",
          "Nested contribution, confirmation, recovery, and regime-change refinements apply."
        ]
      },
      "IncidentPolicyPatch": {
        "additionalProperties": false,
        "properties": {
          "anomalySensitivity": {
            "maximum": 1,
            "minimum": 0,
            "type": "number"
          },
          "notificationCooldownSeconds": {
            "maximum": 604800,
            "minimum": 0,
            "type": "integer"
          },
          "recoveryConfirmationBeats": {
            "maximum": 10,
            "minimum": 1,
            "type": "integer"
          },
          "regimeChangeMode": {
            "enum": ["manual", "automatic"],
            "type": "string"
          }
        },
        "title": "IncidentPolicyPatch",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentPolicyPatchSchema"
      },
      "IncidentState": {
        "enum": ["open", "recovering", "recovered", "resolved"],
        "title": "IncidentState",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentStateSchema"
      },
      "IncidentStateMachine": {
        "additionalProperties": false,
        "properties": {
          "activeStates": {
            "items": { "enum": ["open", "recovering"], "type": "string" },
            "minItems": 1,
            "type": "array"
          },
          "events": {
            "items": {
              "enum": [
                "detected",
                "confirmed",
                "notification_requested",
                "acknowledged",
                "annotated",
                "recovery_started",
                "recovered",
                "resolved",
                "rebaselined",
                "archived"
              ],
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          },
          "initialState": {
            "enum": ["open", "recovering", "recovered", "resolved"],
            "type": "string"
          },
          "states": {
            "items": {
              "enum": ["open", "recovering", "recovered", "resolved"],
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          },
          "transitions": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "event": {
                  "enum": [
                    "detected",
                    "confirmed",
                    "notification_requested",
                    "acknowledged",
                    "annotated",
                    "recovery_started",
                    "recovered",
                    "resolved",
                    "rebaselined",
                    "archived"
                  ],
                  "type": "string"
                },
                "from": {
                  "enum": ["open", "recovering", "recovered", "resolved"],
                  "type": "string"
                },
                "to": {
                  "enum": ["open", "recovering", "recovered", "resolved"],
                  "type": "string"
                }
              },
              "required": ["event", "from", "to"],
              "type": "object"
            },
            "minItems": 1,
            "type": "array"
          },
          "version": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "activeStates",
          "events",
          "initialState",
          "states",
          "transitions",
          "version"
        ],
        "title": "IncidentStateMachine",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentStateMachineSchema"
      },
      "IncidentTimelinePage": {
        "properties": {
          "items": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "data": {
                  "additionalProperties": false,
                  "properties": {
                    "audit": {
                      "properties": {
                        "action": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                          "type": "string"
                        },
                        "actor": {
                          "properties": {
                            "display": {
                              "maxLength": 160,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "id": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                              "type": "string"
                            },
                            "kind": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "human",
                                    "api_credential",
                                    "mcp_client",
                                    "operator",
                                    "system"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": ["kind"],
                          "type": "object"
                        },
                        "correlationId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                          "type": "string"
                        },
                        "id": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "occurredAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "outcome": {
                          "enum": ["succeeded", "denied", "failed"],
                          "type": "string"
                        },
                        "target": {
                          "properties": {
                            "id": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                              "type": "string"
                            },
                            "type": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            }
                          },
                          "required": ["type", "id"],
                          "type": "object"
                        }
                      },
                      "required": [
                        "id",
                        "occurredAt",
                        "correlationId",
                        "actor",
                        "action",
                        "target",
                        "outcome"
                      ],
                      "type": "object"
                    },
                    "callbackIntentId": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                      "type": "string"
                    },
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "deadlineAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "detectionDelayMs": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "expectedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "note": {
                      "maxLength": 1024,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "notification": {
                      "enum": [
                        "requested",
                        "suppressed_by_cooldown",
                        "suppressed_by_recovery_hysteresis"
                      ],
                      "type": "string"
                    },
                    "observationId": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                      "type": "string"
                    },
                    "reason": {
                      "enum": [
                        "deadline_missed",
                        "recovery_lapsed",
                        "beat_accepted",
                        "operator_resolved",
                        "heartbeat_disabled",
                        "anomaly_confirmed",
                        "anomaly_sustained",
                        "anomaly_cleared",
                        "new_normal_accepted"
                      ],
                      "type": "string"
                    },
                    "recovery": {
                      "additionalProperties": false,
                      "properties": {
                        "confirmedBeats": {
                          "maximum": 10,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "requiredBeats": {
                          "maximum": 10,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": ["confirmedBeats", "requiredBeats"],
                      "type": "object"
                    },
                    "sourceRequestId": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                      "type": "string"
                    },
                    "version": { "const": 1, "type": "number" },
                    "violationFamily": {
                      "enum": ["missing_beat", "numeric_anomaly"],
                      "type": "string"
                    }
                  },
                  "required": ["version"],
                  "type": "object"
                },
                "id": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "incidentId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "occurredAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "sequence": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "stateAfter": {
                  "enum": ["open", "recovering", "recovered", "resolved"],
                  "type": "string"
                },
                "type": {
                  "enum": [
                    "detected",
                    "confirmed",
                    "notification_requested",
                    "acknowledged",
                    "annotated",
                    "recovery_started",
                    "recovered",
                    "resolved",
                    "rebaselined",
                    "archived"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "data",
                "id",
                "incidentId",
                "occurredAt",
                "sequence",
                "stateAfter",
                "type"
              ],
              "type": "object"
            },
            "maxItems": 200,
            "type": "array"
          },
          "nextCursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["items"],
        "title": "IncidentTimelinePage",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentTimelinePageSchema",
        "x-signalsitter-source-only-refinements": [
          "Nested incident-event refinements apply to every event in the page."
        ]
      },
      "IncidentViolationFamily": {
        "enum": ["missing_beat", "numeric_anomaly"],
        "title": "IncidentViolationFamily",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/incidents.ts#IncidentViolationFamilySchema"
      },
      "McpAcceptNewNormalInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["idempotencyKey", "monitorId"],
        "title": "McpAcceptNewNormalInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpAcceptNewNormalInputSchema"
      },
      "McpAcceptNewNormalResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "acceptedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "audit": {
                    "properties": {
                      "action": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                        "type": "string"
                      },
                      "actor": {
                        "properties": {
                          "display": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "id": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "kind": {
                            "anyOf": [
                              {
                                "enum": [
                                  "human",
                                  "api_credential",
                                  "mcp_client",
                                  "operator",
                                  "system"
                                ],
                                "type": "string"
                              },
                              {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      "correlationId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                        "type": "string"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "occurredAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "outcome": {
                        "enum": ["succeeded", "denied", "failed"],
                        "type": "string"
                      },
                      "target": {
                        "properties": {
                          "id": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "type": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        },
                        "required": ["type", "id"],
                        "type": "object"
                      }
                    },
                    "required": [
                      "id",
                      "occurredAt",
                      "correlationId",
                      "actor",
                      "action",
                      "target",
                      "outcome"
                    ],
                    "type": "object"
                  },
                  "configurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "incidentId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "measurements": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "baselineSamples": {
                          "maximum": 128,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "expectedValue": { "type": "number" },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "residualSamples": {
                          "maximum": 128,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "shiftDurationSamples": {
                          "maximum": 1000000,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "baselineSamples",
                        "measurementKey",
                        "residualSamples"
                      ],
                      "type": "object"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "observationsPreserved": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "regimeChange": {
                    "additionalProperties": false,
                    "properties": {
                      "measurementKeys": {
                        "items": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maxItems": 16,
                        "type": "array"
                      },
                      "mode": {
                        "enum": ["manual", "automatic"],
                        "type": "string"
                      },
                      "requiredObservations": {
                        "maximum": 1000000,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "state": {
                        "enum": ["none", "watching", "available", "applied"],
                        "type": "string"
                      },
                      "sustainedObservations": {
                        "maximum": 1000000,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "measurementKeys",
                      "mode",
                      "requiredObservations",
                      "state",
                      "sustainedObservations"
                    ],
                    "type": "object"
                  },
                  "replayed": { "type": "boolean" }
                },
                "required": [
                  "jurisdiction",
                  "monitorKey",
                  "configurationVersion",
                  "measurements",
                  "observationsPreserved",
                  "regimeChange",
                  "acceptedAt",
                  "audit",
                  "id",
                  "replayed"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpAcceptNewNormalResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpAcceptNewNormalResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The embedded audit record must name the acceptance it belongs to.",
          "The embedded regime-change state and audit record apply their own consistency rules."
        ]
      },
      "McpActivationClient": {
        "enum": ["codex", "claude_code", "vscode"],
        "title": "McpActivationClient",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/activation.ts#McpActivationClientSchema"
      },
      "McpAnnotateIncidentInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "incidentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "note": {
            "maxLength": 1024,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "required": ["idempotencyKey", "incidentId", "note", "monitorId"],
        "title": "McpAnnotateIncidentInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpAnnotateIncidentInputSchema"
      },
      "McpApplyRuleWorkbenchDraftInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": [
          "expectedConfigurationVersion",
          "expectedDraftVersion",
          "draftId",
          "idempotencyKey",
          "monitorId"
        ],
        "title": "McpApplyRuleWorkbenchDraftInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpApplyRuleWorkbenchDraftInputSchema"
      },
      "McpApplyRuleWorkbenchDraftResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "configurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "draft": {
                    "additionalProperties": false,
                    "properties": {
                      "appliedConfigurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "baseConfigurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "closedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "createdAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "history": {
                        "additionalProperties": false,
                        "properties": {
                          "fromSequence": {
                            "maximum": 9007199254740991,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "frozenAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "observationCount": {
                            "maximum": 200,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "throughSequence": {
                            "maximum": 9007199254740991,
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": ["frozenAt", "observationCount"],
                        "type": "object"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "jurisdiction": {
                        "enum": ["unrestricted", "eu", "us", "fedramp"],
                        "type": "string"
                      },
                      "monitorKey": {
                        "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "proposal": {
                        "additionalProperties": false,
                        "properties": {
                          "definition": {
                            "additionalProperties": false,
                            "properties": {
                              "disabledRules": {
                                "items": {
                                  "enum": [
                                    "minimum",
                                    "maximum",
                                    "zero",
                                    "nonzero",
                                    "absolute_delta",
                                    "percentage_delta",
                                    "ratio_minimum",
                                    "ratio_maximum"
                                  ],
                                  "type": "string"
                                },
                                "maxItems": 8,
                                "type": "array"
                              },
                              "maximum": {
                                "anyOf": [
                                  { "type": "number" },
                                  { "type": "null" }
                                ]
                              },
                              "maximumAbsoluteDelta": {
                                "anyOf": [
                                  { "minimum": 0, "type": "number" },
                                  { "type": "null" }
                                ]
                              },
                              "maximumPercentageDelta": {
                                "anyOf": [
                                  { "minimum": 0, "type": "number" },
                                  { "type": "null" }
                                ]
                              },
                              "metricType": {
                                "enum": [
                                  "gauge",
                                  "count",
                                  "rate",
                                  "duration",
                                  "counter",
                                  "size"
                                ],
                                "type": "string"
                              },
                              "minimum": {
                                "anyOf": [
                                  { "type": "number" },
                                  { "type": "null" }
                                ]
                              },
                              "missingPolicy": {
                                "enum": ["skip", "zero", "reject"],
                                "type": "string"
                              },
                              "ratio": {
                                "additionalProperties": false,
                                "properties": {
                                  "denominator": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  },
                                  "maximum": {
                                    "anyOf": [
                                      { "type": "number" },
                                      { "type": "null" }
                                    ]
                                  },
                                  "minimum": {
                                    "anyOf": [
                                      { "type": "number" },
                                      { "type": "null" }
                                    ]
                                  }
                                },
                                "type": "object"
                              },
                              "ruleAction": {
                                "additionalProperties": false,
                                "properties": {
                                  "mode": {
                                    "enum": ["inactive", "active"],
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["mode", "version"],
                                "type": "object"
                              },
                              "rulePolicy": {
                                "anyOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "consecutiveObservations": {
                                        "maximum": 10,
                                        "minimum": 1,
                                        "type": "integer"
                                      },
                                      "severity": {
                                        "enum": ["info", "warning", "critical"],
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "sustainedConsequence": {
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      },
                                      "sustainedCriterion": {
                                        "oneOf": [
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "kind": {
                                                "const": "observations",
                                                "type": "string"
                                              },
                                              "observations": {
                                                "maximum": 10,
                                                "minimum": 1,
                                                "type": "integer"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "observations"
                                            ],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "kind": {
                                                "const": "elapsed_time",
                                                "type": "string"
                                              },
                                              "seconds": {
                                                "maximum": 604800,
                                                "minimum": 1,
                                                "type": "integer"
                                              }
                                            },
                                            "required": ["kind", "seconds"],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "transientConsequence": {
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      },
                                      "version": {
                                        "const": 1,
                                        "type": "number"
                                      }
                                    },
                                    "required": ["version"],
                                    "type": "object"
                                  }
                                ]
                              },
                              "transform": {
                                "enum": ["none", "log1p"],
                                "type": "string"
                              },
                              "unit": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "zeroExpectation": {
                                "anyOf": [
                                  {
                                    "enum": ["zero", "nonzero"],
                                    "type": "string"
                                  },
                                  { "type": "null" }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          "measurementKey": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        },
                        "required": ["definition", "measurementKey"],
                        "type": "object"
                      },
                      "status": {
                        "anyOf": [
                          {
                            "enum": ["open", "applied", "canceled"],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      },
                      "updatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "baseConfigurationVersion",
                      "createdAt",
                      "history",
                      "id",
                      "jurisdiction",
                      "monitorKey",
                      "proposal",
                      "status",
                      "updatedAt",
                      "version"
                    ],
                    "type": "object"
                  }
                },
                "required": ["configurationVersion", "draft"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpApplyRuleWorkbenchDraftResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpApplyRuleWorkbenchDraftResultSchema",
        "x-signalsitter-source-only-refinements": [
          "An apply result carries an applied draft at the resulting configuration version.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpCancelRuleWorkbenchDraftInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": [
          "expectedDraftVersion",
          "draftId",
          "idempotencyKey",
          "monitorId"
        ],
        "title": "McpCancelRuleWorkbenchDraftInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCancelRuleWorkbenchDraftInputSchema"
      },
      "McpCancelRuleWorkbenchDraftResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "appliedConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "baseConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "closedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "history": {
                    "additionalProperties": false,
                    "properties": {
                      "fromSequence": {
                        "maximum": 9007199254740991,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "frozenAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "observationCount": {
                        "maximum": 200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "throughSequence": {
                        "maximum": 9007199254740991,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": ["frozenAt", "observationCount"],
                    "type": "object"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "proposal": {
                    "additionalProperties": false,
                    "properties": {
                      "definition": {
                        "additionalProperties": false,
                        "properties": {
                          "disabledRules": {
                            "items": {
                              "enum": [
                                "minimum",
                                "maximum",
                                "zero",
                                "nonzero",
                                "absolute_delta",
                                "percentage_delta",
                                "ratio_minimum",
                                "ratio_maximum"
                              ],
                              "type": "string"
                            },
                            "maxItems": 8,
                            "type": "array"
                          },
                          "maximum": {
                            "anyOf": [{ "type": "number" }, { "type": "null" }]
                          },
                          "maximumAbsoluteDelta": {
                            "anyOf": [
                              { "minimum": 0, "type": "number" },
                              { "type": "null" }
                            ]
                          },
                          "maximumPercentageDelta": {
                            "anyOf": [
                              { "minimum": 0, "type": "number" },
                              { "type": "null" }
                            ]
                          },
                          "metricType": {
                            "enum": [
                              "gauge",
                              "count",
                              "rate",
                              "duration",
                              "counter",
                              "size"
                            ],
                            "type": "string"
                          },
                          "minimum": {
                            "anyOf": [{ "type": "number" }, { "type": "null" }]
                          },
                          "missingPolicy": {
                            "enum": ["skip", "zero", "reject"],
                            "type": "string"
                          },
                          "ratio": {
                            "additionalProperties": false,
                            "properties": {
                              "denominator": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "maximum": {
                                "anyOf": [
                                  { "type": "number" },
                                  { "type": "null" }
                                ]
                              },
                              "minimum": {
                                "anyOf": [
                                  { "type": "number" },
                                  { "type": "null" }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          "ruleAction": {
                            "additionalProperties": false,
                            "properties": {
                              "mode": {
                                "enum": ["inactive", "active"],
                                "type": "string"
                              },
                              "version": { "const": 1, "type": "number" }
                            },
                            "required": ["mode", "version"],
                            "type": "object"
                          },
                          "rulePolicy": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "consecutiveObservations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  "severity": {
                                    "enum": ["info", "warning", "critical"],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "sustainedConsequence": {
                                    "enum": [
                                      "none",
                                      "info",
                                      "warning",
                                      "critical"
                                    ],
                                    "type": "string"
                                  },
                                  "sustainedCriterion": {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "kind": {
                                            "const": "observations",
                                            "type": "string"
                                          },
                                          "observations": {
                                            "maximum": 10,
                                            "minimum": 1,
                                            "type": "integer"
                                          }
                                        },
                                        "required": ["kind", "observations"],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "kind": {
                                            "const": "elapsed_time",
                                            "type": "string"
                                          },
                                          "seconds": {
                                            "maximum": 604800,
                                            "minimum": 1,
                                            "type": "integer"
                                          }
                                        },
                                        "required": ["kind", "seconds"],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  "transientConsequence": {
                                    "enum": [
                                      "none",
                                      "info",
                                      "warning",
                                      "critical"
                                    ],
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["version"],
                                "type": "object"
                              }
                            ]
                          },
                          "transform": {
                            "enum": ["none", "log1p"],
                            "type": "string"
                          },
                          "unit": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "zeroExpectation": {
                            "anyOf": [
                              { "enum": ["zero", "nonzero"], "type": "string" },
                              { "type": "null" }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "measurementKey": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    },
                    "required": ["definition", "measurementKey"],
                    "type": "object"
                  },
                  "status": {
                    "anyOf": [
                      {
                        "enum": ["open", "applied", "canceled"],
                        "type": "string"
                      },
                      {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    ]
                  },
                  "updatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  }
                },
                "required": [
                  "baseConfigurationVersion",
                  "createdAt",
                  "history",
                  "id",
                  "jurisdiction",
                  "monitorKey",
                  "proposal",
                  "status",
                  "updatedAt",
                  "version"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpCancelRuleWorkbenchDraftResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCancelRuleWorkbenchDraftResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Draft lifecycle timestamps and applied configuration version agree with draft status.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpConnectionTestRequest": {
        "additionalProperties": false,
        "properties": {
          "client": {
            "enum": ["codex", "claude_code", "vscode"],
            "type": "string"
          },
          "credential": {
            "maxLength": 2048,
            "pattern": "^sig_v1_[A-Za-z0-9_-]{16}\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]{43}\\.[A-Za-z0-9_-]{43}$",
            "type": "string"
          }
        },
        "required": ["client", "credential"],
        "title": "McpConnectionTestRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/activation.ts#McpConnectionTestRequestSchema"
      },
      "McpConnectionTestResult": {
        "additionalProperties": false,
        "properties": {
          "client": {
            "enum": ["codex", "claude_code", "vscode"],
            "type": "string"
          },
          "connected": { "type": "boolean" },
          "discoveredToolCount": {
            "maximum": 256,
            "minimum": 0,
            "type": "integer"
          },
          "testedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": ["client", "connected", "discoveredToolCount", "testedAt"],
        "title": "McpConnectionTestResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/activation.ts#McpConnectionTestResultSchema",
        "x-signalsitter-source-only-refinements": [
          "A connected MCP test discovers tools and a failed test discovers none."
        ]
      },
      "McpControlMonitorLifecycleInput": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "enum": [
              "pause",
              "resume",
              "archive",
              "restore",
              "enter_maintenance",
              "exit_maintenance"
            ],
            "type": "string"
          },
          "confirm": { "type": "boolean" },
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "window": {
            "additionalProperties": false,
            "properties": {
              "endsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "reason": {
                "maxLength": 256,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "startsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              }
            },
            "required": ["endsAt", "startsAt"],
            "type": "object"
          }
        },
        "required": [
          "action",
          "expectedConfigurationVersion",
          "idempotencyKey",
          "monitorId"
        ],
        "title": "McpControlMonitorLifecycleInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpControlMonitorLifecycleInputSchema",
        "x-signalsitter-source-only-refinements": [
          "A maintenance window is required exactly for the enter_maintenance action."
        ]
      },
      "McpControlMonitorLifecycleResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "configuration": {
                    "additionalProperties": false,
                    "properties": {
                      "value": {
                        "additionalProperties": false,
                        "properties": {
                          "callback": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "disabled",
                                    "type": "string"
                                  }
                                },
                                "required": ["kind"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "organization_default",
                                    "type": "string"
                                  }
                                },
                                "required": ["kind"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "alias": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                    "type": "string"
                                  },
                                  "kind": { "const": "named", "type": "string" }
                                },
                                "required": ["kind", "alias"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "inline",
                                    "type": "string"
                                  },
                                  "url": {
                                    "format": "uri",
                                    "maxLength": 512,
                                    "type": "string"
                                  }
                                },
                                "required": ["kind", "url"],
                                "type": "object"
                              }
                            ]
                          },
                          "heartbeatExpectation": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "graceSeconds": {
                                    "default": 60,
                                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "intervalSeconds": {
                                    "maximum": 31536000,
                                    "minimum": 60,
                                    "type": "integer"
                                  },
                                  "state": {
                                    "const": "enabled",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": [
                                  "intervalSeconds",
                                  "state",
                                  "version"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "state": {
                                    "const": "disabled",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["state", "version"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "graceSeconds": {
                                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "state": {
                                    "const": "automatic",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["state", "version"],
                                "type": "object"
                              }
                            ]
                          },
                          "incidentPolicy": {
                            "additionalProperties": false,
                            "default": {
                              "anomalySensitivity": 0.5,
                              "notificationCooldownSeconds": 0,
                              "recoveryConfirmationBeats": 1,
                              "regimeChangeMode": "manual"
                            },
                            "properties": {
                              "anomalySensitivity": {
                                "default": 0.5,
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "notificationCooldownSeconds": {
                                "default": 0,
                                "maximum": 604800,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "recoveryConfirmationBeats": {
                                "default": 1,
                                "maximum": 10,
                                "minimum": 1,
                                "type": "integer"
                              },
                              "regimeChangeMode": {
                                "default": "manual",
                                "enum": ["manual", "automatic"],
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "measurements": {
                            "additionalProperties": {
                              "additionalProperties": false,
                              "properties": {
                                "disabledRules": {
                                  "items": {
                                    "enum": [
                                      "minimum",
                                      "maximum",
                                      "zero",
                                      "nonzero",
                                      "absolute_delta",
                                      "percentage_delta",
                                      "ratio_minimum",
                                      "ratio_maximum"
                                    ],
                                    "type": "string"
                                  },
                                  "maxItems": 8,
                                  "type": "array"
                                },
                                "maximum": { "type": "number" },
                                "maximumAbsoluteDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "maximumPercentageDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "metricType": {
                                  "default": "gauge",
                                  "enum": [
                                    "gauge",
                                    "count",
                                    "rate",
                                    "duration",
                                    "counter",
                                    "size"
                                  ],
                                  "type": "string"
                                },
                                "minimum": { "type": "number" },
                                "missingPolicy": {
                                  "default": "skip",
                                  "enum": ["skip", "zero", "reject"],
                                  "type": "string"
                                },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                },
                                "ratio": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "denominator": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[a-z][a-z0-9_]*$",
                                      "type": "string"
                                    },
                                    "maximum": { "type": "number" },
                                    "minimum": { "type": "number" }
                                  },
                                  "required": ["denominator"],
                                  "type": "object"
                                },
                                "ruleAction": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "mode": {
                                      "enum": ["inactive", "active"],
                                      "type": "string"
                                    },
                                    "version": { "const": 1, "type": "number" }
                                  },
                                  "required": ["mode", "version"],
                                  "type": "object"
                                },
                                "rulePolicy": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "consecutiveObservations": {
                                          "default": 1,
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        },
                                        "severity": {
                                          "default": "critical",
                                          "enum": [
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "sustainedConsequence": {
                                          "default": "critical",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "sustainedCriterion": {
                                          "default": {
                                            "kind": "observations",
                                            "observations": 1
                                          },
                                          "oneOf": [
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "observations",
                                                  "type": "string"
                                                },
                                                "observations": {
                                                  "maximum": 10,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": [
                                                "kind",
                                                "observations"
                                              ],
                                              "type": "object"
                                            },
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "elapsed_time",
                                                  "type": "string"
                                                },
                                                "seconds": {
                                                  "maximum": 604800,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": ["kind", "seconds"],
                                              "type": "object"
                                            }
                                          ]
                                        },
                                        "transientConsequence": {
                                          "default": "none",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "version": {
                                          "const": 1,
                                          "type": "number"
                                        }
                                      },
                                      "required": ["version"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "sensitivity": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transform": {
                                  "default": "none",
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "zeroExpectation": {
                                  "enum": ["zero", "nonzero"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "propertyNames": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "type": "object"
                          },
                          "name": {
                            "maxLength": 120,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "timeZone": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          }
                        },
                        "required": ["heartbeatExpectation"],
                        "type": "object"
                      },
                      "version": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": ["value", "version"],
                    "type": "object"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "lifecycle": {
                    "enum": ["active", "paused", "archived"],
                    "type": "string"
                  },
                  "lifecycleChangedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "maintenance": {
                    "additionalProperties": false,
                    "properties": {
                      "endsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "reason": {
                        "maxLength": 256,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "startsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      }
                    },
                    "required": ["endsAt", "startsAt"],
                    "type": "object"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "nextDeadline": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "replayed": { "type": "boolean" },
                  "restorableUntil": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  }
                },
                "required": [
                  "configuration",
                  "jurisdiction",
                  "lifecycle",
                  "monitorKey",
                  "replayed"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpControlMonitorLifecycleResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpControlMonitorLifecycleResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Only an active monitor reports an armed deadline, and a restorable-until timestamp is present exactly for an archived monitor."
        ]
      },
      "McpControlProjectLifecycleInput": {
        "additionalProperties": false,
        "properties": {
          "action": { "enum": ["archive", "restore"], "type": "string" },
          "confirm": { "type": "boolean" },
          "expectedVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["action", "idempotencyKey"],
        "title": "McpControlProjectLifecycleInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpControlProjectLifecycleInputSchema"
      },
      "McpControlProjectLifecycleResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "enum": ["archive", "restore"],
                    "type": "string"
                  },
                  "lifecycleGeneration": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "project": {
                    "additionalProperties": false,
                    "properties": {
                      "createdAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "lifecycle": {
                        "enum": ["active", "archived"],
                        "type": "string"
                      },
                      "name": {
                        "maxLength": 120,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "projectId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "createdAt",
                      "lifecycle",
                      "name",
                      "projectId",
                      "version"
                    ],
                    "type": "object"
                  },
                  "replayed": { "type": "boolean" }
                },
                "required": [
                  "action",
                  "lifecycleGeneration",
                  "project",
                  "replayed"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpControlProjectLifecycleResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpControlProjectLifecycleResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The nested project preserves its name refinement.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpCreateCallbackEndpointInput": {
        "additionalProperties": false,
        "properties": {
          "alias": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "confirm": { "type": "boolean" },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "kind": {
            "default": "webhook",
            "enum": ["webhook", "whooshbang_subscriber", "whooshbang_group"],
            "type": "string"
          },
          "url": { "format": "uri", "maxLength": 512, "type": "string" },
          "whooshbang": {
            "additionalProperties": false,
            "properties": {
              "actorId": { "maxLength": 128, "minLength": 1, "type": "string" },
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "type": "object"
          },
          "whooshbangGroup": {
            "additionalProperties": false,
            "properties": {
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "required": ["alias", "idempotencyKey"],
        "title": "McpCreateCallbackEndpointInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCreateCallbackEndpointInputSchema",
        "x-signalsitter-source-only-refinements": [
          "Callback destinations must be public HTTPS URLs without credentials or fragments."
        ]
      },
      "McpCreateCallbackEndpointResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "endpoint": {
                    "properties": {
                      "alias": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "createdAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "disabledAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "generation": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "isOrganizationDefault": { "type": "boolean" },
                      "kind": {
                        "default": "webhook",
                        "enum": [
                          "webhook",
                          "whooshbang_subscriber",
                          "whooshbang_group"
                        ],
                        "type": "string"
                      },
                      "lifecycle": {
                        "enum": ["active", "disabled"],
                        "type": "string"
                      },
                      "projectId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "secret": {
                        "additionalProperties": false,
                        "properties": {
                          "issuedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "overlapEndsAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "previousVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          }
                        },
                        "required": ["version", "issuedAt"],
                        "type": "object"
                      },
                      "updatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "url": {
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      },
                      "whooshbang": {
                        "additionalProperties": false,
                        "properties": {
                          "actorId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "type": "string"
                          },
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "actorId",
                          "contractVersion",
                          "notifierId"
                        ],
                        "type": "object"
                      },
                      "whooshbangGroup": {
                        "additionalProperties": false,
                        "properties": {
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": ["contractVersion", "notifierId"],
                        "type": "object"
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "alias",
                      "lifecycle",
                      "isOrganizationDefault",
                      "generation",
                      "createdAt",
                      "updatedAt"
                    ],
                    "type": "object"
                  },
                  "replayed": { "type": "boolean" },
                  "signingSecret": {
                    "properties": {
                      "onlyShownOnce": { "const": true, "type": "boolean" },
                      "overlapEndsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "previousVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      },
                      "revealedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "secret": {
                        "pattern": "^sigcb_v1_[A-Za-z0-9_-]{43}$",
                        "type": "string"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "secret",
                      "revealedAt",
                      "onlyShownOnce",
                      "version"
                    ],
                    "type": "object"
                  }
                },
                "required": ["endpoint", "replayed"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpCreateCallbackEndpointResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCreateCallbackEndpointResultSchema",
        "x-signalsitter-source-only-refinements": [
          "A newly issued signing secret is revealed once, and only for a webhook destination; an idempotent replay and a destination this product issues no secret for reveal none.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpCreateCredentialInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "expiresAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "label": {
            "maxLength": 100,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "preset": {
            "enum": ["read", "write", "readwrite", "manage"],
            "type": "string"
          }
        },
        "required": ["label", "preset", "idempotencyKey"],
        "title": "McpCreateCredentialInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCreateCredentialInputSchema"
      },
      "McpCreateCredentialResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "credential": {
                    "properties": {
                      "createdAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "expiresAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "generation": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "label": {
                        "maxLength": 100,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "lastUsedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "prefix": {
                        "pattern": "^sig_v1_[A-Za-z0-9_-]{16}$",
                        "type": "string"
                      },
                      "preset": {
                        "enum": ["read", "write", "readwrite", "manage"],
                        "type": "string"
                      },
                      "projectId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "revokedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "rotatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "scopes": {
                        "items": {
                          "enum": [
                            "callbacks:read",
                            "callbacks:write",
                            "credentials:write",
                            "incidents:read",
                            "incidents:write",
                            "monitors:read",
                            "monitors:write",
                            "observations:read",
                            "organization:write",
                            "organization:destroy",
                            "projects:read",
                            "projects:write",
                            "projects:administer",
                            "usage:read"
                          ],
                          "type": "string"
                        },
                        "maxItems": 14,
                        "minItems": 1,
                        "type": "array"
                      },
                      "state": {
                        "enum": ["active", "revoked"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "label",
                      "prefix",
                      "preset",
                      "scopes",
                      "state",
                      "generation",
                      "createdAt"
                    ],
                    "type": "object"
                  },
                  "replayed": { "type": "boolean" },
                  "secret": {
                    "properties": {
                      "onlyShownOnce": { "const": true, "type": "boolean" },
                      "revealedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "secret": {
                        "maxLength": 2048,
                        "pattern": "^sig_v1_[A-Za-z0-9_-]{16}\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]{43}\\.[A-Za-z0-9_-]{43}$",
                        "type": "string"
                      }
                    },
                    "required": ["secret", "revealedAt", "onlyShownOnce"],
                    "type": "object"
                  }
                },
                "required": ["credential", "replayed"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpCreateCredentialResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCreateCredentialResultSchema",
        "x-signalsitter-source-only-refinements": [
          "A successful new credential reveals one secret while an idempotent replay reveals none."
        ]
      },
      "McpCreateMonitorInput": {
        "additionalProperties": false,
        "properties": {
          "callback": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "disabled", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "organization_default", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": { "const": "named", "type": "string" }
                },
                "required": ["alias", "kind"],
                "type": "object"
              }
            ]
          },
          "confirm": { "type": "boolean" },
          "graceSeconds": {
            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
            "maximum": 604800,
            "minimum": 0,
            "type": "integer"
          },
          "heartbeatExpectation": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "default": 60,
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "intervalSeconds": {
                    "maximum": 31536000,
                    "minimum": 60,
                    "type": "integer"
                  },
                  "state": { "const": "enabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["intervalSeconds", "state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "state": { "const": "disabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "state": { "const": "automatic", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              }
            ]
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "intervalSeconds": {
            "maximum": 31536000,
            "minimum": 60,
            "type": "integer"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "required": ["name", "idempotencyKey"],
        "title": "McpCreateMonitorInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCreateMonitorInputSchema"
      },
      "McpCreateMonitorResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "configuration": {
                    "additionalProperties": false,
                    "properties": {
                      "value": {
                        "additionalProperties": false,
                        "properties": {
                          "callback": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "disabled",
                                    "type": "string"
                                  }
                                },
                                "required": ["kind"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "organization_default",
                                    "type": "string"
                                  }
                                },
                                "required": ["kind"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "alias": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                    "type": "string"
                                  },
                                  "kind": { "const": "named", "type": "string" }
                                },
                                "required": ["kind", "alias"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "inline",
                                    "type": "string"
                                  },
                                  "url": {
                                    "format": "uri",
                                    "maxLength": 512,
                                    "type": "string"
                                  }
                                },
                                "required": ["kind", "url"],
                                "type": "object"
                              }
                            ]
                          },
                          "heartbeatExpectation": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "graceSeconds": {
                                    "default": 60,
                                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "intervalSeconds": {
                                    "maximum": 31536000,
                                    "minimum": 60,
                                    "type": "integer"
                                  },
                                  "state": {
                                    "const": "enabled",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": [
                                  "intervalSeconds",
                                  "state",
                                  "version"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "state": {
                                    "const": "disabled",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["state", "version"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "graceSeconds": {
                                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "state": {
                                    "const": "automatic",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["state", "version"],
                                "type": "object"
                              }
                            ]
                          },
                          "incidentPolicy": {
                            "additionalProperties": false,
                            "default": {
                              "anomalySensitivity": 0.5,
                              "notificationCooldownSeconds": 0,
                              "recoveryConfirmationBeats": 1,
                              "regimeChangeMode": "manual"
                            },
                            "properties": {
                              "anomalySensitivity": {
                                "default": 0.5,
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "notificationCooldownSeconds": {
                                "default": 0,
                                "maximum": 604800,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "recoveryConfirmationBeats": {
                                "default": 1,
                                "maximum": 10,
                                "minimum": 1,
                                "type": "integer"
                              },
                              "regimeChangeMode": {
                                "default": "manual",
                                "enum": ["manual", "automatic"],
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "measurements": {
                            "additionalProperties": {
                              "additionalProperties": false,
                              "properties": {
                                "disabledRules": {
                                  "items": {
                                    "enum": [
                                      "minimum",
                                      "maximum",
                                      "zero",
                                      "nonzero",
                                      "absolute_delta",
                                      "percentage_delta",
                                      "ratio_minimum",
                                      "ratio_maximum"
                                    ],
                                    "type": "string"
                                  },
                                  "maxItems": 8,
                                  "type": "array"
                                },
                                "maximum": { "type": "number" },
                                "maximumAbsoluteDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "maximumPercentageDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "metricType": {
                                  "default": "gauge",
                                  "enum": [
                                    "gauge",
                                    "count",
                                    "rate",
                                    "duration",
                                    "counter",
                                    "size"
                                  ],
                                  "type": "string"
                                },
                                "minimum": { "type": "number" },
                                "missingPolicy": {
                                  "default": "skip",
                                  "enum": ["skip", "zero", "reject"],
                                  "type": "string"
                                },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                },
                                "ratio": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "denominator": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[a-z][a-z0-9_]*$",
                                      "type": "string"
                                    },
                                    "maximum": { "type": "number" },
                                    "minimum": { "type": "number" }
                                  },
                                  "required": ["denominator"],
                                  "type": "object"
                                },
                                "ruleAction": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "mode": {
                                      "enum": ["inactive", "active"],
                                      "type": "string"
                                    },
                                    "version": { "const": 1, "type": "number" }
                                  },
                                  "required": ["mode", "version"],
                                  "type": "object"
                                },
                                "rulePolicy": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "consecutiveObservations": {
                                          "default": 1,
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        },
                                        "severity": {
                                          "default": "critical",
                                          "enum": [
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "sustainedConsequence": {
                                          "default": "critical",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "sustainedCriterion": {
                                          "default": {
                                            "kind": "observations",
                                            "observations": 1
                                          },
                                          "oneOf": [
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "observations",
                                                  "type": "string"
                                                },
                                                "observations": {
                                                  "maximum": 10,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": [
                                                "kind",
                                                "observations"
                                              ],
                                              "type": "object"
                                            },
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "elapsed_time",
                                                  "type": "string"
                                                },
                                                "seconds": {
                                                  "maximum": 604800,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": ["kind", "seconds"],
                                              "type": "object"
                                            }
                                          ]
                                        },
                                        "transientConsequence": {
                                          "default": "none",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "version": {
                                          "const": 1,
                                          "type": "number"
                                        }
                                      },
                                      "required": ["version"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "sensitivity": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transform": {
                                  "default": "none",
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "zeroExpectation": {
                                  "enum": ["zero", "nonzero"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "propertyNames": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "type": "object"
                          },
                          "name": {
                            "maxLength": 120,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "timeZone": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          }
                        },
                        "required": ["heartbeatExpectation"],
                        "type": "object"
                      },
                      "version": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": ["value", "version"],
                    "type": "object"
                  },
                  "directoryState": {
                    "enum": ["pending", "synchronized"],
                    "type": "string"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "publishUrl": { "format": "uri", "type": "string" },
                  "replayed": { "type": "boolean" },
                  "state": { "const": "waiting", "type": "string" }
                },
                "required": [
                  "configuration",
                  "directoryState",
                  "jurisdiction",
                  "monitorKey",
                  "publishUrl",
                  "replayed",
                  "state"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpCreateMonitorResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCreateMonitorResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The publish URL must use HTTPS.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpCreateProjectInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "required": ["name"],
        "title": "McpCreateProjectInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCreateProjectInputSchema",
        "x-signalsitter-source-only-refinements": [
          "A name may not be blank once surrounding whitespace is removed."
        ]
      },
      "McpCreateProjectResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "lifecycle": {
                    "enum": ["active", "archived"],
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 120,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "projectId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  }
                },
                "required": [
                  "createdAt",
                  "lifecycle",
                  "name",
                  "projectId",
                  "version"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpCreateProjectResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCreateProjectResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The project preserves its name refinement.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpCreateRuleWorkbenchDraftInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "historyLimit": { "maximum": 200, "minimum": 1, "type": "integer" },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "measurementKey": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*$",
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["measurementKey", "idempotencyKey", "monitorId"],
        "title": "McpCreateRuleWorkbenchDraftInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCreateRuleWorkbenchDraftInputSchema"
      },
      "McpCreateRuleWorkbenchDraftResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "appliedConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "baseConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "closedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "history": {
                    "additionalProperties": false,
                    "properties": {
                      "fromSequence": {
                        "maximum": 9007199254740991,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "frozenAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "observationCount": {
                        "maximum": 200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "throughSequence": {
                        "maximum": 9007199254740991,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": ["frozenAt", "observationCount"],
                    "type": "object"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "proposal": {
                    "additionalProperties": false,
                    "properties": {
                      "definition": {
                        "additionalProperties": false,
                        "properties": {
                          "disabledRules": {
                            "items": {
                              "enum": [
                                "minimum",
                                "maximum",
                                "zero",
                                "nonzero",
                                "absolute_delta",
                                "percentage_delta",
                                "ratio_minimum",
                                "ratio_maximum"
                              ],
                              "type": "string"
                            },
                            "maxItems": 8,
                            "type": "array"
                          },
                          "maximum": {
                            "anyOf": [{ "type": "number" }, { "type": "null" }]
                          },
                          "maximumAbsoluteDelta": {
                            "anyOf": [
                              { "minimum": 0, "type": "number" },
                              { "type": "null" }
                            ]
                          },
                          "maximumPercentageDelta": {
                            "anyOf": [
                              { "minimum": 0, "type": "number" },
                              { "type": "null" }
                            ]
                          },
                          "metricType": {
                            "enum": [
                              "gauge",
                              "count",
                              "rate",
                              "duration",
                              "counter",
                              "size"
                            ],
                            "type": "string"
                          },
                          "minimum": {
                            "anyOf": [{ "type": "number" }, { "type": "null" }]
                          },
                          "missingPolicy": {
                            "enum": ["skip", "zero", "reject"],
                            "type": "string"
                          },
                          "ratio": {
                            "additionalProperties": false,
                            "properties": {
                              "denominator": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "maximum": {
                                "anyOf": [
                                  { "type": "number" },
                                  { "type": "null" }
                                ]
                              },
                              "minimum": {
                                "anyOf": [
                                  { "type": "number" },
                                  { "type": "null" }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          "ruleAction": {
                            "additionalProperties": false,
                            "properties": {
                              "mode": {
                                "enum": ["inactive", "active"],
                                "type": "string"
                              },
                              "version": { "const": 1, "type": "number" }
                            },
                            "required": ["mode", "version"],
                            "type": "object"
                          },
                          "rulePolicy": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "consecutiveObservations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  "severity": {
                                    "enum": ["info", "warning", "critical"],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "sustainedConsequence": {
                                    "enum": [
                                      "none",
                                      "info",
                                      "warning",
                                      "critical"
                                    ],
                                    "type": "string"
                                  },
                                  "sustainedCriterion": {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "kind": {
                                            "const": "observations",
                                            "type": "string"
                                          },
                                          "observations": {
                                            "maximum": 10,
                                            "minimum": 1,
                                            "type": "integer"
                                          }
                                        },
                                        "required": ["kind", "observations"],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "kind": {
                                            "const": "elapsed_time",
                                            "type": "string"
                                          },
                                          "seconds": {
                                            "maximum": 604800,
                                            "minimum": 1,
                                            "type": "integer"
                                          }
                                        },
                                        "required": ["kind", "seconds"],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  "transientConsequence": {
                                    "enum": [
                                      "none",
                                      "info",
                                      "warning",
                                      "critical"
                                    ],
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["version"],
                                "type": "object"
                              }
                            ]
                          },
                          "transform": {
                            "enum": ["none", "log1p"],
                            "type": "string"
                          },
                          "unit": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "zeroExpectation": {
                            "anyOf": [
                              { "enum": ["zero", "nonzero"], "type": "string" },
                              { "type": "null" }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "measurementKey": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    },
                    "required": ["definition", "measurementKey"],
                    "type": "object"
                  },
                  "status": {
                    "anyOf": [
                      {
                        "enum": ["open", "applied", "canceled"],
                        "type": "string"
                      },
                      {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    ]
                  },
                  "updatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  }
                },
                "required": [
                  "baseConfigurationVersion",
                  "createdAt",
                  "history",
                  "id",
                  "jurisdiction",
                  "monitorKey",
                  "proposal",
                  "status",
                  "updatedAt",
                  "version"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpCreateRuleWorkbenchDraftResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpCreateRuleWorkbenchDraftResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Draft lifecycle timestamps and applied configuration version agree with draft status.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpDeleteMonitorInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": [
          "expectedConfigurationVersion",
          "idempotencyKey",
          "monitorId"
        ],
        "title": "McpDeleteMonitorInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpDeleteMonitorInputSchema"
      },
      "McpDeleteMonitorResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "deletedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "deletedConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "directoryState": {
                    "enum": ["pending", "synchronized"],
                    "type": "string"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "replayed": { "type": "boolean" },
                  "settlement": {
                    "additionalProperties": false,
                    "properties": {
                      "callbackIntentsAbandoned": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "incidentsTerminated": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "scheduledTasksCanceled": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "callbackIntentsAbandoned",
                      "incidentsTerminated",
                      "scheduledTasksCanceled"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "deletedAt",
                  "deletedConfigurationVersion",
                  "directoryState",
                  "jurisdiction",
                  "monitorKey",
                  "replayed",
                  "settlement"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpDeleteMonitorResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpDeleteMonitorResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpDeleteProjectInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "expectedVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["idempotencyKey"],
        "title": "McpDeleteProjectInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpDeleteProjectInputSchema"
      },
      "McpDeleteProjectResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "completedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "counts": {
                    "additionalProperties": false,
                    "properties": {
                      "callbackEndpoints": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "credentials": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "incidents": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "monitors": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "usageAggregateRows": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "callbackEndpoints",
                      "credentials",
                      "incidents",
                      "monitors",
                      "usageAggregateRows"
                    ],
                    "type": "object"
                  },
                  "lifecycleGeneration": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "projectId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "replayed": { "type": "boolean" },
                  "requestedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "state": {
                    "enum": ["reserved", "erasing", "completed"],
                    "type": "string"
                  }
                },
                "required": [
                  "counts",
                  "lifecycleGeneration",
                  "projectId",
                  "replayed",
                  "requestedAt",
                  "state"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpDeleteProjectResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpDeleteProjectResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Only a completed project deletion records completedAt.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpDisableCallbackEndpointInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "endpointId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["endpointId", "expectedGeneration"],
        "title": "McpDisableCallbackEndpointInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpDisableCallbackEndpointInputSchema"
      },
      "McpDisableCallbackEndpointResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "disabledAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "generation": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "isOrganizationDefault": { "type": "boolean" },
                  "kind": {
                    "default": "webhook",
                    "enum": [
                      "webhook",
                      "whooshbang_subscriber",
                      "whooshbang_group"
                    ],
                    "type": "string"
                  },
                  "lifecycle": {
                    "enum": ["active", "disabled"],
                    "type": "string"
                  },
                  "projectId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "secret": {
                    "additionalProperties": false,
                    "properties": {
                      "issuedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "overlapEndsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "previousVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      }
                    },
                    "required": ["version", "issuedAt"],
                    "type": "object"
                  },
                  "updatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "url": {
                    "format": "uri",
                    "maxLength": 512,
                    "type": "string"
                  },
                  "whooshbang": {
                    "additionalProperties": false,
                    "properties": {
                      "actorId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "type": "string"
                      },
                      "contractVersion": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      },
                      "notifierId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      }
                    },
                    "required": ["actorId", "contractVersion", "notifierId"],
                    "type": "object"
                  },
                  "whooshbangGroup": {
                    "additionalProperties": false,
                    "properties": {
                      "contractVersion": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      },
                      "notifierId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      }
                    },
                    "required": ["contractVersion", "notifierId"],
                    "type": "object"
                  }
                },
                "required": [
                  "id",
                  "projectId",
                  "alias",
                  "lifecycle",
                  "isOrganizationDefault",
                  "generation",
                  "createdAt",
                  "updatedAt"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpDisableCallbackEndpointResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpDisableCallbackEndpointResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The endpoint preserves its lifecycle, default, and rotation-overlap refinements.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpGetBillingCancellationImpactInput": {
        "additionalProperties": false,
        "properties": {},
        "title": "McpGetBillingCancellationImpactInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetBillingCancellationImpactInputSchema"
      },
      "McpGetBillingCancellationImpactResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "monitors": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "effects": {
                          "items": {
                            "enum": [
                              "retained",
                              "suspended_over_allotment",
                              "interval_raised",
                              "measurements_reduced",
                              "detectors_reduced"
                            ],
                            "type": "string"
                          },
                          "maxItems": 5,
                          "minItems": 1,
                          "type": "array"
                        },
                        "intervalSecondsAfter": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        },
                        "intervalSecondsBefore": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        },
                        "measurementsAfter": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "measurementsBefore": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "monitorId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "retained": { "type": "boolean" }
                      },
                      "required": ["monitorId", "effects", "retained"],
                      "type": "object"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  "monitorsAffected": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "monitorsRetained": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "monitorsSuspended": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "organizationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "targetPlan": {
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "enum": ["free", "builder", "smart", "scale"],
                        "type": "string"
                      },
                      "name": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                        "type": "string"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": ["id", "name", "version"],
                    "type": "object"
                  },
                  "truncated": { "type": "boolean" }
                },
                "required": [
                  "organizationId",
                  "monitors",
                  "monitorsAffected",
                  "monitorsRetained",
                  "monitorsSuspended",
                  "truncated",
                  "targetPlan"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetBillingCancellationImpactResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetBillingCancellationImpactResultSchema"
      },
      "McpGetBillingInput": {
        "additionalProperties": false,
        "properties": {},
        "title": "McpGetBillingInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetBillingInputSchema"
      },
      "McpGetBillingResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "dispute": {
                    "enum": ["none", "open", "won", "lost"],
                    "type": "string"
                  },
                  "graceEndsAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "organizationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "plan": {
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "enum": ["free", "builder", "smart", "scale"],
                        "type": "string"
                      },
                      "name": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                        "type": "string"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": ["id", "name", "version"],
                    "type": "object"
                  },
                  "portalAvailable": { "type": "boolean" },
                  "reconciledAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "serviceState": {
                    "enum": [
                      "active",
                      "payment_grace",
                      "abuse_suspended",
                      "canceled",
                      "deleting"
                    ],
                    "type": "string"
                  },
                  "subscription": {
                    "additionalProperties": false,
                    "properties": {
                      "cancelAtPeriodEnd": { "type": "boolean" },
                      "currentPeriodEnd": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "status": {
                        "enum": [
                          "none",
                          "trialing",
                          "active",
                          "past_due",
                          "unpaid",
                          "canceled",
                          "incomplete",
                          "incomplete_expired",
                          "paused"
                        ],
                        "type": "string"
                      },
                      "trialEndsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      }
                    },
                    "required": ["cancelAtPeriodEnd", "status"],
                    "type": "object"
                  }
                },
                "required": [
                  "organizationId",
                  "dispute",
                  "portalAvailable",
                  "plan",
                  "serviceState",
                  "subscription"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetBillingResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetBillingResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Payment grace states when it ends, and only payment grace states one.",
          "A trial states when it ends, and only a trial states one.",
          "An absent subscription is neither scheduled to cancel nor offered a portal."
        ]
      },
      "McpGetCallbackDefaultInput": {
        "additionalProperties": false,
        "properties": {},
        "title": "McpGetCallbackDefaultInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetCallbackDefaultInputSchema"
      },
      "McpGetCallbackDefaultResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "endpoint": {
                    "properties": {
                      "alias": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "createdAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "disabledAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "generation": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "isOrganizationDefault": { "type": "boolean" },
                      "kind": {
                        "default": "webhook",
                        "enum": [
                          "webhook",
                          "whooshbang_subscriber",
                          "whooshbang_group"
                        ],
                        "type": "string"
                      },
                      "lifecycle": {
                        "enum": ["active", "disabled"],
                        "type": "string"
                      },
                      "projectId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "secret": {
                        "additionalProperties": false,
                        "properties": {
                          "issuedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "overlapEndsAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "previousVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          }
                        },
                        "required": ["version", "issuedAt"],
                        "type": "object"
                      },
                      "updatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "url": {
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      },
                      "whooshbang": {
                        "additionalProperties": false,
                        "properties": {
                          "actorId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "type": "string"
                          },
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "actorId",
                          "contractVersion",
                          "notifierId"
                        ],
                        "type": "object"
                      },
                      "whooshbangGroup": {
                        "additionalProperties": false,
                        "properties": {
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": ["contractVersion", "notifierId"],
                        "type": "object"
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "alias",
                      "lifecycle",
                      "isOrganizationDefault",
                      "generation",
                      "createdAt",
                      "updatedAt"
                    ],
                    "type": "object"
                  }
                },
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetCallbackDefaultResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetCallbackDefaultResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The endpoint preserves its lifecycle, default, and rotation-overlap refinements.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpGetCallbackEndpointInput": {
        "additionalProperties": false,
        "properties": {
          "endpointId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["endpointId"],
        "title": "McpGetCallbackEndpointInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetCallbackEndpointInputSchema"
      },
      "McpGetCallbackEndpointResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "disabledAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "generation": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "isOrganizationDefault": { "type": "boolean" },
                  "kind": {
                    "default": "webhook",
                    "enum": [
                      "webhook",
                      "whooshbang_subscriber",
                      "whooshbang_group"
                    ],
                    "type": "string"
                  },
                  "lifecycle": {
                    "enum": ["active", "disabled"],
                    "type": "string"
                  },
                  "projectId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "secret": {
                    "additionalProperties": false,
                    "properties": {
                      "issuedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "overlapEndsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "previousVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      }
                    },
                    "required": ["version", "issuedAt"],
                    "type": "object"
                  },
                  "updatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "url": {
                    "format": "uri",
                    "maxLength": 512,
                    "type": "string"
                  },
                  "whooshbang": {
                    "additionalProperties": false,
                    "properties": {
                      "actorId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "type": "string"
                      },
                      "contractVersion": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      },
                      "notifierId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      }
                    },
                    "required": ["actorId", "contractVersion", "notifierId"],
                    "type": "object"
                  },
                  "whooshbangGroup": {
                    "additionalProperties": false,
                    "properties": {
                      "contractVersion": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      },
                      "notifierId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      }
                    },
                    "required": ["contractVersion", "notifierId"],
                    "type": "object"
                  }
                },
                "required": [
                  "id",
                  "projectId",
                  "alias",
                  "lifecycle",
                  "isOrganizationDefault",
                  "generation",
                  "createdAt",
                  "updatedAt"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetCallbackEndpointResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetCallbackEndpointResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The endpoint preserves its lifecycle, default, and rotation-overlap refinements.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpGetCredentialInput": {
        "additionalProperties": false,
        "properties": {
          "credentialId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["credentialId"],
        "title": "McpGetCredentialInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetCredentialInputSchema"
      },
      "McpGetCredentialResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "expiresAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "generation": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "label": {
                    "maxLength": 100,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "lastUsedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "prefix": {
                    "pattern": "^sig_v1_[A-Za-z0-9_-]{16}$",
                    "type": "string"
                  },
                  "preset": {
                    "enum": ["read", "write", "readwrite", "manage"],
                    "type": "string"
                  },
                  "projectId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "revokedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "rotatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "scopes": {
                    "items": {
                      "enum": [
                        "callbacks:read",
                        "callbacks:write",
                        "credentials:write",
                        "incidents:read",
                        "incidents:write",
                        "monitors:read",
                        "monitors:write",
                        "observations:read",
                        "organization:write",
                        "organization:destroy",
                        "projects:read",
                        "projects:write",
                        "projects:administer",
                        "usage:read"
                      ],
                      "type": "string"
                    },
                    "maxItems": 14,
                    "minItems": 1,
                    "type": "array"
                  },
                  "state": { "enum": ["active", "revoked"], "type": "string" }
                },
                "required": [
                  "id",
                  "projectId",
                  "label",
                  "prefix",
                  "preset",
                  "scopes",
                  "state",
                  "generation",
                  "createdAt"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetCredentialResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetCredentialResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Successful credential metadata preserves preset/scope and lifecycle refinements."
        ]
      },
      "McpGetDefaultJurisdictionInput": {
        "additionalProperties": false,
        "properties": {},
        "title": "McpGetDefaultJurisdictionInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetDefaultJurisdictionInputSchema"
      },
      "McpGetDefaultJurisdictionResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "available": {
                    "items": {
                      "enum": ["unrestricted", "eu", "us", "fedramp"],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  }
                },
                "required": ["available", "jurisdiction"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetDefaultJurisdictionResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetDefaultJurisdictionResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpGetEntitlementsInput": {
        "additionalProperties": false,
        "properties": {},
        "title": "McpGetEntitlementsInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetEntitlementsInputSchema"
      },
      "McpGetEntitlementsResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "abuse": {
                    "additionalProperties": false,
                    "properties": {
                      "reactivationCount": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "state": {
                        "enum": ["active", "warned", "suspended"],
                        "type": "string"
                      },
                      "suspendedAt": {
                        "anyOf": [
                          {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          { "type": "null" }
                        ]
                      },
                      "warnedAt": {
                        "anyOf": [
                          {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          { "type": "null" }
                        ]
                      }
                    },
                    "required": [
                      "state",
                      "warnedAt",
                      "suspendedAt",
                      "reactivationCount"
                    ],
                    "type": "object"
                  },
                  "access": {
                    "additionalProperties": false,
                    "properties": {
                      "exportAllowed": { "type": "boolean" },
                      "ingestAllowed": { "type": "boolean" },
                      "mutationsAllowed": { "type": "boolean" },
                      "readAllowed": { "type": "boolean" }
                    },
                    "required": [
                      "ingestAllowed",
                      "mutationsAllowed",
                      "readAllowed",
                      "exportAllowed"
                    ],
                    "type": "object"
                  },
                  "entitlements": {
                    "additionalProperties": false,
                    "properties": {
                      "activeMonitors": {
                        "maximum": 100000,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "apiRequestsPerMinute": {
                        "maximum": 1000000,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "callbackEndpoints": {
                        "maximum": 50,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "detectorFeatures": {
                        "items": {
                          "enum": [
                            "heartbeat",
                            "explicit_rule",
                            "adaptive_baseline",
                            "persistent_shift",
                            "seasonal_baseline"
                          ],
                          "type": "string"
                        },
                        "maxItems": 5,
                        "minItems": 1,
                        "type": "array"
                      },
                      "fiveMinuteRetentionSeconds": {
                        "default": 0,
                        "maximum": 31536000,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "hourlyRetentionSeconds": {
                        "default": 0,
                        "maximum": 31536000,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "maximumMeasurementsPerObservation": {
                        "maximum": 16,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "maximumStoredObservations": {
                        "maximum": 1000000,
                        "minimum": 64,
                        "type": "integer"
                      },
                      "mcpRequestsPerMinute": {
                        "maximum": 1000000,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "minimumIntervalSeconds": {
                        "maximum": 31536000,
                        "minimum": 60,
                        "type": "integer"
                      },
                      "observationRetentionSeconds": {
                        "maximum": 31536000,
                        "minimum": 3600,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "activeMonitors",
                      "minimumIntervalSeconds",
                      "maximumMeasurementsPerObservation",
                      "maximumStoredObservations",
                      "observationRetentionSeconds",
                      "callbackEndpoints",
                      "detectorFeatures",
                      "apiRequestsPerMinute",
                      "mcpRequestsPerMinute"
                    ],
                    "type": "object"
                  },
                  "freshness": {
                    "additionalProperties": false,
                    "properties": {
                      "assignmentVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "checkedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "leaseVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "lifecycleGeneration": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "mode": {
                        "enum": ["fresh", "offline_grace"],
                        "type": "string"
                      },
                      "offlineUntil": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "refreshAfter": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "leaseVersion",
                      "assignmentVersion",
                      "lifecycleGeneration",
                      "checkedAt",
                      "refreshAfter",
                      "offlineUntil",
                      "mode"
                    ],
                    "type": "object"
                  },
                  "graceEndsAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "organizationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "plan": {
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "enum": ["free", "builder", "smart", "scale"],
                        "type": "string"
                      },
                      "name": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                        "type": "string"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": ["id", "name", "version"],
                    "type": "object"
                  },
                  "serviceState": {
                    "enum": [
                      "active",
                      "payment_grace",
                      "abuse_suspended",
                      "canceled",
                      "deleting"
                    ],
                    "type": "string"
                  },
                  "usage": {
                    "additionalProperties": false,
                    "properties": {
                      "activeMonitors": {
                        "additionalProperties": false,
                        "properties": {
                          "current": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "limit": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "overLimit": { "type": "boolean" },
                          "remaining": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "current",
                          "limit",
                          "remaining",
                          "overLimit"
                        ],
                        "type": "object"
                      },
                      "callbackEndpoints": {
                        "additionalProperties": false,
                        "properties": {
                          "current": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "limit": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "overLimit": { "type": "boolean" },
                          "remaining": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "current",
                          "limit",
                          "remaining",
                          "overLimit"
                        ],
                        "type": "object"
                      }
                    },
                    "required": ["activeMonitors", "callbackEndpoints"],
                    "type": "object"
                  }
                },
                "required": [
                  "organizationId",
                  "plan",
                  "entitlements",
                  "serviceState",
                  "access",
                  "freshness",
                  "usage"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetEntitlementsResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetEntitlementsResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Successful entitlement usage summaries preserve their remaining and over-limit invariants."
        ]
      },
      "McpGetIncidentInput": {
        "additionalProperties": false,
        "properties": {
          "incidentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["incidentId", "monitorId"],
        "title": "McpGetIncidentInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetIncidentInputSchema"
      },
      "McpGetIncidentResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "acknowledgement": {
                    "additionalProperties": false,
                    "properties": {
                      "acknowledgedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "actor": {
                        "properties": {
                          "display": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "id": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "kind": {
                            "anyOf": [
                              {
                                "enum": [
                                  "human",
                                  "api_credential",
                                  "mcp_client",
                                  "operator",
                                  "system"
                                ],
                                "type": "string"
                              },
                              {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["kind"],
                        "type": "object"
                      }
                    },
                    "required": ["acknowledgedAt", "actor"],
                    "type": "object"
                  },
                  "archivedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "closedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "confirmedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "detectedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "notification": {
                    "enum": [
                      "requested",
                      "suppressed_by_cooldown",
                      "suppressed_by_recovery_hysteresis"
                    ],
                    "type": "string"
                  },
                  "openedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "recovery": {
                    "additionalProperties": false,
                    "properties": {
                      "confirmedBeats": {
                        "maximum": 10,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "requiredBeats": {
                        "maximum": 10,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": ["confirmedBeats", "requiredBeats"],
                    "type": "object"
                  },
                  "state": {
                    "enum": ["open", "recovering", "recovered", "resolved"],
                    "type": "string"
                  },
                  "stateMachineVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "updatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "violationFamily": {
                    "enum": ["missing_beat", "numeric_anomaly"],
                    "type": "string"
                  }
                },
                "required": [
                  "detectedAt",
                  "id",
                  "jurisdiction",
                  "monitorKey",
                  "notification",
                  "openedAt",
                  "recovery",
                  "state",
                  "stateMachineVersion",
                  "updatedAt",
                  "violationFamily"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetIncidentResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetIncidentResultSchema"
      },
      "McpGetIncidentTimelineInput": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "incidentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["incidentId", "monitorId"],
        "title": "McpGetIncidentTimelineInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetIncidentTimelineInputSchema"
      },
      "McpGetIncidentTimelineResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "items": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "data": {
                          "additionalProperties": false,
                          "properties": {
                            "audit": {
                              "properties": {
                                "action": {
                                  "maxLength": 128,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                                  "type": "string"
                                },
                                "actor": {
                                  "properties": {
                                    "display": {
                                      "maxLength": 160,
                                      "minLength": 1,
                                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "maxLength": 128,
                                      "minLength": 1,
                                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                      "type": "string"
                                    },
                                    "kind": {
                                      "anyOf": [
                                        {
                                          "enum": [
                                            "human",
                                            "api_credential",
                                            "mcp_client",
                                            "operator",
                                            "system"
                                          ],
                                          "type": "string"
                                        },
                                        {
                                          "maxLength": 64,
                                          "minLength": 1,
                                          "pattern": "^[a-z][a-z0-9_]*$",
                                          "type": "string"
                                        }
                                      ]
                                    }
                                  },
                                  "required": ["kind"],
                                  "type": "object"
                                },
                                "correlationId": {
                                  "maxLength": 128,
                                  "minLength": 1,
                                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                                  "type": "string"
                                },
                                "id": {
                                  "maxLength": 128,
                                  "minLength": 1,
                                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                  "type": "string"
                                },
                                "occurredAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "outcome": {
                                  "enum": ["succeeded", "denied", "failed"],
                                  "type": "string"
                                },
                                "target": {
                                  "properties": {
                                    "id": {
                                      "maxLength": 128,
                                      "minLength": 1,
                                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                      "type": "string"
                                    },
                                    "type": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[a-z][a-z0-9_]*$",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["type", "id"],
                                  "type": "object"
                                }
                              },
                              "required": [
                                "id",
                                "occurredAt",
                                "correlationId",
                                "actor",
                                "action",
                                "target",
                                "outcome"
                              ],
                              "type": "object"
                            },
                            "callbackIntentId": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                              "type": "string"
                            },
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "deadlineAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "detectionDelayMs": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "expectedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "note": {
                              "maxLength": 1024,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "notification": {
                              "enum": [
                                "requested",
                                "suppressed_by_cooldown",
                                "suppressed_by_recovery_hysteresis"
                              ],
                              "type": "string"
                            },
                            "observationId": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                              "type": "string"
                            },
                            "reason": {
                              "enum": [
                                "deadline_missed",
                                "recovery_lapsed",
                                "beat_accepted",
                                "operator_resolved",
                                "heartbeat_disabled",
                                "anomaly_confirmed",
                                "anomaly_sustained",
                                "anomaly_cleared",
                                "new_normal_accepted"
                              ],
                              "type": "string"
                            },
                            "recovery": {
                              "additionalProperties": false,
                              "properties": {
                                "confirmedBeats": {
                                  "maximum": 10,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "requiredBeats": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["confirmedBeats", "requiredBeats"],
                              "type": "object"
                            },
                            "sourceRequestId": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" },
                            "violationFamily": {
                              "enum": ["missing_beat", "numeric_anomaly"],
                              "type": "string"
                            }
                          },
                          "required": ["version"],
                          "type": "object"
                        },
                        "id": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "incidentId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "occurredAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "sequence": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        },
                        "stateAfter": {
                          "enum": [
                            "open",
                            "recovering",
                            "recovered",
                            "resolved"
                          ],
                          "type": "string"
                        },
                        "type": {
                          "enum": [
                            "detected",
                            "confirmed",
                            "notification_requested",
                            "acknowledged",
                            "annotated",
                            "recovery_started",
                            "recovered",
                            "resolved",
                            "rebaselined",
                            "archived"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "data",
                        "id",
                        "incidentId",
                        "occurredAt",
                        "sequence",
                        "stateAfter",
                        "type"
                      ],
                      "type": "object"
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "nextCursor": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
                    "type": "string"
                  }
                },
                "required": ["items"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetIncidentTimelineResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetIncidentTimelineResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Retry-after seconds require a retryable error, and nested incident-event refinements apply."
        ]
      },
      "McpGetMonitorActivationInput": {
        "additionalProperties": false,
        "properties": {
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["monitorId"],
        "title": "McpGetMonitorActivationInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetMonitorActivationInputSchema"
      },
      "McpGetMonitorActivationResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "configurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "initializedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "jurisdiction": {
                        "enum": ["unrestricted", "eu", "us", "fedramp"],
                        "type": "string"
                      },
                      "monitorKey": {
                        "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "serverTime": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "state": { "const": "waiting", "type": "string" }
                    },
                    "required": [
                      "configurationVersion",
                      "initializedAt",
                      "jurisdiction",
                      "monitorKey",
                      "serverTime",
                      "state"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "configurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "firstAcceptedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "heartbeatLearning": {
                        "additionalProperties": false,
                        "properties": {
                          "measuredIntervalSeconds": {
                            "exclusiveMinimum": 0,
                            "type": "number"
                          },
                          "requiredSamples": {
                            "exclusiveMinimum": 0,
                            "maximum": 64,
                            "type": "integer"
                          },
                          "samples": {
                            "maximum": 64,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "status": {
                            "anyOf": [
                              {
                                "enum": [
                                  "collecting",
                                  "inconsistent",
                                  "unsupported_cadence"
                                ],
                                "type": "string"
                              },
                              {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["requiredSamples", "samples", "status"],
                        "type": "object"
                      },
                      "initializedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "jurisdiction": {
                        "enum": ["unrestricted", "eu", "us", "fedramp"],
                        "type": "string"
                      },
                      "monitorKey": {
                        "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "nextDeadline": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "serverTime": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "state": { "const": "accepted", "type": "string" }
                    },
                    "required": [
                      "configurationVersion",
                      "initializedAt",
                      "jurisdiction",
                      "monitorKey",
                      "serverTime",
                      "firstAcceptedAt",
                      "state"
                    ],
                    "type": "object"
                  }
                ]
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetMonitorActivationResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetMonitorActivationResultSchema"
      },
      "McpGetMonitorCallbackInput": {
        "additionalProperties": false,
        "properties": {
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["monitorId"],
        "title": "McpGetMonitorCallbackInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetMonitorCallbackInputSchema"
      },
      "McpGetMonitorCallbackResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "binding": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "disabled", "type": "string" }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": {
                            "const": "organization_default",
                            "type": "string"
                          }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "alias": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "kind": { "const": "named", "type": "string" }
                        },
                        "required": ["kind", "alias"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "inline", "type": "string" },
                          "url": {
                            "format": "uri",
                            "maxLength": 512,
                            "type": "string"
                          }
                        },
                        "required": ["kind", "url"],
                        "type": "object"
                      }
                    ]
                  },
                  "configurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "resolution": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "disabled", "type": "string" }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "endpoint": {
                            "properties": {
                              "alias": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                "type": "string"
                              },
                              "createdAt": {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              "disabledAt": {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              "generation": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              },
                              "id": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                "type": "string"
                              },
                              "isOrganizationDefault": { "type": "boolean" },
                              "kind": {
                                "default": "webhook",
                                "enum": [
                                  "webhook",
                                  "whooshbang_subscriber",
                                  "whooshbang_group"
                                ],
                                "type": "string"
                              },
                              "lifecycle": {
                                "enum": ["active", "disabled"],
                                "type": "string"
                              },
                              "projectId": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                "type": "string"
                              },
                              "secret": {
                                "additionalProperties": false,
                                "properties": {
                                  "issuedAt": {
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  "overlapEndsAt": {
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  "previousVersion": {
                                    "exclusiveMinimum": 0,
                                    "maximum": 65535,
                                    "type": "integer"
                                  },
                                  "version": {
                                    "exclusiveMinimum": 0,
                                    "maximum": 65535,
                                    "type": "integer"
                                  }
                                },
                                "required": ["version", "issuedAt"],
                                "type": "object"
                              },
                              "updatedAt": {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              "url": {
                                "format": "uri",
                                "maxLength": 512,
                                "type": "string"
                              },
                              "whooshbang": {
                                "additionalProperties": false,
                                "properties": {
                                  "actorId": {
                                    "maxLength": 128,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "contractVersion": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "notifierId": {
                                    "maxLength": 128,
                                    "minLength": 1,
                                    "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "actorId",
                                  "contractVersion",
                                  "notifierId"
                                ],
                                "type": "object"
                              },
                              "whooshbangGroup": {
                                "additionalProperties": false,
                                "properties": {
                                  "contractVersion": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "notifierId": {
                                    "maxLength": 128,
                                    "minLength": 1,
                                    "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                                    "type": "string"
                                  }
                                },
                                "required": ["contractVersion", "notifierId"],
                                "type": "object"
                              }
                            },
                            "required": [
                              "id",
                              "projectId",
                              "alias",
                              "lifecycle",
                              "isOrganizationDefault",
                              "generation",
                              "createdAt",
                              "updatedAt"
                            ],
                            "type": "object"
                          },
                          "kind": { "const": "endpoint", "type": "string" }
                        },
                        "required": ["kind", "endpoint"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "inline", "type": "string" },
                          "url": {
                            "format": "uri",
                            "maxLength": 512,
                            "type": "string"
                          }
                        },
                        "required": ["kind", "url"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "unresolved", "type": "string" },
                          "reason": {
                            "enum": [
                              "no_organization_default",
                              "alias_not_found",
                              "endpoint_disabled",
                              "endpoint_removed"
                            ],
                            "type": "string"
                          }
                        },
                        "required": ["kind", "reason"],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "monitorKey",
                  "binding",
                  "resolution",
                  "configurationVersion"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetMonitorCallbackResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetMonitorCallbackResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Inline bindings must name a public HTTPS destination without credentials or fragments.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpGetMonitorInput": {
        "additionalProperties": false,
        "properties": {
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["monitorId"],
        "title": "McpGetMonitorInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetMonitorInputSchema"
      },
      "McpGetMonitorResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "configuration": {
                    "additionalProperties": false,
                    "properties": {
                      "cadenceProvenance": {
                        "additionalProperties": false,
                        "properties": {
                          "algorithmVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "measuredIntervalMilliseconds": {
                            "exclusiveMinimum": 0,
                            "type": "number"
                          },
                          "observationIds": {
                            "items": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                              "type": "string"
                            },
                            "maxItems": 5,
                            "minItems": 1,
                            "type": "array"
                          },
                          "qualifiedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "algorithmVersion",
                          "measuredIntervalMilliseconds",
                          "observationIds",
                          "qualifiedAt"
                        ],
                        "type": "object"
                      },
                      "value": {
                        "additionalProperties": false,
                        "properties": {
                          "callback": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "disabled",
                                    "type": "string"
                                  }
                                },
                                "required": ["kind"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "organization_default",
                                    "type": "string"
                                  }
                                },
                                "required": ["kind"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "alias": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                    "type": "string"
                                  },
                                  "kind": { "const": "named", "type": "string" }
                                },
                                "required": ["kind", "alias"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "inline",
                                    "type": "string"
                                  },
                                  "url": {
                                    "format": "uri",
                                    "maxLength": 512,
                                    "type": "string"
                                  }
                                },
                                "required": ["kind", "url"],
                                "type": "object"
                              }
                            ]
                          },
                          "heartbeatExpectation": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "graceSeconds": {
                                    "default": 60,
                                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "intervalSeconds": {
                                    "maximum": 31536000,
                                    "minimum": 60,
                                    "type": "integer"
                                  },
                                  "state": {
                                    "const": "enabled",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": [
                                  "intervalSeconds",
                                  "state",
                                  "version"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "state": {
                                    "const": "disabled",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["state", "version"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "graceSeconds": {
                                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "state": {
                                    "const": "automatic",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["state", "version"],
                                "type": "object"
                              }
                            ]
                          },
                          "incidentPolicy": {
                            "additionalProperties": false,
                            "default": {
                              "anomalySensitivity": 0.5,
                              "notificationCooldownSeconds": 0,
                              "recoveryConfirmationBeats": 1,
                              "regimeChangeMode": "manual"
                            },
                            "properties": {
                              "anomalySensitivity": {
                                "default": 0.5,
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "notificationCooldownSeconds": {
                                "default": 0,
                                "maximum": 604800,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "recoveryConfirmationBeats": {
                                "default": 1,
                                "maximum": 10,
                                "minimum": 1,
                                "type": "integer"
                              },
                              "regimeChangeMode": {
                                "default": "manual",
                                "enum": ["manual", "automatic"],
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "measurements": {
                            "additionalProperties": {
                              "additionalProperties": false,
                              "properties": {
                                "disabledRules": {
                                  "items": {
                                    "enum": [
                                      "minimum",
                                      "maximum",
                                      "zero",
                                      "nonzero",
                                      "absolute_delta",
                                      "percentage_delta",
                                      "ratio_minimum",
                                      "ratio_maximum"
                                    ],
                                    "type": "string"
                                  },
                                  "maxItems": 8,
                                  "type": "array"
                                },
                                "maximum": { "type": "number" },
                                "maximumAbsoluteDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "maximumPercentageDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "metricType": {
                                  "default": "gauge",
                                  "enum": [
                                    "gauge",
                                    "count",
                                    "rate",
                                    "duration",
                                    "counter",
                                    "size"
                                  ],
                                  "type": "string"
                                },
                                "minimum": { "type": "number" },
                                "missingPolicy": {
                                  "default": "skip",
                                  "enum": ["skip", "zero", "reject"],
                                  "type": "string"
                                },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                },
                                "ratio": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "denominator": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[a-z][a-z0-9_]*$",
                                      "type": "string"
                                    },
                                    "maximum": { "type": "number" },
                                    "minimum": { "type": "number" }
                                  },
                                  "required": ["denominator"],
                                  "type": "object"
                                },
                                "ruleAction": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "mode": {
                                      "enum": ["inactive", "active"],
                                      "type": "string"
                                    },
                                    "version": { "const": 1, "type": "number" }
                                  },
                                  "required": ["mode", "version"],
                                  "type": "object"
                                },
                                "rulePolicy": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "consecutiveObservations": {
                                          "default": 1,
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        },
                                        "severity": {
                                          "default": "critical",
                                          "enum": [
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "sustainedConsequence": {
                                          "default": "critical",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "sustainedCriterion": {
                                          "default": {
                                            "kind": "observations",
                                            "observations": 1
                                          },
                                          "oneOf": [
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "observations",
                                                  "type": "string"
                                                },
                                                "observations": {
                                                  "maximum": 10,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": [
                                                "kind",
                                                "observations"
                                              ],
                                              "type": "object"
                                            },
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "elapsed_time",
                                                  "type": "string"
                                                },
                                                "seconds": {
                                                  "maximum": 604800,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": ["kind", "seconds"],
                                              "type": "object"
                                            }
                                          ]
                                        },
                                        "transientConsequence": {
                                          "default": "none",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "version": {
                                          "const": 1,
                                          "type": "number"
                                        }
                                      },
                                      "required": ["version"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "sensitivity": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transform": {
                                  "default": "none",
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "zeroExpectation": {
                                  "enum": ["zero", "nonzero"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "propertyNames": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "type": "object"
                          },
                          "name": {
                            "maxLength": 120,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "timeZone": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          }
                        },
                        "required": ["heartbeatExpectation"],
                        "type": "object"
                      },
                      "version": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": ["value", "version"],
                    "type": "object"
                  },
                  "enforcement": {
                    "additionalProperties": false,
                    "properties": {
                      "entitlementSuspended": { "type": "boolean" },
                      "intervalSeconds": {
                        "maximum": 31536000,
                        "minimum": 60,
                        "type": "integer"
                      }
                    },
                    "required": ["entitlementSuspended"],
                    "type": "object"
                  },
                  "expectedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "heartbeatLearning": {
                    "additionalProperties": false,
                    "properties": {
                      "measuredIntervalSeconds": {
                        "exclusiveMinimum": 0,
                        "type": "number"
                      },
                      "requiredSamples": {
                        "exclusiveMinimum": 0,
                        "maximum": 64,
                        "type": "integer"
                      },
                      "samples": {
                        "maximum": 64,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "status": {
                        "anyOf": [
                          {
                            "enum": [
                              "collecting",
                              "inconsistent",
                              "unsupported_cadence"
                            ],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["requiredSamples", "samples", "status"],
                    "type": "object"
                  },
                  "initializedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "latestObservation": {
                    "additionalProperties": false,
                    "properties": {
                      "acceptedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "baselineEvaluations": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "engineVersion": { "const": 2, "type": "number" },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "normalizationStatus": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "notActionableReason": {
                              "enum": ["baseline_below_minimum_level"],
                              "type": "string"
                            },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "numeric_overflow",
                                "heartbeat_expectation_disabled"
                              ],
                              "type": "string"
                            },
                            "originalExpectedValue": { "type": "number" },
                            "originalLowerBound": { "type": "number" },
                            "originalObservedValue": { "type": "number" },
                            "originalScaleBasis": {
                              "enum": ["measurement", "counter_delta"],
                              "type": "string"
                            },
                            "originalUpperBound": { "type": "number" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode"],
                              "type": "object"
                            },
                            "readiness": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "baselineSamples": {
                                      "maximum": 15,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "requiredBaselineSamples": {
                                      "const": 16,
                                      "type": "number"
                                    },
                                    "requiredResidualSamples": {
                                      "const": 32,
                                      "type": "number"
                                    },
                                    "residualSamples": {
                                      "const": 0,
                                      "type": "number"
                                    },
                                    "state": {
                                      "const": "warming_baseline",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "requiredBaselineSamples",
                                    "requiredResidualSamples",
                                    "baselineSamples",
                                    "residualSamples",
                                    "state"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "baselineSamples": {
                                      "maximum": 128,
                                      "minimum": 16,
                                      "type": "integer"
                                    },
                                    "requiredBaselineSamples": {
                                      "const": 16,
                                      "type": "number"
                                    },
                                    "requiredResidualSamples": {
                                      "const": 32,
                                      "type": "number"
                                    },
                                    "residualSamples": {
                                      "maximum": 31,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "state": {
                                      "const": "warming_residuals",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "requiredBaselineSamples",
                                    "requiredResidualSamples",
                                    "baselineSamples",
                                    "residualSamples",
                                    "state"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "baselineSamples": {
                                      "maximum": 128,
                                      "minimum": 16,
                                      "type": "integer"
                                    },
                                    "requiredBaselineSamples": {
                                      "const": 16,
                                      "type": "number"
                                    },
                                    "requiredResidualSamples": {
                                      "const": 32,
                                      "type": "number"
                                    },
                                    "residualSamples": {
                                      "maximum": 128,
                                      "minimum": 32,
                                      "type": "integer"
                                    },
                                    "state": {
                                      "const": "ready",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "requiredBaselineSamples",
                                    "requiredResidualSamples",
                                    "baselineSamples",
                                    "residualSamples",
                                    "state"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "residualModel": {
                              "enum": ["robust_z", "count"],
                              "type": "string"
                            },
                            "residualModelReadiness": {
                              "additionalProperties": false,
                              "properties": {
                                "candidate": {
                                  "enum": ["robust_z", "count"],
                                  "type": "string"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "meanLogLikelihoodGain": { "type": "number" },
                                "minimumMeanLogLikelihoodGain": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 32,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "ineligible",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "candidate",
                                "holdoutSamples",
                                "minimumMeanLogLikelihoodGain",
                                "requiredHoldoutSamples",
                                "state"
                              ],
                              "type": "object"
                            },
                            "residualModelSelectionReason": {
                              "enum": [
                                "count_improved",
                                "distribution_ineligible",
                                "holdout_warming",
                                "insufficient_improvement"
                              ],
                              "type": "string"
                            },
                            "residualScore": { "minimum": 0, "type": "number" },
                            "sensitivity": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.01,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "low",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.99,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.03,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "medium",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.97,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.05,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "high",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.95,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "status": {
                              "enum": [
                                "warming",
                                "normal",
                                "suspected_anomaly",
                                "not_evaluated"
                              ],
                              "type": "string"
                            },
                            "threshold": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "transform": {
                              "enum": ["none", "log1p"],
                              "type": "string"
                            },
                            "transformedExpectedValue": { "type": "number" },
                            "transformedLowerBound": { "type": "number" },
                            "transformedMad": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "transformedObservedValue": { "type": "number" },
                            "transformedScale": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "transformedUpperBound": { "type": "number" },
                            "unit": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "updateDisposition": {
                              "enum": ["full", "winsorized", "skipped"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "configurationVersion",
                            "engineVersion",
                            "explanation",
                            "measurementKey",
                            "normalizationStatus",
                            "normalizationVersion",
                            "originalScaleBasis",
                            "policyInput",
                            "readiness",
                            "residualModel",
                            "residualModelReadiness",
                            "residualModelSelectionReason",
                            "sensitivity",
                            "status",
                            "transform",
                            "updateDisposition"
                          ],
                          "type": "object"
                        },
                        "maxItems": 16,
                        "type": "array"
                      },
                      "configurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "incidentPolicyDecision": {
                        "additionalProperties": false,
                        "properties": {
                          "configurationVersion": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "confirmation": {
                            "additionalProperties": false,
                            "properties": {
                              "confirmed": { "type": "boolean" },
                              "observedInWindow": {
                                "maximum": 6,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "required": {
                                "maximum": 6,
                                "minimum": 1,
                                "type": "integer"
                              },
                              "window": {
                                "maximum": 6,
                                "minimum": 1,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "confirmed",
                              "observedInWindow",
                              "required",
                              "window"
                            ],
                            "type": "object"
                          },
                          "contributions": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "breach": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "consequence": {
                                      "enum": [
                                        "none",
                                        "info",
                                        "warning",
                                        "critical"
                                      ],
                                      "type": "string"
                                    },
                                    "justBecameSustained": {
                                      "type": "boolean"
                                    },
                                    "phase": {
                                      "enum": [
                                        "clear",
                                        "transient",
                                        "sustained"
                                      ],
                                      "type": "string"
                                    },
                                    "progress": {
                                      "additionalProperties": false,
                                      "properties": {
                                        "elapsedSeconds": {
                                          "maximum": 604800,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "qualifyingObservations": {
                                          "maximum": 10,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "remaining": {
                                          "maximum": 604800,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "startedAt": {
                                          "format": "date-time",
                                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "elapsedSeconds",
                                        "qualifyingObservations",
                                        "remaining"
                                      ],
                                      "type": "object"
                                    },
                                    "sustainedConsequence": {
                                      "enum": [
                                        "none",
                                        "info",
                                        "warning",
                                        "critical"
                                      ],
                                      "type": "string"
                                    },
                                    "sustainedCriterion": {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "kind": {
                                              "const": "observations",
                                              "type": "string"
                                            },
                                            "observations": {
                                              "maximum": 10,
                                              "minimum": 1,
                                              "type": "integer"
                                            }
                                          },
                                          "required": ["kind", "observations"],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "kind": {
                                              "const": "elapsed_time",
                                              "type": "string"
                                            },
                                            "seconds": {
                                              "maximum": 604800,
                                              "minimum": 1,
                                              "type": "integer"
                                            }
                                          },
                                          "required": ["kind", "seconds"],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    "transientConsequence": {
                                      "enum": [
                                        "none",
                                        "info",
                                        "warning",
                                        "critical"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "consequence",
                                    "justBecameSustained",
                                    "phase",
                                    "progress",
                                    "sustainedConsequence",
                                    "sustainedCriterion",
                                    "transientConsequence"
                                  ],
                                  "type": "object"
                                },
                                "detector": {
                                  "enum": [
                                    "explicit_rule",
                                    "adaptive_baseline",
                                    "seasonal_baseline",
                                    "persistent_shift"
                                  ],
                                  "type": "string"
                                },
                                "durationSamples": {
                                  "maximum": 1000000,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "measurementKey": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "residualScore": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "ruleId": {
                                  "maxLength": 160,
                                  "minLength": 3,
                                  "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                                  "type": "string"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                },
                                "trigger": {
                                  "enum": [
                                    "explicit_rule",
                                    "extreme_deviation",
                                    "moderate_confirmation",
                                    "persistent_shift"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "detector",
                                "measurementKey",
                                "severity"
                              ],
                              "type": "object"
                            },
                            "maxItems": 80,
                            "type": "array"
                          },
                          "engineVersion": { "const": 1, "type": "number" },
                          "evaluation": {
                            "additionalProperties": false,
                            "properties": {
                              "evaluatedMeasurementKeys": {
                                "items": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "maxItems": 32,
                                "type": "array"
                              },
                              "policyActive": { "type": "boolean" },
                              "publishedMeasurementKeys": {
                                "items": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "maxItems": 32,
                                "type": "array"
                              }
                            },
                            "required": [
                              "evaluatedMeasurementKeys",
                              "policyActive",
                              "publishedMeasurementKeys"
                            ],
                            "type": "object"
                          },
                          "explanation": {
                            "maxLength": 512,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "notifiable": { "type": "boolean" },
                          "outcome": {
                            "enum": [
                              "none",
                              "recorded",
                              "confirming",
                              "incident_opened",
                              "incident_sustained",
                              "recovery_pending",
                              "recovery_confirmed"
                            ],
                            "type": "string"
                          },
                          "profile": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "confirmationRequired": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "confirmationWindow": {
                                    "const": 6,
                                    "type": "number"
                                  },
                                  "extremeResidualMultiple": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "name": { "const": "low", "type": "string" },
                                  "recoveryConfirmationObservations": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "regimeChangeObservations": {
                                    "const": 96,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "confirmationRequired",
                                  "confirmationWindow",
                                  "extremeResidualMultiple",
                                  "name",
                                  "recoveryConfirmationObservations",
                                  "regimeChangeObservations"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "confirmationRequired": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "confirmationWindow": {
                                    "const": 5,
                                    "type": "number"
                                  },
                                  "extremeResidualMultiple": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "name": {
                                    "const": "medium",
                                    "type": "string"
                                  },
                                  "recoveryConfirmationObservations": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "regimeChangeObservations": {
                                    "const": 48,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "confirmationRequired",
                                  "confirmationWindow",
                                  "extremeResidualMultiple",
                                  "name",
                                  "recoveryConfirmationObservations",
                                  "regimeChangeObservations"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "confirmationRequired": {
                                    "const": 2,
                                    "type": "number"
                                  },
                                  "confirmationWindow": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "extremeResidualMultiple": {
                                    "const": 2.5,
                                    "type": "number"
                                  },
                                  "name": { "const": "high", "type": "string" },
                                  "recoveryConfirmationObservations": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "regimeChangeObservations": {
                                    "const": 24,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "confirmationRequired",
                                  "confirmationWindow",
                                  "extremeResidualMultiple",
                                  "name",
                                  "recoveryConfirmationObservations",
                                  "regimeChangeObservations"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "recovery": {
                            "additionalProperties": false,
                            "properties": {
                              "confirmedObservations": {
                                "maximum": 10,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "requiredObservations": {
                                "maximum": 10,
                                "minimum": 1,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "confirmedObservations",
                              "requiredObservations"
                            ],
                            "type": "object"
                          },
                          "regimeChange": {
                            "additionalProperties": false,
                            "properties": {
                              "measurementKeys": {
                                "items": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "maxItems": 16,
                                "type": "array"
                              },
                              "mode": {
                                "enum": ["manual", "automatic"],
                                "type": "string"
                              },
                              "requiredObservations": {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              "state": {
                                "enum": [
                                  "none",
                                  "watching",
                                  "available",
                                  "applied"
                                ],
                                "type": "string"
                              },
                              "sustainedObservations": {
                                "maximum": 1000000,
                                "minimum": 0,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "measurementKeys",
                              "mode",
                              "requiredObservations",
                              "state",
                              "sustainedObservations"
                            ],
                            "type": "object"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          },
                          "suppression": {
                            "enum": [
                              "detector_unconfirmed",
                              "detector_warming",
                              "detector_shadow_mode",
                              "open_incident"
                            ],
                            "type": "string"
                          },
                          "triggers": {
                            "items": {
                              "enum": [
                                "explicit_rule",
                                "extreme_deviation",
                                "moderate_confirmation",
                                "persistent_shift"
                              ],
                              "type": "string"
                            },
                            "maxItems": 4,
                            "type": "array"
                          }
                        },
                        "required": [
                          "configurationVersion",
                          "confirmation",
                          "contributions",
                          "engineVersion",
                          "explanation",
                          "notifiable",
                          "outcome",
                          "profile",
                          "recovery",
                          "regimeChange",
                          "severity",
                          "triggers"
                        ],
                        "type": "object"
                      },
                      "normalizedMeasurements": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "definition": {
                              "additionalProperties": false,
                              "properties": {
                                "disabledRules": {
                                  "items": {
                                    "enum": [
                                      "minimum",
                                      "maximum",
                                      "zero",
                                      "nonzero",
                                      "absolute_delta",
                                      "percentage_delta",
                                      "ratio_minimum",
                                      "ratio_maximum"
                                    ],
                                    "type": "string"
                                  },
                                  "maxItems": 8,
                                  "type": "array"
                                },
                                "maximum": { "type": "number" },
                                "maximumAbsoluteDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "maximumPercentageDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "metricType": {
                                  "default": "gauge",
                                  "enum": [
                                    "gauge",
                                    "count",
                                    "rate",
                                    "duration",
                                    "counter",
                                    "size"
                                  ],
                                  "type": "string"
                                },
                                "minimum": { "type": "number" },
                                "missingPolicy": {
                                  "default": "skip",
                                  "enum": ["skip", "zero", "reject"],
                                  "type": "string"
                                },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                },
                                "ratio": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "denominator": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[a-z][a-z0-9_]*$",
                                      "type": "string"
                                    },
                                    "maximum": { "type": "number" },
                                    "minimum": { "type": "number" }
                                  },
                                  "required": ["denominator"],
                                  "type": "object"
                                },
                                "ruleAction": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "mode": {
                                      "enum": ["inactive", "active"],
                                      "type": "string"
                                    },
                                    "version": { "const": 1, "type": "number" }
                                  },
                                  "required": ["mode", "version"],
                                  "type": "object"
                                },
                                "rulePolicy": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "consecutiveObservations": {
                                          "default": 1,
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        },
                                        "severity": {
                                          "default": "critical",
                                          "enum": [
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "sustainedConsequence": {
                                          "default": "critical",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "sustainedCriterion": {
                                          "default": {
                                            "kind": "observations",
                                            "observations": 1
                                          },
                                          "oneOf": [
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "observations",
                                                  "type": "string"
                                                },
                                                "observations": {
                                                  "maximum": 10,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": [
                                                "kind",
                                                "observations"
                                              ],
                                              "type": "object"
                                            },
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "elapsed_time",
                                                  "type": "string"
                                                },
                                                "seconds": {
                                                  "maximum": 604800,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": ["kind", "seconds"],
                                              "type": "object"
                                            }
                                          ]
                                        },
                                        "transientConsequence": {
                                          "default": "none",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "version": {
                                          "const": 1,
                                          "type": "number"
                                        }
                                      },
                                      "required": ["version"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "sensitivity": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transform": {
                                  "default": "none",
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "zeroExpectation": {
                                  "enum": ["zero", "nonzero"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "definitionVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "key": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "normalizedValue": { "type": "number" },
                            "originalValue": { "type": "number" },
                            "previousOriginalValue": { "type": "number" },
                            "status": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "definition",
                            "definitionVersion",
                            "key",
                            "normalizationVersion",
                            "status"
                          ],
                          "type": "object"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "observedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "omittedDetail": {
                        "items": {
                          "anyOf": [
                            {
                              "enum": [
                                "normalized_measurements",
                                "adaptive_baseline",
                                "explicit_rule",
                                "incident_policy",
                                "persistent_shift",
                                "seasonal_baseline"
                              ],
                              "type": "string"
                            },
                            {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            }
                          ]
                        },
                        "maxItems": 16,
                        "minItems": 1,
                        "type": "array"
                      },
                      "payload": {
                        "oneOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": { "const": "empty", "type": "string" }
                            },
                            "required": ["kind"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": { "const": "number", "type": "string" },
                              "value": { "type": "number" }
                            },
                            "required": ["kind", "value"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": {
                                "const": "measurements",
                                "type": "string"
                              },
                              "values": {
                                "additionalProperties": {
                                  "anyOf": [
                                    { "type": "number" },
                                    {
                                      "anyOf": [
                                        { "type": "boolean" },
                                        { "type": "null" },
                                        {
                                          "maxLength": 256,
                                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                          "type": "string"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                "propertyNames": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "type": "object"
                              }
                            },
                            "required": ["kind", "values"],
                            "type": "object"
                          }
                        ]
                      },
                      "provenance": {
                        "anyOf": [
                          {
                            "enum": ["live", "historical_import"],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      },
                      "requestId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                        "type": "string"
                      },
                      "ruleEvaluations": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "breach": {
                              "additionalProperties": false,
                              "properties": {
                                "consequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "justBecameSustained": { "type": "boolean" },
                                "phase": {
                                  "enum": ["clear", "transient", "sustained"],
                                  "type": "string"
                                },
                                "progress": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "elapsedSeconds": {
                                      "maximum": 604800,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "qualifyingObservations": {
                                      "maximum": 10,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "remaining": {
                                      "maximum": 604800,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "startedAt": {
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "elapsedSeconds",
                                    "qualifyingObservations",
                                    "remaining"
                                  ],
                                  "type": "object"
                                },
                                "sustainedConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "sustainedCriterion": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "observations",
                                          "type": "string"
                                        },
                                        "observations": {
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "observations"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "elapsed_time",
                                          "type": "string"
                                        },
                                        "seconds": {
                                          "maximum": 604800,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "seconds"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "transientConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "consequence",
                                "justBecameSustained",
                                "phase",
                                "progress",
                                "sustainedConsequence",
                                "sustainedCriterion",
                                "transientConsequence"
                              ],
                              "type": "object"
                            },
                            "comparison": {
                              "enum": [
                                "at_least",
                                "at_most",
                                "equal",
                                "not_equal"
                              ],
                              "type": "string"
                            },
                            "computedValue": { "type": "number" },
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "confirmation": {
                              "additionalProperties": false,
                              "properties": {
                                "confirmed": { "type": "boolean" },
                                "consecutiveViolations": {
                                  "maximum": 10,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "required": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": [
                                "confirmed",
                                "consecutiveViolations",
                                "required"
                              ],
                              "type": "object"
                            },
                            "denominatorMeasurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "engineVersion": {
                              "anyOf": [
                                { "const": 1, "type": "number" },
                                { "const": 2, "type": "number" }
                              ]
                            },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "kind": {
                              "enum": [
                                "minimum",
                                "maximum",
                                "zero",
                                "nonzero",
                                "absolute_delta",
                                "percentage_delta",
                                "ratio_minimum",
                                "ratio_maximum"
                              ],
                              "type": "string"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "normalizationStatus": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "previous_value_missing",
                                "previous_value_zero",
                                "ratio_denominator_missing",
                                "ratio_denominator_zero",
                                "numeric_overflow"
                              ],
                              "type": "string"
                            },
                            "observedValue": { "type": "number" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode", "severity"],
                              "type": "object"
                            },
                            "referenceValue": { "type": "number" },
                            "ruleId": {
                              "maxLength": 160,
                              "minLength": 3,
                              "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                              "type": "string"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            },
                            "status": {
                              "enum": ["passed", "violated", "not_evaluated"],
                              "type": "string"
                            },
                            "threshold": { "type": "number" },
                            "transform": {
                              "enum": ["none", "log1p"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "comparison",
                            "configurationVersion",
                            "confirmation",
                            "engineVersion",
                            "explanation",
                            "kind",
                            "measurementKey",
                            "normalizationStatus",
                            "policyInput",
                            "ruleId",
                            "severity",
                            "status",
                            "threshold",
                            "transform"
                          ],
                          "type": "object"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "seasonalEvaluations": {
                        "items": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configurationVersion": {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "dailyBucketSamples": {
                                  "maximum": 24,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "dailyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "engineVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "explanation": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "localBucket": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "dailyHour": {
                                      "maximum": 23,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "offsetMinutes": {
                                      "maximum": 1440,
                                      "minimum": -1440,
                                      "type": "integer"
                                    },
                                    "weeklyHour": {
                                      "maximum": 167,
                                      "minimum": 0,
                                      "type": "integer"
                                    }
                                  },
                                  "required": [
                                    "dailyHour",
                                    "offsetMinutes",
                                    "weeklyHour"
                                  ],
                                  "type": "object"
                                },
                                "measurementKey": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "neighborToleranceHours": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "normalizationStatus": {
                                  "enum": [
                                    "value",
                                    "counter_baseline",
                                    "counter_reset",
                                    "missing_skipped",
                                    "missing_zero"
                                  ],
                                  "type": "string"
                                },
                                "normalizationVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "notEvaluatedReason": {
                                  "enum": [
                                    "measurement_missing",
                                    "counter_baseline",
                                    "counter_reset",
                                    "numeric_overflow",
                                    "heartbeat_expectation_disabled"
                                  ],
                                  "type": "string"
                                },
                                "originalExpectedValue": { "type": "number" },
                                "originalLowerBound": { "type": "number" },
                                "originalObservedValue": { "type": "number" },
                                "originalScaleBasis": {
                                  "enum": ["measurement", "counter_delta"],
                                  "type": "string"
                                },
                                "originalUpperBound": { "type": "number" },
                                "policyInput": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "actionable": { "type": "boolean" },
                                    "mode": {
                                      "enum": ["heartbeat", "shadow", "active"],
                                      "type": "string"
                                    }
                                  },
                                  "required": ["actionable", "mode"],
                                  "type": "object"
                                },
                                "residualScore": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "selectedModel": {
                                  "const": "global",
                                  "type": "string"
                                },
                                "selectionReason": {
                                  "enum": [
                                    "global_baseline_warming",
                                    "insufficient_improvement",
                                    "not_evaluated",
                                    "seasonality_warming",
                                    "sparse_bucket"
                                  ],
                                  "type": "string"
                                },
                                "sensitivity": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.01,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "low",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.99,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.03,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "medium",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.97,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.05,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "high",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.95,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "status": {
                                  "enum": [
                                    "warming",
                                    "normal",
                                    "suspected_anomaly",
                                    "not_evaluated"
                                  ],
                                  "type": "string"
                                },
                                "threshold": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "timeZone": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "transform": {
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "transformedExpectedValue": {
                                  "type": "number"
                                },
                                "transformedLowerBound": { "type": "number" },
                                "transformedMad": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transformedObservedValue": {
                                  "type": "number"
                                },
                                "transformedScale": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "transformedUpperBound": { "type": "number" },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "updateDisposition": {
                                  "enum": ["full", "skipped"],
                                  "type": "string"
                                },
                                "weeklyBucketSamples": {
                                  "maximum": 12,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "weeklyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "configurationVersion",
                                "dailyBucketSamples",
                                "dailyReadiness",
                                "engineVersion",
                                "explanation",
                                "localBucket",
                                "measurementKey",
                                "neighborToleranceHours",
                                "normalizationStatus",
                                "normalizationVersion",
                                "originalScaleBasis",
                                "policyInput",
                                "sensitivity",
                                "status",
                                "timeZone",
                                "transform",
                                "updateDisposition",
                                "weeklyBucketSamples",
                                "weeklyReadiness",
                                "selectedModel",
                                "selectionReason"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configurationVersion": {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "dailyBucketSamples": {
                                  "maximum": 24,
                                  "minimum": 3,
                                  "type": "integer"
                                },
                                "dailyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 4,
                                          "type": "integer"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": 0.1,
                                          "type": "number"
                                        },
                                        "state": {
                                          "const": "validated",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "candidateWinsorizedMeanAbsoluteError",
                                        "cyclesObserved",
                                        "globalWinsorizedMeanAbsoluteError",
                                        "holdoutSamples",
                                        "relativeImprovement",
                                        "state"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "engineVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "explanation": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "localBucket": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "dailyHour": {
                                      "maximum": 23,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "offsetMinutes": {
                                      "maximum": 1440,
                                      "minimum": -1440,
                                      "type": "integer"
                                    },
                                    "weeklyHour": {
                                      "maximum": 167,
                                      "minimum": 0,
                                      "type": "integer"
                                    }
                                  },
                                  "required": [
                                    "dailyHour",
                                    "offsetMinutes",
                                    "weeklyHour"
                                  ],
                                  "type": "object"
                                },
                                "measurementKey": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "neighborToleranceHours": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "normalizationStatus": {
                                  "enum": [
                                    "value",
                                    "counter_baseline",
                                    "counter_reset",
                                    "missing_skipped",
                                    "missing_zero"
                                  ],
                                  "type": "string"
                                },
                                "normalizationVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "notEvaluatedReason": {
                                  "enum": [
                                    "measurement_missing",
                                    "counter_baseline",
                                    "counter_reset",
                                    "numeric_overflow",
                                    "heartbeat_expectation_disabled"
                                  ],
                                  "type": "string"
                                },
                                "originalExpectedValue": { "type": "number" },
                                "originalLowerBound": { "type": "number" },
                                "originalObservedValue": { "type": "number" },
                                "originalScaleBasis": {
                                  "enum": ["measurement", "counter_delta"],
                                  "type": "string"
                                },
                                "originalUpperBound": { "type": "number" },
                                "policyInput": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "actionable": { "type": "boolean" },
                                    "mode": {
                                      "enum": ["heartbeat", "shadow", "active"],
                                      "type": "string"
                                    }
                                  },
                                  "required": ["actionable", "mode"],
                                  "type": "object"
                                },
                                "residualScore": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "selectedModel": {
                                  "const": "daily",
                                  "type": "string"
                                },
                                "selectionReason": {
                                  "const": "daily_improved",
                                  "type": "string"
                                },
                                "sensitivity": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.01,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "low",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.99,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.03,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "medium",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.97,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.05,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "high",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.95,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "status": {
                                  "enum": [
                                    "warming",
                                    "normal",
                                    "suspected_anomaly",
                                    "not_evaluated"
                                  ],
                                  "type": "string"
                                },
                                "threshold": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "timeZone": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "transform": {
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "transformedExpectedValue": {
                                  "type": "number"
                                },
                                "transformedLowerBound": { "type": "number" },
                                "transformedMad": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transformedObservedValue": {
                                  "type": "number"
                                },
                                "transformedScale": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "transformedUpperBound": { "type": "number" },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "updateDisposition": {
                                  "enum": ["full", "skipped"],
                                  "type": "string"
                                },
                                "weeklyBucketSamples": {
                                  "maximum": 12,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "weeklyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "configurationVersion",
                                "dailyBucketSamples",
                                "dailyReadiness",
                                "engineVersion",
                                "explanation",
                                "localBucket",
                                "measurementKey",
                                "neighborToleranceHours",
                                "normalizationStatus",
                                "normalizationVersion",
                                "originalScaleBasis",
                                "policyInput",
                                "sensitivity",
                                "status",
                                "timeZone",
                                "transform",
                                "updateDisposition",
                                "weeklyBucketSamples",
                                "weeklyReadiness",
                                "selectedModel",
                                "selectionReason"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configurationVersion": {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "dailyBucketSamples": {
                                  "maximum": 24,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "dailyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "engineVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "explanation": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "localBucket": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "dailyHour": {
                                      "maximum": 23,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "offsetMinutes": {
                                      "maximum": 1440,
                                      "minimum": -1440,
                                      "type": "integer"
                                    },
                                    "weeklyHour": {
                                      "maximum": 167,
                                      "minimum": 0,
                                      "type": "integer"
                                    }
                                  },
                                  "required": [
                                    "dailyHour",
                                    "offsetMinutes",
                                    "weeklyHour"
                                  ],
                                  "type": "object"
                                },
                                "measurementKey": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "neighborToleranceHours": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "normalizationStatus": {
                                  "enum": [
                                    "value",
                                    "counter_baseline",
                                    "counter_reset",
                                    "missing_skipped",
                                    "missing_zero"
                                  ],
                                  "type": "string"
                                },
                                "normalizationVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "notEvaluatedReason": {
                                  "enum": [
                                    "measurement_missing",
                                    "counter_baseline",
                                    "counter_reset",
                                    "numeric_overflow",
                                    "heartbeat_expectation_disabled"
                                  ],
                                  "type": "string"
                                },
                                "originalExpectedValue": { "type": "number" },
                                "originalLowerBound": { "type": "number" },
                                "originalObservedValue": { "type": "number" },
                                "originalScaleBasis": {
                                  "enum": ["measurement", "counter_delta"],
                                  "type": "string"
                                },
                                "originalUpperBound": { "type": "number" },
                                "policyInput": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "actionable": { "type": "boolean" },
                                    "mode": {
                                      "enum": ["heartbeat", "shadow", "active"],
                                      "type": "string"
                                    }
                                  },
                                  "required": ["actionable", "mode"],
                                  "type": "object"
                                },
                                "residualScore": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "selectedModel": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "selectionReason": {
                                  "const": "weekly_improved",
                                  "type": "string"
                                },
                                "sensitivity": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.01,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "low",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.99,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.03,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "medium",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.97,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.05,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "high",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.95,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "status": {
                                  "enum": [
                                    "warming",
                                    "normal",
                                    "suspected_anomaly",
                                    "not_evaluated"
                                  ],
                                  "type": "string"
                                },
                                "threshold": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "timeZone": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "transform": {
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "transformedExpectedValue": {
                                  "type": "number"
                                },
                                "transformedLowerBound": { "type": "number" },
                                "transformedMad": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transformedObservedValue": {
                                  "type": "number"
                                },
                                "transformedScale": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "transformedUpperBound": { "type": "number" },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "updateDisposition": {
                                  "enum": ["full", "skipped"],
                                  "type": "string"
                                },
                                "weeklyBucketSamples": {
                                  "maximum": 12,
                                  "minimum": 3,
                                  "type": "integer"
                                },
                                "weeklyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 4,
                                          "type": "integer"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": 0.1,
                                          "type": "number"
                                        },
                                        "state": {
                                          "const": "validated",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "candidateWinsorizedMeanAbsoluteError",
                                        "cyclesObserved",
                                        "globalWinsorizedMeanAbsoluteError",
                                        "holdoutSamples",
                                        "relativeImprovement",
                                        "state"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "configurationVersion",
                                "dailyBucketSamples",
                                "dailyReadiness",
                                "engineVersion",
                                "explanation",
                                "localBucket",
                                "measurementKey",
                                "neighborToleranceHours",
                                "normalizationStatus",
                                "normalizationVersion",
                                "originalScaleBasis",
                                "policyInput",
                                "sensitivity",
                                "status",
                                "timeZone",
                                "transform",
                                "updateDisposition",
                                "weeklyBucketSamples",
                                "weeklyReadiness",
                                "selectedModel",
                                "selectionReason"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "maxItems": 16,
                        "type": "array"
                      },
                      "sequence": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "shiftEvaluations": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "accumulatedMagnitude": {
                              "maximum": 64,
                              "minimum": 0,
                              "type": "number"
                            },
                            "baselineScale": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "boundedResidualContribution": {
                              "maximum": 3,
                              "minimum": -3,
                              "type": "number"
                            },
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "direction": {
                              "enum": ["positive", "negative"],
                              "type": "string"
                            },
                            "durationSamples": {
                              "maximum": 1000000,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "engineVersion": { "const": 3, "type": "number" },
                            "ewma": {
                              "maximum": 3,
                              "minimum": -3,
                              "type": "number"
                            },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "negativeCusum": {
                              "maximum": 64,
                              "minimum": 0,
                              "type": "number"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "normalizedResidual": { "type": "number" },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "numeric_overflow",
                                "heartbeat_expectation_disabled"
                              ],
                              "type": "string"
                            },
                            "pointAnomaly": { "type": "boolean" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode"],
                              "type": "object"
                            },
                            "positiveCusum": {
                              "maximum": 64,
                              "minimum": 0,
                              "type": "number"
                            },
                            "preset": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cusumAllowance": {
                                      "const": 0.75,
                                      "type": "number"
                                    },
                                    "cusumThreshold": {
                                      "const": 12,
                                      "type": "number"
                                    },
                                    "ewmaAlpha": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "ewmaRecoveryThreshold": {
                                      "const": 0.3,
                                      "type": "number"
                                    },
                                    "ewmaThreshold": {
                                      "const": 0.9,
                                      "type": "number"
                                    },
                                    "maximumGapIntervals": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "minimumDurationSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "low",
                                      "type": "string"
                                    },
                                    "recoveryConfirmationSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "residualClip": {
                                      "const": 3,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "maximumGapIntervals",
                                    "residualClip",
                                    "cusumAllowance",
                                    "cusumThreshold",
                                    "ewmaAlpha",
                                    "ewmaRecoveryThreshold",
                                    "ewmaThreshold",
                                    "minimumDurationSamples",
                                    "name",
                                    "recoveryConfirmationSamples"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cusumAllowance": {
                                      "const": 0.5,
                                      "type": "number"
                                    },
                                    "cusumThreshold": {
                                      "const": 8,
                                      "type": "number"
                                    },
                                    "ewmaAlpha": {
                                      "const": 0.2,
                                      "type": "number"
                                    },
                                    "ewmaRecoveryThreshold": {
                                      "const": 0.25,
                                      "type": "number"
                                    },
                                    "ewmaThreshold": {
                                      "const": 0.65,
                                      "type": "number"
                                    },
                                    "maximumGapIntervals": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "minimumDurationSamples": {
                                      "const": 3,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "medium",
                                      "type": "string"
                                    },
                                    "recoveryConfirmationSamples": {
                                      "const": 3,
                                      "type": "number"
                                    },
                                    "residualClip": {
                                      "const": 3,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "maximumGapIntervals",
                                    "residualClip",
                                    "cusumAllowance",
                                    "cusumThreshold",
                                    "ewmaAlpha",
                                    "ewmaRecoveryThreshold",
                                    "ewmaThreshold",
                                    "minimumDurationSamples",
                                    "name",
                                    "recoveryConfirmationSamples"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cusumAllowance": {
                                      "const": 0.35,
                                      "type": "number"
                                    },
                                    "cusumThreshold": {
                                      "const": 6,
                                      "type": "number"
                                    },
                                    "ewmaAlpha": {
                                      "const": 0.3,
                                      "type": "number"
                                    },
                                    "ewmaRecoveryThreshold": {
                                      "const": 0.2,
                                      "type": "number"
                                    },
                                    "ewmaThreshold": {
                                      "const": 0.45,
                                      "type": "number"
                                    },
                                    "maximumGapIntervals": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "minimumDurationSamples": {
                                      "const": 3,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "high",
                                      "type": "string"
                                    },
                                    "recoveryConfirmationSamples": {
                                      "const": 3,
                                      "type": "number"
                                    },
                                    "residualClip": {
                                      "const": 3,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "maximumGapIntervals",
                                    "residualClip",
                                    "cusumAllowance",
                                    "cusumThreshold",
                                    "ewmaAlpha",
                                    "ewmaRecoveryThreshold",
                                    "ewmaThreshold",
                                    "minimumDurationSamples",
                                    "name",
                                    "recoveryConfirmationSamples"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "resetReason": {
                              "enum": [
                                "accepted_regime_change",
                                "baseline_model_changed",
                                "configuration_changed",
                                "counter_baseline",
                                "counter_reset",
                                "lifecycle_suspended",
                                "long_gap",
                                "maintenance"
                              ],
                              "type": "string"
                            },
                            "status": {
                              "enum": [
                                "warming",
                                "normal",
                                "accumulating",
                                "persistent_shift",
                                "recovering",
                                "reset",
                                "not_evaluated"
                              ],
                              "type": "string"
                            },
                            "wanderCalibration": {
                              "additionalProperties": false,
                              "properties": {
                                "cusumAllowance": {
                                  "exclusiveMinimum": 0,
                                  "maximum": 64,
                                  "type": "number"
                                },
                                "cusumThreshold": {
                                  "exclusiveMinimum": 0,
                                  "maximum": 64,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 1000000,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumInflation": {
                                  "const": 1.2,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 32,
                                  "type": "number"
                                },
                                "runningMeanInflation": {
                                  "maximum": 4.358898943540674,
                                  "minimum": 1,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_holdout",
                                    "independent",
                                    "calibrated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cusumAllowance",
                                "cusumThreshold",
                                "holdoutSamples",
                                "minimumInflation",
                                "requiredHoldoutSamples",
                                "state"
                              ],
                              "type": "object"
                            }
                          },
                          "required": [
                            "configurationVersion",
                            "engineVersion",
                            "explanation",
                            "measurementKey",
                            "normalizationVersion",
                            "pointAnomaly",
                            "policyInput",
                            "preset",
                            "status"
                          ],
                          "type": "object"
                        },
                        "maxItems": 16,
                        "type": "array"
                      },
                      "status": {
                        "anyOf": [
                          {
                            "enum": [
                              "on_time",
                              "late",
                              "not_expected",
                              "learning"
                            ],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      },
                      "unavailableEvidence": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "evidence": {
                              "enum": [
                                "adaptive_baseline",
                                "explicit_rule",
                                "incident_policy",
                                "persistent_shift",
                                "seasonal_baseline"
                              ],
                              "type": "string"
                            },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "reason": {
                              "enum": ["engine_version", "unreadable"],
                              "type": "string"
                            },
                            "recordedEngineVersion": {
                              "maximum": 999,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": ["evidence", "explanation", "reason"],
                          "type": "object"
                        },
                        "maxItems": 5,
                        "minItems": 1,
                        "type": "array"
                      }
                    },
                    "required": [
                      "acceptedAt",
                      "configurationVersion",
                      "id",
                      "payload",
                      "requestId",
                      "sequence",
                      "status"
                    ],
                    "type": "object"
                  },
                  "lifecycle": {
                    "enum": ["active", "paused", "archived"],
                    "type": "string"
                  },
                  "lifecycleChangedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "maintenance": {
                    "additionalProperties": false,
                    "properties": {
                      "endsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "reason": {
                        "maxLength": 256,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "startsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      }
                    },
                    "required": ["endsAt", "startsAt"],
                    "type": "object"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "nextDeadline": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "reconciliation": {
                    "additionalProperties": false,
                    "properties": {
                      "directory": {
                        "enum": ["pending", "synchronized"],
                        "type": "string"
                      },
                      "usage": {
                        "enum": ["pending", "synchronized"],
                        "type": "string"
                      }
                    },
                    "required": ["directory", "usage"],
                    "type": "object"
                  },
                  "restorableUntil": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "retainedHistory": {
                    "additionalProperties": false,
                    "properties": {
                      "coverage": {
                        "additionalProperties": false,
                        "properties": {
                          "availableFrom": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "availableThrough": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "truncated": { "const": true, "type": "boolean" }
                        },
                        "type": "object"
                      },
                      "datapoints": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "observedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "values": {
                              "additionalProperties": { "type": "number" },
                              "propertyNames": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "type": "object"
                            }
                          },
                          "required": ["observedAt", "values"],
                          "type": "object"
                        },
                        "maxItems": 500,
                        "type": "array"
                      },
                      "measurementKeys": {
                        "items": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maxItems": 4,
                        "minItems": 1,
                        "type": "array"
                      },
                      "truncated": { "type": "boolean" }
                    },
                    "required": ["datapoints", "measurementKeys", "truncated"],
                    "type": "object"
                  }
                },
                "required": [
                  "configuration",
                  "initializedAt",
                  "jurisdiction",
                  "lifecycle",
                  "monitorKey",
                  "reconciliation"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetMonitorResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetMonitorResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Evidence reported as unavailable is never also returned on the same observation.",
          "Unavailable-evidence entries name each stored record at most once, carry this contract's own explanation for their reason, and state a recorded engine version exactly when the engine version is the reason and never the version this build runs.",
          "Successful monitor details preserve configuration, latest-observation, and deadline ordering refinements."
        ]
      },
      "McpGetOrganizationInput": {
        "additionalProperties": false,
        "properties": {},
        "title": "McpGetOrganizationInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetOrganizationInputSchema"
      },
      "McpGetOrganizationResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "organization": {
                    "properties": {
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      }
                    },
                    "required": ["id"],
                    "type": "object"
                  },
                  "principal": {
                    "oneOf": [
                      {
                        "properties": {
                          "kind": { "const": "human", "type": "string" },
                          "role": {
                            "enum": ["owner", "admin", "member"],
                            "type": "string"
                          },
                          "userId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          }
                        },
                        "required": ["kind", "role", "userId"],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "credentialId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "kind": {
                            "const": "api_credential",
                            "type": "string"
                          },
                          "preset": {
                            "enum": ["read", "write", "readwrite", "manage"],
                            "type": "string"
                          },
                          "scopes": {
                            "items": {
                              "enum": [
                                "callbacks:read",
                                "callbacks:write",
                                "credentials:write",
                                "incidents:read",
                                "incidents:write",
                                "monitors:read",
                                "monitors:write",
                                "observations:read",
                                "organization:write",
                                "organization:destroy",
                                "projects:read",
                                "projects:write",
                                "projects:administer",
                                "usage:read"
                              ],
                              "type": "string"
                            },
                            "maxItems": 14,
                            "minItems": 1,
                            "type": "array"
                          }
                        },
                        "required": [
                          "kind",
                          "credentialId",
                          "preset",
                          "scopes"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": ["organization", "principal"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetOrganizationResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetOrganizationResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Successful organization and principal identifiers originate from verified server-side authentication context."
        ]
      },
      "McpGetProjectInput": {
        "additionalProperties": false,
        "properties": {},
        "title": "McpGetProjectInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetProjectInputSchema"
      },
      "McpGetProjectResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "lifecycle": {
                    "enum": ["active", "archived"],
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 120,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "projectId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  }
                },
                "required": [
                  "createdAt",
                  "lifecycle",
                  "name",
                  "projectId",
                  "version"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetProjectResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetProjectResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The project preserves its name refinement.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpGetRuleWorkbenchDraftInput": {
        "additionalProperties": false,
        "properties": {
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["draftId", "monitorId"],
        "title": "McpGetRuleWorkbenchDraftInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetRuleWorkbenchDraftInputSchema"
      },
      "McpGetRuleWorkbenchDraftResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "appliedConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "baseConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "closedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "history": {
                    "additionalProperties": false,
                    "properties": {
                      "fromSequence": {
                        "maximum": 9007199254740991,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "frozenAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "observationCount": {
                        "maximum": 200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "throughSequence": {
                        "maximum": 9007199254740991,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": ["frozenAt", "observationCount"],
                    "type": "object"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "proposal": {
                    "additionalProperties": false,
                    "properties": {
                      "definition": {
                        "additionalProperties": false,
                        "properties": {
                          "disabledRules": {
                            "items": {
                              "enum": [
                                "minimum",
                                "maximum",
                                "zero",
                                "nonzero",
                                "absolute_delta",
                                "percentage_delta",
                                "ratio_minimum",
                                "ratio_maximum"
                              ],
                              "type": "string"
                            },
                            "maxItems": 8,
                            "type": "array"
                          },
                          "maximum": {
                            "anyOf": [{ "type": "number" }, { "type": "null" }]
                          },
                          "maximumAbsoluteDelta": {
                            "anyOf": [
                              { "minimum": 0, "type": "number" },
                              { "type": "null" }
                            ]
                          },
                          "maximumPercentageDelta": {
                            "anyOf": [
                              { "minimum": 0, "type": "number" },
                              { "type": "null" }
                            ]
                          },
                          "metricType": {
                            "enum": [
                              "gauge",
                              "count",
                              "rate",
                              "duration",
                              "counter",
                              "size"
                            ],
                            "type": "string"
                          },
                          "minimum": {
                            "anyOf": [{ "type": "number" }, { "type": "null" }]
                          },
                          "missingPolicy": {
                            "enum": ["skip", "zero", "reject"],
                            "type": "string"
                          },
                          "ratio": {
                            "additionalProperties": false,
                            "properties": {
                              "denominator": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "maximum": {
                                "anyOf": [
                                  { "type": "number" },
                                  { "type": "null" }
                                ]
                              },
                              "minimum": {
                                "anyOf": [
                                  { "type": "number" },
                                  { "type": "null" }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          "ruleAction": {
                            "additionalProperties": false,
                            "properties": {
                              "mode": {
                                "enum": ["inactive", "active"],
                                "type": "string"
                              },
                              "version": { "const": 1, "type": "number" }
                            },
                            "required": ["mode", "version"],
                            "type": "object"
                          },
                          "rulePolicy": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "consecutiveObservations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  "severity": {
                                    "enum": ["info", "warning", "critical"],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "sustainedConsequence": {
                                    "enum": [
                                      "none",
                                      "info",
                                      "warning",
                                      "critical"
                                    ],
                                    "type": "string"
                                  },
                                  "sustainedCriterion": {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "kind": {
                                            "const": "observations",
                                            "type": "string"
                                          },
                                          "observations": {
                                            "maximum": 10,
                                            "minimum": 1,
                                            "type": "integer"
                                          }
                                        },
                                        "required": ["kind", "observations"],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "kind": {
                                            "const": "elapsed_time",
                                            "type": "string"
                                          },
                                          "seconds": {
                                            "maximum": 604800,
                                            "minimum": 1,
                                            "type": "integer"
                                          }
                                        },
                                        "required": ["kind", "seconds"],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  "transientConsequence": {
                                    "enum": [
                                      "none",
                                      "info",
                                      "warning",
                                      "critical"
                                    ],
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["version"],
                                "type": "object"
                              }
                            ]
                          },
                          "transform": {
                            "enum": ["none", "log1p"],
                            "type": "string"
                          },
                          "unit": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "zeroExpectation": {
                            "anyOf": [
                              { "enum": ["zero", "nonzero"], "type": "string" },
                              { "type": "null" }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "measurementKey": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    },
                    "required": ["definition", "measurementKey"],
                    "type": "object"
                  },
                  "status": {
                    "anyOf": [
                      {
                        "enum": ["open", "applied", "canceled"],
                        "type": "string"
                      },
                      {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    ]
                  },
                  "updatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  }
                },
                "required": [
                  "baseConfigurationVersion",
                  "createdAt",
                  "history",
                  "id",
                  "jurisdiction",
                  "monitorKey",
                  "proposal",
                  "status",
                  "updatedAt",
                  "version"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetRuleWorkbenchDraftResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetRuleWorkbenchDraftResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Draft lifecycle timestamps and applied configuration version agree with draft status.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpGetUsageInput": {
        "additionalProperties": false,
        "properties": {},
        "title": "McpGetUsageInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetUsageInputSchema"
      },
      "McpGetUsageResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "aggregationVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "entitlementAlignment": {
                    "additionalProperties": false,
                    "properties": {
                      "activeMonitors": {
                        "additionalProperties": false,
                        "properties": {
                          "current": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "limit": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "overLimit": { "type": "boolean" },
                          "remaining": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "current",
                          "limit",
                          "remaining",
                          "overLimit"
                        ],
                        "type": "object"
                      },
                      "apiRequestsPerMinute": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "freshness": {
                        "additionalProperties": false,
                        "properties": {
                          "assignmentVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          },
                          "checkedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "leaseVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          },
                          "lifecycleGeneration": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "mode": {
                            "enum": ["fresh", "offline_grace"],
                            "type": "string"
                          },
                          "offlineUntil": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "refreshAfter": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "leaseVersion",
                          "assignmentVersion",
                          "lifecycleGeneration",
                          "checkedAt",
                          "refreshAfter",
                          "offlineUntil",
                          "mode"
                        ],
                        "type": "object"
                      },
                      "mcpRequestsPerMinute": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "plan": {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "enum": ["free", "builder", "smart", "scale"],
                            "type": "string"
                          },
                          "name": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                            "type": "string"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": ["id", "name", "version"],
                        "type": "object"
                      }
                    },
                    "required": [
                      "activeMonitors",
                      "apiRequestsPerMinute",
                      "freshness",
                      "mcpRequestsPerMinute",
                      "plan"
                    ],
                    "type": "object"
                  },
                  "freshness": {
                    "additionalProperties": false,
                    "properties": {
                      "asOf": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "coverage": {
                        "additionalProperties": false,
                        "properties": {
                          "expectedAuthorities": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "reconciledAuthorities": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "requestCalls": {
                            "enum": ["complete", "lower_bound", "unavailable"],
                            "type": "string"
                          },
                          "state": {
                            "enum": ["complete", "partial", "unavailable"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "expectedAuthorities",
                          "reconciledAuthorities",
                          "requestCalls",
                          "state"
                        ],
                        "type": "object"
                      },
                      "projectedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "sourceUpdatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "state": {
                        "enum": ["fresh", "delayed", "stale", "unavailable"],
                        "type": "string"
                      }
                    },
                    "required": ["asOf", "coverage", "state"],
                    "type": "object"
                  },
                  "organizationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "reconciliation": {
                    "additionalProperties": false,
                    "properties": {
                      "exactGlobalQuota": { "const": false, "type": "boolean" },
                      "mode": {
                        "const": "eventual_reconciliation",
                        "type": "string"
                      },
                      "note": {
                        "const": "Usage is reconciled after durable regional projections; it is not exact global quota enforcement.",
                        "type": "string"
                      }
                    },
                    "required": ["exactGlobalQuota", "mode", "note"],
                    "type": "object"
                  },
                  "selectedProject": {
                    "additionalProperties": false,
                    "properties": {
                      "projectId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "totals": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "activeMonitorSeconds": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "beats": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "deliveryAttempts": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "detectorCpuHigh": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "detectorCpuLow": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "detectorCpuMedium": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "incidents": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "measurements": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "payloadBytes": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "storageBytes": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "activeMonitorSeconds",
                              "beats",
                              "deliveryAttempts",
                              "detectorCpuHigh",
                              "detectorCpuLow",
                              "detectorCpuMedium",
                              "incidents",
                              "measurements",
                              "payloadBytes",
                              "storageBytes"
                            ],
                            "type": "object"
                          },
                          { "type": "null" }
                        ]
                      }
                    },
                    "required": ["projectId", "totals"],
                    "type": "object"
                  },
                  "totals": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "activeMonitorSeconds": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "apiCalls": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "beats": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "deliveryAttempts": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "detectorCpuHigh": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "detectorCpuLow": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "detectorCpuMedium": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "incidents": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "mcpCalls": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "measurements": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "payloadBytes": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "storageBytes": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "activeMonitorSeconds",
                          "apiCalls",
                          "beats",
                          "deliveryAttempts",
                          "detectorCpuHigh",
                          "detectorCpuLow",
                          "detectorCpuMedium",
                          "incidents",
                          "mcpCalls",
                          "measurements",
                          "payloadBytes",
                          "storageBytes"
                        ],
                        "type": "object"
                      },
                      { "type": "null" }
                    ]
                  },
                  "window": {
                    "additionalProperties": false,
                    "properties": {
                      "endsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "startsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      }
                    },
                    "required": ["startsAt", "endsAt"],
                    "type": "object"
                  }
                },
                "required": [
                  "aggregationVersion",
                  "entitlementAlignment",
                  "freshness",
                  "organizationId",
                  "reconciliation",
                  "totals",
                  "window"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpGetUsageResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpGetUsageResultSchema"
      },
      "McpImportHistoricalObservationsInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "observations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "observedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "payload": {
                  "anyOf": [
                    { "type": "number" },
                    {
                      "additionalProperties": {
                        "anyOf": [
                          { "type": "number" },
                          {
                            "anyOf": [
                              { "type": "boolean" },
                              { "type": "null" },
                              {
                                "maxLength": 256,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              }
                            ]
                          }
                        ]
                      },
                      "propertyNames": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "type": "object"
                    }
                  ]
                }
              },
              "required": ["observedAt", "payload"],
              "type": "object"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "expectedConfigurationVersion",
          "observations",
          "idempotencyKey",
          "monitorId"
        ],
        "title": "McpImportHistoricalObservationsInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpImportHistoricalObservationsInputSchema",
        "x-signalsitter-source-only-refinements": [
          "Observations are strictly chronological by observedAt.",
          "Every nested payload applies the existing bounded publish-observation validation."
        ]
      },
      "McpImportHistoricalObservationsResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "configurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "count": { "maximum": 500, "minimum": 1, "type": "integer" },
                  "distinctMetricKeys": {
                    "items": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "newestObservedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "oldestObservedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "provenance": {
                    "const": "historical_import",
                    "type": "string"
                  },
                  "sealed": { "const": true, "type": "boolean" }
                },
                "required": [
                  "configurationVersion",
                  "count",
                  "newestObservedAt",
                  "oldestObservedAt",
                  "distinctMetricKeys",
                  "provenance",
                  "sealed"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpImportHistoricalObservationsResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpImportHistoricalObservationsResultSchema",
        "x-signalsitter-source-only-refinements": [
          "A successful receipt has an ordered observed-at range and unique sorted metric keys.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpIncidentControlInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "incidentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "note": {
            "maxLength": 1024,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "required": ["idempotencyKey", "incidentId", "monitorId"],
        "title": "McpIncidentControlInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpIncidentControlInputSchema"
      },
      "McpIncidentControlResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "event": {
                    "additionalProperties": false,
                    "properties": {
                      "data": {
                        "additionalProperties": false,
                        "properties": {
                          "audit": {
                            "properties": {
                              "action": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                                "type": "string"
                              },
                              "actor": {
                                "properties": {
                                  "display": {
                                    "maxLength": 160,
                                    "minLength": 1,
                                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                    "type": "string"
                                  },
                                  "id": {
                                    "maxLength": 128,
                                    "minLength": 1,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                    "type": "string"
                                  },
                                  "kind": {
                                    "anyOf": [
                                      {
                                        "enum": [
                                          "human",
                                          "api_credential",
                                          "mcp_client",
                                          "operator",
                                          "system"
                                        ],
                                        "type": "string"
                                      },
                                      {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[a-z][a-z0-9_]*$",
                                        "type": "string"
                                      }
                                    ]
                                  }
                                },
                                "required": ["kind"],
                                "type": "object"
                              },
                              "correlationId": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                                "type": "string"
                              },
                              "id": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                "type": "string"
                              },
                              "occurredAt": {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              "outcome": {
                                "enum": ["succeeded", "denied", "failed"],
                                "type": "string"
                              },
                              "target": {
                                "properties": {
                                  "id": {
                                    "maxLength": 128,
                                    "minLength": 1,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                    "type": "string"
                                  },
                                  "type": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  }
                                },
                                "required": ["type", "id"],
                                "type": "object"
                              }
                            },
                            "required": [
                              "id",
                              "occurredAt",
                              "correlationId",
                              "actor",
                              "action",
                              "target",
                              "outcome"
                            ],
                            "type": "object"
                          },
                          "callbackIntentId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "configurationVersion": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "deadlineAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "detectionDelayMs": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "expectedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "note": {
                            "maxLength": 1024,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "notification": {
                            "enum": [
                              "requested",
                              "suppressed_by_cooldown",
                              "suppressed_by_recovery_hysteresis"
                            ],
                            "type": "string"
                          },
                          "observationId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "reason": {
                            "enum": [
                              "deadline_missed",
                              "recovery_lapsed",
                              "beat_accepted",
                              "operator_resolved",
                              "heartbeat_disabled",
                              "anomaly_confirmed",
                              "anomaly_sustained",
                              "anomaly_cleared",
                              "new_normal_accepted"
                            ],
                            "type": "string"
                          },
                          "recovery": {
                            "additionalProperties": false,
                            "properties": {
                              "confirmedBeats": {
                                "maximum": 10,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "requiredBeats": {
                                "maximum": 10,
                                "minimum": 1,
                                "type": "integer"
                              }
                            },
                            "required": ["confirmedBeats", "requiredBeats"],
                            "type": "object"
                          },
                          "sourceRequestId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                            "type": "string"
                          },
                          "version": { "const": 1, "type": "number" },
                          "violationFamily": {
                            "enum": ["missing_beat", "numeric_anomaly"],
                            "type": "string"
                          }
                        },
                        "required": ["version"],
                        "type": "object"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "incidentId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "occurredAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "sequence": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "stateAfter": {
                        "enum": ["open", "recovering", "recovered", "resolved"],
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "detected",
                          "confirmed",
                          "notification_requested",
                          "acknowledged",
                          "annotated",
                          "recovery_started",
                          "recovered",
                          "resolved",
                          "rebaselined",
                          "archived"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "data",
                      "id",
                      "incidentId",
                      "occurredAt",
                      "sequence",
                      "stateAfter",
                      "type"
                    ],
                    "type": "object"
                  },
                  "incident": {
                    "additionalProperties": false,
                    "properties": {
                      "acknowledgement": {
                        "additionalProperties": false,
                        "properties": {
                          "acknowledgedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "actor": {
                            "properties": {
                              "display": {
                                "maxLength": 160,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "id": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                "type": "string"
                              },
                              "kind": {
                                "anyOf": [
                                  {
                                    "enum": [
                                      "human",
                                      "api_credential",
                                      "mcp_client",
                                      "operator",
                                      "system"
                                    ],
                                    "type": "string"
                                  },
                                  {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  }
                                ]
                              }
                            },
                            "required": ["kind"],
                            "type": "object"
                          }
                        },
                        "required": ["acknowledgedAt", "actor"],
                        "type": "object"
                      },
                      "archivedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "closedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "confirmedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "detectedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "jurisdiction": {
                        "enum": ["unrestricted", "eu", "us", "fedramp"],
                        "type": "string"
                      },
                      "monitorKey": {
                        "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "notification": {
                        "enum": [
                          "requested",
                          "suppressed_by_cooldown",
                          "suppressed_by_recovery_hysteresis"
                        ],
                        "type": "string"
                      },
                      "openedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "recovery": {
                        "additionalProperties": false,
                        "properties": {
                          "confirmedBeats": {
                            "maximum": 10,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "requiredBeats": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": ["confirmedBeats", "requiredBeats"],
                        "type": "object"
                      },
                      "state": {
                        "enum": ["open", "recovering", "recovered", "resolved"],
                        "type": "string"
                      },
                      "stateMachineVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "updatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "violationFamily": {
                        "enum": ["missing_beat", "numeric_anomaly"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "detectedAt",
                      "id",
                      "jurisdiction",
                      "monitorKey",
                      "notification",
                      "openedAt",
                      "recovery",
                      "state",
                      "stateMachineVersion",
                      "updatedAt",
                      "violationFamily"
                    ],
                    "type": "object"
                  },
                  "replayed": { "type": "boolean" }
                },
                "required": ["event", "incident", "replayed"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpIncidentControlResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpIncidentControlResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Retry-after seconds require a retryable error, and nested incident-control refinements apply."
        ]
      },
      "McpListAnomalyFeedbackInput": {
        "additionalProperties": false,
        "properties": {
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "limit": { "maximum": 200, "minimum": 1, "type": "integer" },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "verdict": {
            "enum": ["accept_normal", "expected", "not_useful", "useful"],
            "type": "string"
          }
        },
        "required": ["monitorId"],
        "title": "McpListAnomalyFeedbackInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListAnomalyFeedbackInputSchema"
      },
      "McpListAnomalyFeedbackResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "counts": {
                    "additionalProperties": false,
                    "properties": {
                      "accept_normal": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "expected": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "not_useful": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "useful": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "accept_normal",
                      "expected",
                      "not_useful",
                      "useful"
                    ],
                    "type": "object"
                  },
                  "items": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "actor": {
                          "properties": {
                            "display": {
                              "maxLength": 160,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "id": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                              "type": "string"
                            },
                            "kind": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "human",
                                    "api_credential",
                                    "mcp_client",
                                    "operator",
                                    "system"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": ["kind"],
                          "type": "object"
                        },
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "feedbackId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "incidentId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "note": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "observationSequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "replayed": { "type": "boolean" },
                        "submittedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "verdict": {
                          "enum": [
                            "accept_normal",
                            "expected",
                            "not_useful",
                            "useful"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "actor",
                        "configurationVersion",
                        "feedbackId",
                        "incidentId",
                        "replayed",
                        "submittedAt",
                        "verdict"
                      ],
                      "type": "object"
                    },
                    "maxItems": 200,
                    "type": "array"
                  }
                },
                "required": ["counts", "items"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpListAnomalyFeedbackResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListAnomalyFeedbackResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The embedded feedback page applies its own verdict-count rule."
        ]
      },
      "McpListBillingAllotmentTransitionsInput": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          }
        },
        "title": "McpListBillingAllotmentTransitionsInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListBillingAllotmentTransitionsInputSchema"
      },
      "McpListBillingAllotmentTransitionsResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "items": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "action": {
                          "enum": ["suspended", "released"],
                          "type": "string"
                        },
                        "appliedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "cause": {
                          "enum": [
                            "catalog_revision",
                            "subscription_reconciliation",
                            "operator_assignment"
                          ],
                          "type": "string"
                        },
                        "fromPlan": {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "enum": ["free", "builder", "smart", "scale"],
                              "type": "string"
                            },
                            "name": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                              "type": "string"
                            },
                            "version": {
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": ["id", "name", "version"],
                          "type": "object"
                        },
                        "jurisdiction": {
                          "enum": ["unrestricted", "eu", "us", "fedramp"],
                          "type": "string"
                        },
                        "monitorId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "planChangedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "toPlan": {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "enum": ["free", "builder", "smart", "scale"],
                              "type": "string"
                            },
                            "name": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                              "type": "string"
                            },
                            "version": {
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": ["id", "name", "version"],
                          "type": "object"
                        },
                        "transitionId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "action",
                        "appliedAt",
                        "cause",
                        "fromPlan",
                        "jurisdiction",
                        "monitorId",
                        "planChangedAt",
                        "toPlan",
                        "transitionId"
                      ],
                      "type": "object"
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "nextCursor": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
                    "type": "string"
                  }
                },
                "required": ["items"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpListBillingAllotmentTransitionsResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListBillingAllotmentTransitionsResultSchema"
      },
      "McpListCallbackEndpointsInput": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          }
        },
        "title": "McpListCallbackEndpointsInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListCallbackEndpointsInputSchema"
      },
      "McpListCallbackEndpointsResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "alias": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "createdAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "disabledAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "generation": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        },
                        "id": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "isOrganizationDefault": { "type": "boolean" },
                        "kind": {
                          "default": "webhook",
                          "enum": [
                            "webhook",
                            "whooshbang_subscriber",
                            "whooshbang_group"
                          ],
                          "type": "string"
                        },
                        "lifecycle": {
                          "enum": ["active", "disabled"],
                          "type": "string"
                        },
                        "projectId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "secret": {
                          "additionalProperties": false,
                          "properties": {
                            "issuedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "overlapEndsAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "previousVersion": {
                              "exclusiveMinimum": 0,
                              "maximum": 65535,
                              "type": "integer"
                            },
                            "version": {
                              "exclusiveMinimum": 0,
                              "maximum": 65535,
                              "type": "integer"
                            }
                          },
                          "required": ["version", "issuedAt"],
                          "type": "object"
                        },
                        "updatedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "url": {
                          "format": "uri",
                          "maxLength": 512,
                          "type": "string"
                        },
                        "whooshbang": {
                          "additionalProperties": false,
                          "properties": {
                            "actorId": {
                              "maxLength": 128,
                              "minLength": 1,
                              "type": "string"
                            },
                            "contractVersion": {
                              "maxLength": 64,
                              "minLength": 1,
                              "type": "string"
                            },
                            "notifierId": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "actorId",
                            "contractVersion",
                            "notifierId"
                          ],
                          "type": "object"
                        },
                        "whooshbangGroup": {
                          "additionalProperties": false,
                          "properties": {
                            "contractVersion": {
                              "maxLength": 64,
                              "minLength": 1,
                              "type": "string"
                            },
                            "notifierId": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                              "type": "string"
                            }
                          },
                          "required": ["contractVersion", "notifierId"],
                          "type": "object"
                        }
                      },
                      "required": [
                        "id",
                        "projectId",
                        "alias",
                        "lifecycle",
                        "isOrganizationDefault",
                        "generation",
                        "createdAt",
                        "updatedAt"
                      ],
                      "type": "object"
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "nextCursor": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
                    "type": "string"
                  }
                },
                "required": ["items"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpListCallbackEndpointsResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListCallbackEndpointsResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Each item preserves the endpoint lifecycle, default, and rotation-overlap refinements.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpListCredentialsInput": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          }
        },
        "title": "McpListCredentialsInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListCredentialsInputSchema"
      },
      "McpListCredentialsResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "createdAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "expiresAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "generation": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        },
                        "id": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "label": {
                          "maxLength": 100,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "lastUsedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "prefix": {
                          "pattern": "^sig_v1_[A-Za-z0-9_-]{16}$",
                          "type": "string"
                        },
                        "preset": {
                          "enum": ["read", "write", "readwrite", "manage"],
                          "type": "string"
                        },
                        "projectId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "revokedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "rotatedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "scopes": {
                          "items": {
                            "enum": [
                              "callbacks:read",
                              "callbacks:write",
                              "credentials:write",
                              "incidents:read",
                              "incidents:write",
                              "monitors:read",
                              "monitors:write",
                              "observations:read",
                              "organization:write",
                              "organization:destroy",
                              "projects:read",
                              "projects:write",
                              "projects:administer",
                              "usage:read"
                            ],
                            "type": "string"
                          },
                          "maxItems": 14,
                          "minItems": 1,
                          "type": "array"
                        },
                        "state": {
                          "enum": ["active", "revoked"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "projectId",
                        "label",
                        "prefix",
                        "preset",
                        "scopes",
                        "state",
                        "generation",
                        "createdAt"
                      ],
                      "type": "object"
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "nextCursor": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
                    "type": "string"
                  }
                },
                "required": ["items"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpListCredentialsResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListCredentialsResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Successful list items preserve credential metadata preset/scope and lifecycle refinements."
        ]
      },
      "McpListIncidentDeliveriesInput": {
        "additionalProperties": false,
        "properties": {
          "incidentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["incidentId", "monitorId"],
        "title": "McpListIncidentDeliveriesInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListIncidentDeliveriesInputSchema"
      },
      "McpListIncidentDeliveriesResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "deliveries": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "attempts": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "attempt": {
                                "maximum": 1000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              "completedAt": {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              "deliveryId": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                "type": "string"
                              },
                              "outcome": {
                                "enum": [
                                  "success",
                                  "retryable",
                                  "terminal",
                                  "unknown"
                                ],
                                "type": "string"
                              },
                              "reason": {
                                "anyOf": [
                                  {
                                    "enum": [
                                      "binding_disabled",
                                      "binding_unresolved",
                                      "endpoint_disabled",
                                      "inline_destination_unsupported",
                                      "intent_payload_unsupported",
                                      "signing_key_unavailable",
                                      "destination_rejected",
                                      "destination_unresolved",
                                      "egress_rate_limited",
                                      "http_success",
                                      "http_client_error",
                                      "http_server_error",
                                      "network_error",
                                      "timed_out",
                                      "redirect_refused",
                                      "response_too_large",
                                      "attempts_exhausted",
                                      "message_abandoned",
                                      "superseded_before_delivery",
                                      "heartbeat_disabled",
                                      "monitor_deleted"
                                    ],
                                    "type": "string"
                                  },
                                  {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  }
                                ]
                              },
                              "redelivery": { "type": "boolean" },
                              "responsePrefix": {
                                "maxLength": 256,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "responseStatus": {
                                "maximum": 599,
                                "minimum": 100,
                                "type": "integer"
                              },
                              "startedAt": {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              }
                            },
                            "required": [
                              "attempt",
                              "completedAt",
                              "deliveryId",
                              "outcome",
                              "reason",
                              "redelivery",
                              "startedAt"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "attemptsRemaining": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "eventId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "incidentId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "intentId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "lastOutcome": {
                          "enum": [
                            "success",
                            "retryable",
                            "terminal",
                            "unknown"
                          ],
                          "type": "string"
                        },
                        "lastReason": {
                          "anyOf": [
                            {
                              "enum": [
                                "binding_disabled",
                                "binding_unresolved",
                                "endpoint_disabled",
                                "inline_destination_unsupported",
                                "intent_payload_unsupported",
                                "signing_key_unavailable",
                                "destination_rejected",
                                "destination_unresolved",
                                "egress_rate_limited",
                                "http_success",
                                "http_client_error",
                                "http_server_error",
                                "network_error",
                                "timed_out",
                                "redirect_refused",
                                "response_too_large",
                                "attempts_exhausted",
                                "message_abandoned",
                                "superseded_before_delivery",
                                "heartbeat_disabled",
                                "monitor_deleted"
                              ],
                              "type": "string"
                            },
                            {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            }
                          ]
                        },
                        "nextAttemptAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "redeliverable": { "type": "boolean" },
                        "remediation": {
                          "maxLength": 1024,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "state": {
                          "enum": [
                            "pending_enqueue",
                            "pending",
                            "claimed",
                            "succeeded",
                            "retrying",
                            "failed_terminal",
                            "outcome_unknown",
                            "dead_lettered"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "attempts",
                        "attemptsRemaining",
                        "eventId",
                        "incidentId",
                        "intentId",
                        "remediation",
                        "state",
                        "redeliverable"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": ["deliveries"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpListIncidentDeliveriesResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListIncidentDeliveriesResultSchema"
      },
      "McpListIncidentsInput": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "includeArchived": { "default": false, "type": "boolean" },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "state": {
            "enum": ["open", "recovering", "recovered", "resolved"],
            "type": "string"
          }
        },
        "required": ["monitorId"],
        "title": "McpListIncidentsInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListIncidentsInputSchema"
      },
      "McpListIncidentsResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "items": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "acknowledgement": {
                          "additionalProperties": false,
                          "properties": {
                            "acknowledgedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "actor": {
                              "properties": {
                                "display": {
                                  "maxLength": 160,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "id": {
                                  "maxLength": 128,
                                  "minLength": 1,
                                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                  "type": "string"
                                },
                                "kind": {
                                  "anyOf": [
                                    {
                                      "enum": [
                                        "human",
                                        "api_credential",
                                        "mcp_client",
                                        "operator",
                                        "system"
                                      ],
                                      "type": "string"
                                    },
                                    {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[a-z][a-z0-9_]*$",
                                      "type": "string"
                                    }
                                  ]
                                }
                              },
                              "required": ["kind"],
                              "type": "object"
                            }
                          },
                          "required": ["acknowledgedAt", "actor"],
                          "type": "object"
                        },
                        "archivedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "closedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "confirmedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "detectedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "id": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "jurisdiction": {
                          "enum": ["unrestricted", "eu", "us", "fedramp"],
                          "type": "string"
                        },
                        "monitorKey": {
                          "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "notification": {
                          "enum": [
                            "requested",
                            "suppressed_by_cooldown",
                            "suppressed_by_recovery_hysteresis"
                          ],
                          "type": "string"
                        },
                        "openedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "recovery": {
                          "additionalProperties": false,
                          "properties": {
                            "confirmedBeats": {
                              "maximum": 10,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "requiredBeats": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": ["confirmedBeats", "requiredBeats"],
                          "type": "object"
                        },
                        "state": {
                          "enum": [
                            "open",
                            "recovering",
                            "recovered",
                            "resolved"
                          ],
                          "type": "string"
                        },
                        "stateMachineVersion": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        },
                        "updatedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "violationFamily": {
                          "enum": ["missing_beat", "numeric_anomaly"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "detectedAt",
                        "id",
                        "jurisdiction",
                        "monitorKey",
                        "notification",
                        "openedAt",
                        "recovery",
                        "state",
                        "stateMachineVersion",
                        "updatedAt",
                        "violationFamily"
                      ],
                      "type": "object"
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "nextCursor": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
                    "type": "string"
                  }
                },
                "required": ["items"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpListIncidentsResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListIncidentsResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Retry-after seconds require a retryable error, and nested incident refinements apply."
        ]
      },
      "McpListMonitorChangesInput": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["monitorId"],
        "title": "McpListMonitorChangesInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListMonitorChangesInputSchema"
      },
      "McpListMonitorChangesResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "items": {
                    "items": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "actor": {
                              "properties": {
                                "display": {
                                  "maxLength": 160,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "id": {
                                  "maxLength": 128,
                                  "minLength": 1,
                                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                  "type": "string"
                                },
                                "kind": {
                                  "anyOf": [
                                    {
                                      "enum": [
                                        "human",
                                        "api_credential",
                                        "mcp_client",
                                        "operator",
                                        "system"
                                      ],
                                      "type": "string"
                                    },
                                    {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[a-z][a-z0-9_]*$",
                                      "type": "string"
                                    }
                                  ]
                                }
                              },
                              "required": ["kind"],
                              "type": "object"
                            },
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "kind": {
                              "const": "configuration",
                              "type": "string"
                            },
                            "occurredAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "sourceRequestId": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "actor",
                            "configurationVersion",
                            "occurredAt",
                            "kind"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "action": {
                              "enum": [
                                "pause",
                                "resume",
                                "archive",
                                "restore",
                                "enter_maintenance",
                                "exit_maintenance"
                              ],
                              "type": "string"
                            },
                            "actor": {
                              "properties": {
                                "display": {
                                  "maxLength": 160,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "id": {
                                  "maxLength": 128,
                                  "minLength": 1,
                                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                  "type": "string"
                                },
                                "kind": {
                                  "anyOf": [
                                    {
                                      "enum": [
                                        "human",
                                        "api_credential",
                                        "mcp_client",
                                        "operator",
                                        "system"
                                      ],
                                      "type": "string"
                                    },
                                    {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[a-z][a-z0-9_]*$",
                                      "type": "string"
                                    }
                                  ]
                                }
                              },
                              "required": ["kind"],
                              "type": "object"
                            },
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "kind": { "const": "lifecycle", "type": "string" },
                            "lifecycleFrom": {
                              "enum": ["active", "paused", "archived"],
                              "type": "string"
                            },
                            "lifecycleTo": {
                              "enum": ["active", "paused", "archived"],
                              "type": "string"
                            },
                            "maintenance": {
                              "additionalProperties": false,
                              "properties": {
                                "endsAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "reason": {
                                  "maxLength": 256,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "startsAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                }
                              },
                              "required": ["endsAt", "startsAt"],
                              "type": "object"
                            },
                            "occurredAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "sourceRequestId": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "actor",
                            "configurationVersion",
                            "occurredAt",
                            "action",
                            "kind",
                            "lifecycleFrom",
                            "lifecycleTo"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "nextCursor": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
                    "type": "string"
                  }
                },
                "required": ["items"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpListMonitorChangesResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListMonitorChangesResultSchema"
      },
      "McpListMonitorObservationsInput": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "includeObservationBuckets": { "type": "boolean" },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "since": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "until": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": ["monitorId"],
        "title": "McpListMonitorObservationsInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListMonitorObservationsInputSchema"
      },
      "McpListMonitorObservationsResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "coverage": {
                    "additionalProperties": false,
                    "properties": {
                      "availableFrom": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "availableThrough": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "truncated": { "const": true, "type": "boolean" }
                    },
                    "type": "object"
                  },
                  "items": {
                    "items": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "acceptedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "baselineEvaluations": {
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "configurationVersion": {
                                    "maximum": 9007199254740991,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "engineVersion": {
                                    "const": 2,
                                    "type": "number"
                                  },
                                  "explanation": {
                                    "maxLength": 512,
                                    "minLength": 1,
                                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                    "type": "string"
                                  },
                                  "measurementKey": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  },
                                  "normalizationStatus": {
                                    "enum": [
                                      "value",
                                      "counter_baseline",
                                      "counter_reset",
                                      "missing_skipped",
                                      "missing_zero"
                                    ],
                                    "type": "string"
                                  },
                                  "normalizationVersion": {
                                    "const": 1,
                                    "type": "number"
                                  },
                                  "notActionableReason": {
                                    "enum": ["baseline_below_minimum_level"],
                                    "type": "string"
                                  },
                                  "notEvaluatedReason": {
                                    "enum": [
                                      "measurement_missing",
                                      "counter_baseline",
                                      "counter_reset",
                                      "numeric_overflow",
                                      "heartbeat_expectation_disabled"
                                    ],
                                    "type": "string"
                                  },
                                  "originalExpectedValue": { "type": "number" },
                                  "originalLowerBound": { "type": "number" },
                                  "originalObservedValue": { "type": "number" },
                                  "originalScaleBasis": {
                                    "enum": ["measurement", "counter_delta"],
                                    "type": "string"
                                  },
                                  "originalUpperBound": { "type": "number" },
                                  "policyInput": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "actionable": { "type": "boolean" },
                                      "mode": {
                                        "enum": [
                                          "heartbeat",
                                          "shadow",
                                          "active"
                                        ],
                                        "type": "string"
                                      }
                                    },
                                    "required": ["actionable", "mode"],
                                    "type": "object"
                                  },
                                  "readiness": {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "baselineSamples": {
                                            "maximum": 15,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "requiredBaselineSamples": {
                                            "const": 16,
                                            "type": "number"
                                          },
                                          "requiredResidualSamples": {
                                            "const": 32,
                                            "type": "number"
                                          },
                                          "residualSamples": {
                                            "const": 0,
                                            "type": "number"
                                          },
                                          "state": {
                                            "const": "warming_baseline",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "requiredBaselineSamples",
                                          "requiredResidualSamples",
                                          "baselineSamples",
                                          "residualSamples",
                                          "state"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "baselineSamples": {
                                            "maximum": 128,
                                            "minimum": 16,
                                            "type": "integer"
                                          },
                                          "requiredBaselineSamples": {
                                            "const": 16,
                                            "type": "number"
                                          },
                                          "requiredResidualSamples": {
                                            "const": 32,
                                            "type": "number"
                                          },
                                          "residualSamples": {
                                            "maximum": 31,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "state": {
                                            "const": "warming_residuals",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "requiredBaselineSamples",
                                          "requiredResidualSamples",
                                          "baselineSamples",
                                          "residualSamples",
                                          "state"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "baselineSamples": {
                                            "maximum": 128,
                                            "minimum": 16,
                                            "type": "integer"
                                          },
                                          "requiredBaselineSamples": {
                                            "const": 16,
                                            "type": "number"
                                          },
                                          "requiredResidualSamples": {
                                            "const": 32,
                                            "type": "number"
                                          },
                                          "residualSamples": {
                                            "maximum": 128,
                                            "minimum": 32,
                                            "type": "integer"
                                          },
                                          "state": {
                                            "const": "ready",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "requiredBaselineSamples",
                                          "requiredResidualSamples",
                                          "baselineSamples",
                                          "residualSamples",
                                          "state"
                                        ],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  "residualModel": {
                                    "enum": ["robust_z", "count"],
                                    "type": "string"
                                  },
                                  "residualModelReadiness": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "candidate": {
                                        "enum": ["robust_z", "count"],
                                        "type": "string"
                                      },
                                      "holdoutSamples": {
                                        "maximum": 32,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "meanLogLikelihoodGain": {
                                        "type": "number"
                                      },
                                      "minimumMeanLogLikelihoodGain": {
                                        "const": 0.1,
                                        "type": "number"
                                      },
                                      "requiredHoldoutSamples": {
                                        "const": 32,
                                        "type": "number"
                                      },
                                      "state": {
                                        "enum": [
                                          "ineligible",
                                          "warming_holdout",
                                          "insufficient_improvement",
                                          "validated"
                                        ],
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "candidate",
                                      "holdoutSamples",
                                      "minimumMeanLogLikelihoodGain",
                                      "requiredHoldoutSamples",
                                      "state"
                                    ],
                                    "type": "object"
                                  },
                                  "residualModelSelectionReason": {
                                    "enum": [
                                      "count_improved",
                                      "distribution_ineligible",
                                      "holdout_warming",
                                      "insufficient_improvement"
                                    ],
                                    "type": "string"
                                  },
                                  "residualScore": {
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "sensitivity": {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "configured": {
                                            "maximum": 1,
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "expectedAlertRate": {
                                            "const": 0.01,
                                            "type": "number"
                                          },
                                          "name": {
                                            "const": "low",
                                            "type": "string"
                                          },
                                          "residualQuantile": {
                                            "const": 0.99,
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "configured",
                                          "expectedAlertRate",
                                          "name",
                                          "residualQuantile"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "configured": {
                                            "maximum": 1,
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "expectedAlertRate": {
                                            "const": 0.03,
                                            "type": "number"
                                          },
                                          "name": {
                                            "const": "medium",
                                            "type": "string"
                                          },
                                          "residualQuantile": {
                                            "const": 0.97,
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "configured",
                                          "expectedAlertRate",
                                          "name",
                                          "residualQuantile"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "configured": {
                                            "maximum": 1,
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "expectedAlertRate": {
                                            "const": 0.05,
                                            "type": "number"
                                          },
                                          "name": {
                                            "const": "high",
                                            "type": "string"
                                          },
                                          "residualQuantile": {
                                            "const": 0.95,
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "configured",
                                          "expectedAlertRate",
                                          "name",
                                          "residualQuantile"
                                        ],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "enum": [
                                      "warming",
                                      "normal",
                                      "suspected_anomaly",
                                      "not_evaluated"
                                    ],
                                    "type": "string"
                                  },
                                  "threshold": {
                                    "exclusiveMinimum": 0,
                                    "type": "number"
                                  },
                                  "transform": {
                                    "enum": ["none", "log1p"],
                                    "type": "string"
                                  },
                                  "transformedExpectedValue": {
                                    "type": "number"
                                  },
                                  "transformedLowerBound": { "type": "number" },
                                  "transformedMad": {
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "transformedObservedValue": {
                                    "type": "number"
                                  },
                                  "transformedScale": {
                                    "exclusiveMinimum": 0,
                                    "type": "number"
                                  },
                                  "transformedUpperBound": { "type": "number" },
                                  "unit": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                    "type": "string"
                                  },
                                  "updateDisposition": {
                                    "enum": ["full", "winsorized", "skipped"],
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "configurationVersion",
                                  "engineVersion",
                                  "explanation",
                                  "measurementKey",
                                  "normalizationStatus",
                                  "normalizationVersion",
                                  "originalScaleBasis",
                                  "policyInput",
                                  "readiness",
                                  "residualModel",
                                  "residualModelReadiness",
                                  "residualModelSelectionReason",
                                  "sensitivity",
                                  "status",
                                  "transform",
                                  "updateDisposition"
                                ],
                                "type": "object"
                              },
                              "maxItems": 16,
                              "type": "array"
                            },
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "id": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                              "type": "string"
                            },
                            "incidentPolicyDecision": {
                              "additionalProperties": false,
                              "properties": {
                                "configurationVersion": {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "confirmation": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "confirmed": { "type": "boolean" },
                                    "observedInWindow": {
                                      "maximum": 6,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "required": {
                                      "maximum": 6,
                                      "minimum": 1,
                                      "type": "integer"
                                    },
                                    "window": {
                                      "maximum": 6,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": [
                                    "confirmed",
                                    "observedInWindow",
                                    "required",
                                    "window"
                                  ],
                                  "type": "object"
                                },
                                "contributions": {
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "breach": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "consequence": {
                                            "enum": [
                                              "none",
                                              "info",
                                              "warning",
                                              "critical"
                                            ],
                                            "type": "string"
                                          },
                                          "justBecameSustained": {
                                            "type": "boolean"
                                          },
                                          "phase": {
                                            "enum": [
                                              "clear",
                                              "transient",
                                              "sustained"
                                            ],
                                            "type": "string"
                                          },
                                          "progress": {
                                            "additionalProperties": false,
                                            "properties": {
                                              "elapsedSeconds": {
                                                "maximum": 604800,
                                                "minimum": 0,
                                                "type": "integer"
                                              },
                                              "qualifyingObservations": {
                                                "maximum": 10,
                                                "minimum": 0,
                                                "type": "integer"
                                              },
                                              "remaining": {
                                                "maximum": 604800,
                                                "minimum": 0,
                                                "type": "integer"
                                              },
                                              "startedAt": {
                                                "format": "date-time",
                                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "elapsedSeconds",
                                              "qualifyingObservations",
                                              "remaining"
                                            ],
                                            "type": "object"
                                          },
                                          "sustainedConsequence": {
                                            "enum": [
                                              "none",
                                              "info",
                                              "warning",
                                              "critical"
                                            ],
                                            "type": "string"
                                          },
                                          "sustainedCriterion": {
                                            "oneOf": [
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "kind": {
                                                    "const": "observations",
                                                    "type": "string"
                                                  },
                                                  "observations": {
                                                    "maximum": 10,
                                                    "minimum": 1,
                                                    "type": "integer"
                                                  }
                                                },
                                                "required": [
                                                  "kind",
                                                  "observations"
                                                ],
                                                "type": "object"
                                              },
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "kind": {
                                                    "const": "elapsed_time",
                                                    "type": "string"
                                                  },
                                                  "seconds": {
                                                    "maximum": 604800,
                                                    "minimum": 1,
                                                    "type": "integer"
                                                  }
                                                },
                                                "required": ["kind", "seconds"],
                                                "type": "object"
                                              }
                                            ]
                                          },
                                          "transientConsequence": {
                                            "enum": [
                                              "none",
                                              "info",
                                              "warning",
                                              "critical"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "consequence",
                                          "justBecameSustained",
                                          "phase",
                                          "progress",
                                          "sustainedConsequence",
                                          "sustainedCriterion",
                                          "transientConsequence"
                                        ],
                                        "type": "object"
                                      },
                                      "detector": {
                                        "enum": [
                                          "explicit_rule",
                                          "adaptive_baseline",
                                          "seasonal_baseline",
                                          "persistent_shift"
                                        ],
                                        "type": "string"
                                      },
                                      "durationSamples": {
                                        "maximum": 1000000,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "measurementKey": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[a-z][a-z0-9_]*$",
                                        "type": "string"
                                      },
                                      "residualScore": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "ruleId": {
                                        "maxLength": 160,
                                        "minLength": 3,
                                        "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                                        "type": "string"
                                      },
                                      "severity": {
                                        "enum": ["info", "warning", "critical"],
                                        "type": "string"
                                      },
                                      "trigger": {
                                        "enum": [
                                          "explicit_rule",
                                          "extreme_deviation",
                                          "moderate_confirmation",
                                          "persistent_shift"
                                        ],
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "detector",
                                      "measurementKey",
                                      "severity"
                                    ],
                                    "type": "object"
                                  },
                                  "maxItems": 80,
                                  "type": "array"
                                },
                                "engineVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "evaluation": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "evaluatedMeasurementKeys": {
                                      "items": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[a-z][a-z0-9_]*$",
                                        "type": "string"
                                      },
                                      "maxItems": 32,
                                      "type": "array"
                                    },
                                    "policyActive": { "type": "boolean" },
                                    "publishedMeasurementKeys": {
                                      "items": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[a-z][a-z0-9_]*$",
                                        "type": "string"
                                      },
                                      "maxItems": 32,
                                      "type": "array"
                                    }
                                  },
                                  "required": [
                                    "evaluatedMeasurementKeys",
                                    "policyActive",
                                    "publishedMeasurementKeys"
                                  ],
                                  "type": "object"
                                },
                                "explanation": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "notifiable": { "type": "boolean" },
                                "outcome": {
                                  "enum": [
                                    "none",
                                    "recorded",
                                    "confirming",
                                    "incident_opened",
                                    "incident_sustained",
                                    "recovery_pending",
                                    "recovery_confirmed"
                                  ],
                                  "type": "string"
                                },
                                "profile": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "confirmationRequired": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "confirmationWindow": {
                                          "const": 6,
                                          "type": "number"
                                        },
                                        "extremeResidualMultiple": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "low",
                                          "type": "string"
                                        },
                                        "recoveryConfirmationObservations": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "regimeChangeObservations": {
                                          "const": 96,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "confirmationRequired",
                                        "confirmationWindow",
                                        "extremeResidualMultiple",
                                        "name",
                                        "recoveryConfirmationObservations",
                                        "regimeChangeObservations"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "confirmationRequired": {
                                          "const": 3,
                                          "type": "number"
                                        },
                                        "confirmationWindow": {
                                          "const": 5,
                                          "type": "number"
                                        },
                                        "extremeResidualMultiple": {
                                          "const": 3,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "medium",
                                          "type": "string"
                                        },
                                        "recoveryConfirmationObservations": {
                                          "const": 3,
                                          "type": "number"
                                        },
                                        "regimeChangeObservations": {
                                          "const": 48,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "confirmationRequired",
                                        "confirmationWindow",
                                        "extremeResidualMultiple",
                                        "name",
                                        "recoveryConfirmationObservations",
                                        "regimeChangeObservations"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "confirmationRequired": {
                                          "const": 2,
                                          "type": "number"
                                        },
                                        "confirmationWindow": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "extremeResidualMultiple": {
                                          "const": 2.5,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "high",
                                          "type": "string"
                                        },
                                        "recoveryConfirmationObservations": {
                                          "const": 3,
                                          "type": "number"
                                        },
                                        "regimeChangeObservations": {
                                          "const": 24,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "confirmationRequired",
                                        "confirmationWindow",
                                        "extremeResidualMultiple",
                                        "name",
                                        "recoveryConfirmationObservations",
                                        "regimeChangeObservations"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "recovery": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "confirmedObservations": {
                                      "maximum": 10,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "requiredObservations": {
                                      "maximum": 10,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": [
                                    "confirmedObservations",
                                    "requiredObservations"
                                  ],
                                  "type": "object"
                                },
                                "regimeChange": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "measurementKeys": {
                                      "items": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[a-z][a-z0-9_]*$",
                                        "type": "string"
                                      },
                                      "maxItems": 16,
                                      "type": "array"
                                    },
                                    "mode": {
                                      "enum": ["manual", "automatic"],
                                      "type": "string"
                                    },
                                    "requiredObservations": {
                                      "maximum": 1000000,
                                      "minimum": 1,
                                      "type": "integer"
                                    },
                                    "state": {
                                      "enum": [
                                        "none",
                                        "watching",
                                        "available",
                                        "applied"
                                      ],
                                      "type": "string"
                                    },
                                    "sustainedObservations": {
                                      "maximum": 1000000,
                                      "minimum": 0,
                                      "type": "integer"
                                    }
                                  },
                                  "required": [
                                    "measurementKeys",
                                    "mode",
                                    "requiredObservations",
                                    "state",
                                    "sustainedObservations"
                                  ],
                                  "type": "object"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                },
                                "suppression": {
                                  "enum": [
                                    "detector_unconfirmed",
                                    "detector_warming",
                                    "detector_shadow_mode",
                                    "open_incident"
                                  ],
                                  "type": "string"
                                },
                                "triggers": {
                                  "items": {
                                    "enum": [
                                      "explicit_rule",
                                      "extreme_deviation",
                                      "moderate_confirmation",
                                      "persistent_shift"
                                    ],
                                    "type": "string"
                                  },
                                  "maxItems": 4,
                                  "type": "array"
                                }
                              },
                              "required": [
                                "configurationVersion",
                                "confirmation",
                                "contributions",
                                "engineVersion",
                                "explanation",
                                "notifiable",
                                "outcome",
                                "profile",
                                "recovery",
                                "regimeChange",
                                "severity",
                                "triggers"
                              ],
                              "type": "object"
                            },
                            "normalizedMeasurements": {
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "definition": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "disabledRules": {
                                        "items": {
                                          "enum": [
                                            "minimum",
                                            "maximum",
                                            "zero",
                                            "nonzero",
                                            "absolute_delta",
                                            "percentage_delta",
                                            "ratio_minimum",
                                            "ratio_maximum"
                                          ],
                                          "type": "string"
                                        },
                                        "maxItems": 8,
                                        "type": "array"
                                      },
                                      "maximum": { "type": "number" },
                                      "maximumAbsoluteDelta": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "maximumPercentageDelta": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "metricType": {
                                        "default": "gauge",
                                        "enum": [
                                          "gauge",
                                          "count",
                                          "rate",
                                          "duration",
                                          "counter",
                                          "size"
                                        ],
                                        "type": "string"
                                      },
                                      "minimum": { "type": "number" },
                                      "missingPolicy": {
                                        "default": "skip",
                                        "enum": ["skip", "zero", "reject"],
                                        "type": "string"
                                      },
                                      "mode": {
                                        "enum": [
                                          "heartbeat",
                                          "shadow",
                                          "active"
                                        ],
                                        "type": "string"
                                      },
                                      "ratio": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "denominator": {
                                            "maxLength": 64,
                                            "minLength": 1,
                                            "pattern": "^[a-z][a-z0-9_]*$",
                                            "type": "string"
                                          },
                                          "maximum": { "type": "number" },
                                          "minimum": { "type": "number" }
                                        },
                                        "required": ["denominator"],
                                        "type": "object"
                                      },
                                      "ruleAction": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "mode": {
                                            "enum": ["inactive", "active"],
                                            "type": "string"
                                          },
                                          "version": {
                                            "const": 1,
                                            "type": "number"
                                          }
                                        },
                                        "required": ["mode", "version"],
                                        "type": "object"
                                      },
                                      "rulePolicy": {
                                        "anyOf": [
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "consecutiveObservations": {
                                                "default": 1,
                                                "maximum": 10,
                                                "minimum": 1,
                                                "type": "integer"
                                              },
                                              "severity": {
                                                "default": "critical",
                                                "enum": [
                                                  "info",
                                                  "warning",
                                                  "critical"
                                                ],
                                                "type": "string"
                                              }
                                            },
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "sustainedConsequence": {
                                                "default": "critical",
                                                "enum": [
                                                  "none",
                                                  "info",
                                                  "warning",
                                                  "critical"
                                                ],
                                                "type": "string"
                                              },
                                              "sustainedCriterion": {
                                                "default": {
                                                  "kind": "observations",
                                                  "observations": 1
                                                },
                                                "oneOf": [
                                                  {
                                                    "additionalProperties": false,
                                                    "properties": {
                                                      "kind": {
                                                        "const": "observations",
                                                        "type": "string"
                                                      },
                                                      "observations": {
                                                        "maximum": 10,
                                                        "minimum": 1,
                                                        "type": "integer"
                                                      }
                                                    },
                                                    "required": [
                                                      "kind",
                                                      "observations"
                                                    ],
                                                    "type": "object"
                                                  },
                                                  {
                                                    "additionalProperties": false,
                                                    "properties": {
                                                      "kind": {
                                                        "const": "elapsed_time",
                                                        "type": "string"
                                                      },
                                                      "seconds": {
                                                        "maximum": 604800,
                                                        "minimum": 1,
                                                        "type": "integer"
                                                      }
                                                    },
                                                    "required": [
                                                      "kind",
                                                      "seconds"
                                                    ],
                                                    "type": "object"
                                                  }
                                                ]
                                              },
                                              "transientConsequence": {
                                                "default": "none",
                                                "enum": [
                                                  "none",
                                                  "info",
                                                  "warning",
                                                  "critical"
                                                ],
                                                "type": "string"
                                              },
                                              "version": {
                                                "const": 1,
                                                "type": "number"
                                              }
                                            },
                                            "required": ["version"],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "sensitivity": {
                                        "maximum": 1,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "transform": {
                                        "default": "none",
                                        "enum": ["none", "log1p"],
                                        "type": "string"
                                      },
                                      "unit": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      },
                                      "zeroExpectation": {
                                        "enum": ["zero", "nonzero"],
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  "definitionVersion": {
                                    "maximum": 9007199254740991,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "key": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  },
                                  "normalizationVersion": {
                                    "const": 1,
                                    "type": "number"
                                  },
                                  "normalizedValue": { "type": "number" },
                                  "originalValue": { "type": "number" },
                                  "previousOriginalValue": { "type": "number" },
                                  "status": {
                                    "enum": [
                                      "value",
                                      "counter_baseline",
                                      "counter_reset",
                                      "missing_skipped",
                                      "missing_zero"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "definition",
                                  "definitionVersion",
                                  "key",
                                  "normalizationVersion",
                                  "status"
                                ],
                                "type": "object"
                              },
                              "maxItems": 32,
                              "type": "array"
                            },
                            "observedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "omittedDetail": {
                              "items": {
                                "anyOf": [
                                  {
                                    "enum": [
                                      "normalized_measurements",
                                      "adaptive_baseline",
                                      "explicit_rule",
                                      "incident_policy",
                                      "persistent_shift",
                                      "seasonal_baseline"
                                    ],
                                    "type": "string"
                                  },
                                  {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  }
                                ]
                              },
                              "maxItems": 16,
                              "minItems": 1,
                              "type": "array"
                            },
                            "payload": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "empty",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["kind"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "number",
                                      "type": "string"
                                    },
                                    "value": { "type": "number" }
                                  },
                                  "required": ["kind", "value"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "measurements",
                                      "type": "string"
                                    },
                                    "values": {
                                      "additionalProperties": {
                                        "anyOf": [
                                          { "type": "number" },
                                          {
                                            "anyOf": [
                                              { "type": "boolean" },
                                              { "type": "null" },
                                              {
                                                "maxLength": 256,
                                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                                "type": "string"
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      "propertyNames": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      },
                                      "type": "object"
                                    }
                                  },
                                  "required": ["kind", "values"],
                                  "type": "object"
                                }
                              ]
                            },
                            "provenance": {
                              "anyOf": [
                                {
                                  "enum": ["live", "historical_import"],
                                  "type": "string"
                                },
                                {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                }
                              ]
                            },
                            "requestId": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                              "type": "string"
                            },
                            "ruleEvaluations": {
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "breach": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "consequence": {
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      },
                                      "justBecameSustained": {
                                        "type": "boolean"
                                      },
                                      "phase": {
                                        "enum": [
                                          "clear",
                                          "transient",
                                          "sustained"
                                        ],
                                        "type": "string"
                                      },
                                      "progress": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "elapsedSeconds": {
                                            "maximum": 604800,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "qualifyingObservations": {
                                            "maximum": 10,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "remaining": {
                                            "maximum": 604800,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "startedAt": {
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "elapsedSeconds",
                                          "qualifyingObservations",
                                          "remaining"
                                        ],
                                        "type": "object"
                                      },
                                      "sustainedConsequence": {
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      },
                                      "sustainedCriterion": {
                                        "oneOf": [
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "kind": {
                                                "const": "observations",
                                                "type": "string"
                                              },
                                              "observations": {
                                                "maximum": 10,
                                                "minimum": 1,
                                                "type": "integer"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "observations"
                                            ],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "kind": {
                                                "const": "elapsed_time",
                                                "type": "string"
                                              },
                                              "seconds": {
                                                "maximum": 604800,
                                                "minimum": 1,
                                                "type": "integer"
                                              }
                                            },
                                            "required": ["kind", "seconds"],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "transientConsequence": {
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "consequence",
                                      "justBecameSustained",
                                      "phase",
                                      "progress",
                                      "sustainedConsequence",
                                      "sustainedCriterion",
                                      "transientConsequence"
                                    ],
                                    "type": "object"
                                  },
                                  "comparison": {
                                    "enum": [
                                      "at_least",
                                      "at_most",
                                      "equal",
                                      "not_equal"
                                    ],
                                    "type": "string"
                                  },
                                  "computedValue": { "type": "number" },
                                  "configurationVersion": {
                                    "maximum": 9007199254740991,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "confirmation": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "confirmed": { "type": "boolean" },
                                      "consecutiveViolations": {
                                        "maximum": 10,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "required": {
                                        "maximum": 10,
                                        "minimum": 1,
                                        "type": "integer"
                                      }
                                    },
                                    "required": [
                                      "confirmed",
                                      "consecutiveViolations",
                                      "required"
                                    ],
                                    "type": "object"
                                  },
                                  "denominatorMeasurementKey": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  },
                                  "engineVersion": {
                                    "anyOf": [
                                      { "const": 1, "type": "number" },
                                      { "const": 2, "type": "number" }
                                    ]
                                  },
                                  "explanation": {
                                    "maxLength": 512,
                                    "minLength": 1,
                                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                    "type": "string"
                                  },
                                  "kind": {
                                    "enum": [
                                      "minimum",
                                      "maximum",
                                      "zero",
                                      "nonzero",
                                      "absolute_delta",
                                      "percentage_delta",
                                      "ratio_minimum",
                                      "ratio_maximum"
                                    ],
                                    "type": "string"
                                  },
                                  "measurementKey": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  },
                                  "normalizationStatus": {
                                    "enum": [
                                      "value",
                                      "counter_baseline",
                                      "counter_reset",
                                      "missing_skipped",
                                      "missing_zero"
                                    ],
                                    "type": "string"
                                  },
                                  "notEvaluatedReason": {
                                    "enum": [
                                      "measurement_missing",
                                      "counter_baseline",
                                      "counter_reset",
                                      "previous_value_missing",
                                      "previous_value_zero",
                                      "ratio_denominator_missing",
                                      "ratio_denominator_zero",
                                      "numeric_overflow"
                                    ],
                                    "type": "string"
                                  },
                                  "observedValue": { "type": "number" },
                                  "policyInput": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "actionable": { "type": "boolean" },
                                      "mode": {
                                        "enum": [
                                          "heartbeat",
                                          "shadow",
                                          "active"
                                        ],
                                        "type": "string"
                                      },
                                      "severity": {
                                        "enum": ["info", "warning", "critical"],
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "actionable",
                                      "mode",
                                      "severity"
                                    ],
                                    "type": "object"
                                  },
                                  "referenceValue": { "type": "number" },
                                  "ruleId": {
                                    "maxLength": 160,
                                    "minLength": 3,
                                    "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                                    "type": "string"
                                  },
                                  "severity": {
                                    "enum": ["info", "warning", "critical"],
                                    "type": "string"
                                  },
                                  "status": {
                                    "enum": [
                                      "passed",
                                      "violated",
                                      "not_evaluated"
                                    ],
                                    "type": "string"
                                  },
                                  "threshold": { "type": "number" },
                                  "transform": {
                                    "enum": ["none", "log1p"],
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "comparison",
                                  "configurationVersion",
                                  "confirmation",
                                  "engineVersion",
                                  "explanation",
                                  "kind",
                                  "measurementKey",
                                  "normalizationStatus",
                                  "policyInput",
                                  "ruleId",
                                  "severity",
                                  "status",
                                  "threshold",
                                  "transform"
                                ],
                                "type": "object"
                              },
                              "maxItems": 32,
                              "type": "array"
                            },
                            "seasonalEvaluations": {
                              "items": {
                                "oneOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configurationVersion": {
                                        "maximum": 9007199254740991,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "dailyBucketSamples": {
                                        "maximum": 24,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "dailyReadiness": {
                                        "allOf": [
                                          {
                                            "oneOf": [
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 7,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "daily",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 7,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              },
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 4,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "weekly",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              }
                                            ]
                                          },
                                          {
                                            "additionalProperties": {},
                                            "properties": {
                                              "model": {
                                                "const": "daily",
                                                "type": "string"
                                              }
                                            },
                                            "required": ["model"],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "engineVersion": {
                                        "const": 1,
                                        "type": "number"
                                      },
                                      "explanation": {
                                        "maxLength": 512,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      },
                                      "localBucket": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "dailyHour": {
                                            "maximum": 23,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "offsetMinutes": {
                                            "maximum": 1440,
                                            "minimum": -1440,
                                            "type": "integer"
                                          },
                                          "weeklyHour": {
                                            "maximum": 167,
                                            "minimum": 0,
                                            "type": "integer"
                                          }
                                        },
                                        "required": [
                                          "dailyHour",
                                          "offsetMinutes",
                                          "weeklyHour"
                                        ],
                                        "type": "object"
                                      },
                                      "measurementKey": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[a-z][a-z0-9_]*$",
                                        "type": "string"
                                      },
                                      "neighborToleranceHours": {
                                        "const": 1,
                                        "type": "number"
                                      },
                                      "normalizationStatus": {
                                        "enum": [
                                          "value",
                                          "counter_baseline",
                                          "counter_reset",
                                          "missing_skipped",
                                          "missing_zero"
                                        ],
                                        "type": "string"
                                      },
                                      "normalizationVersion": {
                                        "const": 1,
                                        "type": "number"
                                      },
                                      "notEvaluatedReason": {
                                        "enum": [
                                          "measurement_missing",
                                          "counter_baseline",
                                          "counter_reset",
                                          "numeric_overflow",
                                          "heartbeat_expectation_disabled"
                                        ],
                                        "type": "string"
                                      },
                                      "originalExpectedValue": {
                                        "type": "number"
                                      },
                                      "originalLowerBound": {
                                        "type": "number"
                                      },
                                      "originalObservedValue": {
                                        "type": "number"
                                      },
                                      "originalScaleBasis": {
                                        "enum": [
                                          "measurement",
                                          "counter_delta"
                                        ],
                                        "type": "string"
                                      },
                                      "originalUpperBound": {
                                        "type": "number"
                                      },
                                      "policyInput": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "actionable": { "type": "boolean" },
                                          "mode": {
                                            "enum": [
                                              "heartbeat",
                                              "shadow",
                                              "active"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": ["actionable", "mode"],
                                        "type": "object"
                                      },
                                      "residualScore": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "selectedModel": {
                                        "const": "global",
                                        "type": "string"
                                      },
                                      "selectionReason": {
                                        "enum": [
                                          "global_baseline_warming",
                                          "insufficient_improvement",
                                          "not_evaluated",
                                          "seasonality_warming",
                                          "sparse_bucket"
                                        ],
                                        "type": "string"
                                      },
                                      "sensitivity": {
                                        "oneOf": [
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "configured": {
                                                "maximum": 1,
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "expectedAlertRate": {
                                                "const": 0.01,
                                                "type": "number"
                                              },
                                              "name": {
                                                "const": "low",
                                                "type": "string"
                                              },
                                              "residualQuantile": {
                                                "const": 0.99,
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "configured",
                                              "expectedAlertRate",
                                              "name",
                                              "residualQuantile"
                                            ],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "configured": {
                                                "maximum": 1,
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "expectedAlertRate": {
                                                "const": 0.03,
                                                "type": "number"
                                              },
                                              "name": {
                                                "const": "medium",
                                                "type": "string"
                                              },
                                              "residualQuantile": {
                                                "const": 0.97,
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "configured",
                                              "expectedAlertRate",
                                              "name",
                                              "residualQuantile"
                                            ],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "configured": {
                                                "maximum": 1,
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "expectedAlertRate": {
                                                "const": 0.05,
                                                "type": "number"
                                              },
                                              "name": {
                                                "const": "high",
                                                "type": "string"
                                              },
                                              "residualQuantile": {
                                                "const": 0.95,
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "configured",
                                              "expectedAlertRate",
                                              "name",
                                              "residualQuantile"
                                            ],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "enum": [
                                          "warming",
                                          "normal",
                                          "suspected_anomaly",
                                          "not_evaluated"
                                        ],
                                        "type": "string"
                                      },
                                      "threshold": {
                                        "exclusiveMinimum": 0,
                                        "type": "number"
                                      },
                                      "timeZone": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      },
                                      "transform": {
                                        "enum": ["none", "log1p"],
                                        "type": "string"
                                      },
                                      "transformedExpectedValue": {
                                        "type": "number"
                                      },
                                      "transformedLowerBound": {
                                        "type": "number"
                                      },
                                      "transformedMad": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "transformedObservedValue": {
                                        "type": "number"
                                      },
                                      "transformedScale": {
                                        "exclusiveMinimum": 0,
                                        "type": "number"
                                      },
                                      "transformedUpperBound": {
                                        "type": "number"
                                      },
                                      "unit": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      },
                                      "updateDisposition": {
                                        "enum": ["full", "skipped"],
                                        "type": "string"
                                      },
                                      "weeklyBucketSamples": {
                                        "maximum": 12,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "weeklyReadiness": {
                                        "allOf": [
                                          {
                                            "oneOf": [
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 7,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "daily",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 7,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              },
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 4,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "weekly",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              }
                                            ]
                                          },
                                          {
                                            "additionalProperties": {},
                                            "properties": {
                                              "model": {
                                                "const": "weekly",
                                                "type": "string"
                                              }
                                            },
                                            "required": ["model"],
                                            "type": "object"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "configurationVersion",
                                      "dailyBucketSamples",
                                      "dailyReadiness",
                                      "engineVersion",
                                      "explanation",
                                      "localBucket",
                                      "measurementKey",
                                      "neighborToleranceHours",
                                      "normalizationStatus",
                                      "normalizationVersion",
                                      "originalScaleBasis",
                                      "policyInput",
                                      "sensitivity",
                                      "status",
                                      "timeZone",
                                      "transform",
                                      "updateDisposition",
                                      "weeklyBucketSamples",
                                      "weeklyReadiness",
                                      "selectedModel",
                                      "selectionReason"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configurationVersion": {
                                        "maximum": 9007199254740991,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "dailyBucketSamples": {
                                        "maximum": 24,
                                        "minimum": 3,
                                        "type": "integer"
                                      },
                                      "dailyReadiness": {
                                        "allOf": [
                                          {
                                            "oneOf": [
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 7,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "daily",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 7,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              },
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 4,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "weekly",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              }
                                            ]
                                          },
                                          {
                                            "additionalProperties": {},
                                            "properties": {
                                              "model": {
                                                "const": "daily",
                                                "type": "string"
                                              }
                                            },
                                            "required": ["model"],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": {},
                                            "properties": {
                                              "candidateWinsorizedMeanAbsoluteError": {
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "cyclesObserved": {
                                                "const": 7,
                                                "type": "number"
                                              },
                                              "globalWinsorizedMeanAbsoluteError": {
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "holdoutSamples": {
                                                "maximum": 32,
                                                "minimum": 4,
                                                "type": "integer"
                                              },
                                              "relativeImprovement": {
                                                "maximum": 1,
                                                "minimum": 0.1,
                                                "type": "number"
                                              },
                                              "state": {
                                                "const": "validated",
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "candidateWinsorizedMeanAbsoluteError",
                                              "cyclesObserved",
                                              "globalWinsorizedMeanAbsoluteError",
                                              "holdoutSamples",
                                              "relativeImprovement",
                                              "state"
                                            ],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "engineVersion": {
                                        "const": 1,
                                        "type": "number"
                                      },
                                      "explanation": {
                                        "maxLength": 512,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      },
                                      "localBucket": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "dailyHour": {
                                            "maximum": 23,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "offsetMinutes": {
                                            "maximum": 1440,
                                            "minimum": -1440,
                                            "type": "integer"
                                          },
                                          "weeklyHour": {
                                            "maximum": 167,
                                            "minimum": 0,
                                            "type": "integer"
                                          }
                                        },
                                        "required": [
                                          "dailyHour",
                                          "offsetMinutes",
                                          "weeklyHour"
                                        ],
                                        "type": "object"
                                      },
                                      "measurementKey": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[a-z][a-z0-9_]*$",
                                        "type": "string"
                                      },
                                      "neighborToleranceHours": {
                                        "const": 1,
                                        "type": "number"
                                      },
                                      "normalizationStatus": {
                                        "enum": [
                                          "value",
                                          "counter_baseline",
                                          "counter_reset",
                                          "missing_skipped",
                                          "missing_zero"
                                        ],
                                        "type": "string"
                                      },
                                      "normalizationVersion": {
                                        "const": 1,
                                        "type": "number"
                                      },
                                      "notEvaluatedReason": {
                                        "enum": [
                                          "measurement_missing",
                                          "counter_baseline",
                                          "counter_reset",
                                          "numeric_overflow",
                                          "heartbeat_expectation_disabled"
                                        ],
                                        "type": "string"
                                      },
                                      "originalExpectedValue": {
                                        "type": "number"
                                      },
                                      "originalLowerBound": {
                                        "type": "number"
                                      },
                                      "originalObservedValue": {
                                        "type": "number"
                                      },
                                      "originalScaleBasis": {
                                        "enum": [
                                          "measurement",
                                          "counter_delta"
                                        ],
                                        "type": "string"
                                      },
                                      "originalUpperBound": {
                                        "type": "number"
                                      },
                                      "policyInput": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "actionable": { "type": "boolean" },
                                          "mode": {
                                            "enum": [
                                              "heartbeat",
                                              "shadow",
                                              "active"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": ["actionable", "mode"],
                                        "type": "object"
                                      },
                                      "residualScore": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "selectedModel": {
                                        "const": "daily",
                                        "type": "string"
                                      },
                                      "selectionReason": {
                                        "const": "daily_improved",
                                        "type": "string"
                                      },
                                      "sensitivity": {
                                        "oneOf": [
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "configured": {
                                                "maximum": 1,
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "expectedAlertRate": {
                                                "const": 0.01,
                                                "type": "number"
                                              },
                                              "name": {
                                                "const": "low",
                                                "type": "string"
                                              },
                                              "residualQuantile": {
                                                "const": 0.99,
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "configured",
                                              "expectedAlertRate",
                                              "name",
                                              "residualQuantile"
                                            ],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "configured": {
                                                "maximum": 1,
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "expectedAlertRate": {
                                                "const": 0.03,
                                                "type": "number"
                                              },
                                              "name": {
                                                "const": "medium",
                                                "type": "string"
                                              },
                                              "residualQuantile": {
                                                "const": 0.97,
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "configured",
                                              "expectedAlertRate",
                                              "name",
                                              "residualQuantile"
                                            ],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "configured": {
                                                "maximum": 1,
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "expectedAlertRate": {
                                                "const": 0.05,
                                                "type": "number"
                                              },
                                              "name": {
                                                "const": "high",
                                                "type": "string"
                                              },
                                              "residualQuantile": {
                                                "const": 0.95,
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "configured",
                                              "expectedAlertRate",
                                              "name",
                                              "residualQuantile"
                                            ],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "enum": [
                                          "warming",
                                          "normal",
                                          "suspected_anomaly",
                                          "not_evaluated"
                                        ],
                                        "type": "string"
                                      },
                                      "threshold": {
                                        "exclusiveMinimum": 0,
                                        "type": "number"
                                      },
                                      "timeZone": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      },
                                      "transform": {
                                        "enum": ["none", "log1p"],
                                        "type": "string"
                                      },
                                      "transformedExpectedValue": {
                                        "type": "number"
                                      },
                                      "transformedLowerBound": {
                                        "type": "number"
                                      },
                                      "transformedMad": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "transformedObservedValue": {
                                        "type": "number"
                                      },
                                      "transformedScale": {
                                        "exclusiveMinimum": 0,
                                        "type": "number"
                                      },
                                      "transformedUpperBound": {
                                        "type": "number"
                                      },
                                      "unit": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      },
                                      "updateDisposition": {
                                        "enum": ["full", "skipped"],
                                        "type": "string"
                                      },
                                      "weeklyBucketSamples": {
                                        "maximum": 12,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "weeklyReadiness": {
                                        "allOf": [
                                          {
                                            "oneOf": [
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 7,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "daily",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 7,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              },
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 4,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "weekly",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              }
                                            ]
                                          },
                                          {
                                            "additionalProperties": {},
                                            "properties": {
                                              "model": {
                                                "const": "weekly",
                                                "type": "string"
                                              }
                                            },
                                            "required": ["model"],
                                            "type": "object"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "configurationVersion",
                                      "dailyBucketSamples",
                                      "dailyReadiness",
                                      "engineVersion",
                                      "explanation",
                                      "localBucket",
                                      "measurementKey",
                                      "neighborToleranceHours",
                                      "normalizationStatus",
                                      "normalizationVersion",
                                      "originalScaleBasis",
                                      "policyInput",
                                      "sensitivity",
                                      "status",
                                      "timeZone",
                                      "transform",
                                      "updateDisposition",
                                      "weeklyBucketSamples",
                                      "weeklyReadiness",
                                      "selectedModel",
                                      "selectionReason"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configurationVersion": {
                                        "maximum": 9007199254740991,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "dailyBucketSamples": {
                                        "maximum": 24,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "dailyReadiness": {
                                        "allOf": [
                                          {
                                            "oneOf": [
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 7,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "daily",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 7,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              },
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 4,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "weekly",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              }
                                            ]
                                          },
                                          {
                                            "additionalProperties": {},
                                            "properties": {
                                              "model": {
                                                "const": "daily",
                                                "type": "string"
                                              }
                                            },
                                            "required": ["model"],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "engineVersion": {
                                        "const": 1,
                                        "type": "number"
                                      },
                                      "explanation": {
                                        "maxLength": 512,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      },
                                      "localBucket": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "dailyHour": {
                                            "maximum": 23,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "offsetMinutes": {
                                            "maximum": 1440,
                                            "minimum": -1440,
                                            "type": "integer"
                                          },
                                          "weeklyHour": {
                                            "maximum": 167,
                                            "minimum": 0,
                                            "type": "integer"
                                          }
                                        },
                                        "required": [
                                          "dailyHour",
                                          "offsetMinutes",
                                          "weeklyHour"
                                        ],
                                        "type": "object"
                                      },
                                      "measurementKey": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[a-z][a-z0-9_]*$",
                                        "type": "string"
                                      },
                                      "neighborToleranceHours": {
                                        "const": 1,
                                        "type": "number"
                                      },
                                      "normalizationStatus": {
                                        "enum": [
                                          "value",
                                          "counter_baseline",
                                          "counter_reset",
                                          "missing_skipped",
                                          "missing_zero"
                                        ],
                                        "type": "string"
                                      },
                                      "normalizationVersion": {
                                        "const": 1,
                                        "type": "number"
                                      },
                                      "notEvaluatedReason": {
                                        "enum": [
                                          "measurement_missing",
                                          "counter_baseline",
                                          "counter_reset",
                                          "numeric_overflow",
                                          "heartbeat_expectation_disabled"
                                        ],
                                        "type": "string"
                                      },
                                      "originalExpectedValue": {
                                        "type": "number"
                                      },
                                      "originalLowerBound": {
                                        "type": "number"
                                      },
                                      "originalObservedValue": {
                                        "type": "number"
                                      },
                                      "originalScaleBasis": {
                                        "enum": [
                                          "measurement",
                                          "counter_delta"
                                        ],
                                        "type": "string"
                                      },
                                      "originalUpperBound": {
                                        "type": "number"
                                      },
                                      "policyInput": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "actionable": { "type": "boolean" },
                                          "mode": {
                                            "enum": [
                                              "heartbeat",
                                              "shadow",
                                              "active"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": ["actionable", "mode"],
                                        "type": "object"
                                      },
                                      "residualScore": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "selectedModel": {
                                        "const": "weekly",
                                        "type": "string"
                                      },
                                      "selectionReason": {
                                        "const": "weekly_improved",
                                        "type": "string"
                                      },
                                      "sensitivity": {
                                        "oneOf": [
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "configured": {
                                                "maximum": 1,
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "expectedAlertRate": {
                                                "const": 0.01,
                                                "type": "number"
                                              },
                                              "name": {
                                                "const": "low",
                                                "type": "string"
                                              },
                                              "residualQuantile": {
                                                "const": 0.99,
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "configured",
                                              "expectedAlertRate",
                                              "name",
                                              "residualQuantile"
                                            ],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "configured": {
                                                "maximum": 1,
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "expectedAlertRate": {
                                                "const": 0.03,
                                                "type": "number"
                                              },
                                              "name": {
                                                "const": "medium",
                                                "type": "string"
                                              },
                                              "residualQuantile": {
                                                "const": 0.97,
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "configured",
                                              "expectedAlertRate",
                                              "name",
                                              "residualQuantile"
                                            ],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "configured": {
                                                "maximum": 1,
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "expectedAlertRate": {
                                                "const": 0.05,
                                                "type": "number"
                                              },
                                              "name": {
                                                "const": "high",
                                                "type": "string"
                                              },
                                              "residualQuantile": {
                                                "const": 0.95,
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "configured",
                                              "expectedAlertRate",
                                              "name",
                                              "residualQuantile"
                                            ],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "enum": [
                                          "warming",
                                          "normal",
                                          "suspected_anomaly",
                                          "not_evaluated"
                                        ],
                                        "type": "string"
                                      },
                                      "threshold": {
                                        "exclusiveMinimum": 0,
                                        "type": "number"
                                      },
                                      "timeZone": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      },
                                      "transform": {
                                        "enum": ["none", "log1p"],
                                        "type": "string"
                                      },
                                      "transformedExpectedValue": {
                                        "type": "number"
                                      },
                                      "transformedLowerBound": {
                                        "type": "number"
                                      },
                                      "transformedMad": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "transformedObservedValue": {
                                        "type": "number"
                                      },
                                      "transformedScale": {
                                        "exclusiveMinimum": 0,
                                        "type": "number"
                                      },
                                      "transformedUpperBound": {
                                        "type": "number"
                                      },
                                      "unit": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      },
                                      "updateDisposition": {
                                        "enum": ["full", "skipped"],
                                        "type": "string"
                                      },
                                      "weeklyBucketSamples": {
                                        "maximum": 12,
                                        "minimum": 3,
                                        "type": "integer"
                                      },
                                      "weeklyReadiness": {
                                        "allOf": [
                                          {
                                            "oneOf": [
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 7,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "daily",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 7,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              },
                                              {
                                                "additionalProperties": false,
                                                "properties": {
                                                  "candidateWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "cyclesObserved": {
                                                    "maximum": 4,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "globalWinsorizedMeanAbsoluteError": {
                                                    "minimum": 0,
                                                    "type": "number"
                                                  },
                                                  "holdoutSamples": {
                                                    "maximum": 32,
                                                    "minimum": 0,
                                                    "type": "integer"
                                                  },
                                                  "minimumRelativeImprovement": {
                                                    "const": 0.1,
                                                    "type": "number"
                                                  },
                                                  "model": {
                                                    "const": "weekly",
                                                    "type": "string"
                                                  },
                                                  "relativeImprovement": {
                                                    "maximum": 1,
                                                    "minimum": -1,
                                                    "type": "number"
                                                  },
                                                  "requiredCycles": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "requiredHoldoutSamples": {
                                                    "const": 4,
                                                    "type": "number"
                                                  },
                                                  "state": {
                                                    "enum": [
                                                      "warming_cycles",
                                                      "warming_holdout",
                                                      "insufficient_improvement",
                                                      "validated"
                                                    ],
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "cyclesObserved",
                                                  "holdoutSamples",
                                                  "minimumRelativeImprovement",
                                                  "requiredHoldoutSamples",
                                                  "state",
                                                  "model",
                                                  "requiredCycles"
                                                ],
                                                "type": "object"
                                              }
                                            ]
                                          },
                                          {
                                            "additionalProperties": {},
                                            "properties": {
                                              "model": {
                                                "const": "weekly",
                                                "type": "string"
                                              }
                                            },
                                            "required": ["model"],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": {},
                                            "properties": {
                                              "candidateWinsorizedMeanAbsoluteError": {
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "cyclesObserved": {
                                                "const": 4,
                                                "type": "number"
                                              },
                                              "globalWinsorizedMeanAbsoluteError": {
                                                "minimum": 0,
                                                "type": "number"
                                              },
                                              "holdoutSamples": {
                                                "maximum": 32,
                                                "minimum": 4,
                                                "type": "integer"
                                              },
                                              "relativeImprovement": {
                                                "maximum": 1,
                                                "minimum": 0.1,
                                                "type": "number"
                                              },
                                              "state": {
                                                "const": "validated",
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "candidateWinsorizedMeanAbsoluteError",
                                              "cyclesObserved",
                                              "globalWinsorizedMeanAbsoluteError",
                                              "holdoutSamples",
                                              "relativeImprovement",
                                              "state"
                                            ],
                                            "type": "object"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "configurationVersion",
                                      "dailyBucketSamples",
                                      "dailyReadiness",
                                      "engineVersion",
                                      "explanation",
                                      "localBucket",
                                      "measurementKey",
                                      "neighborToleranceHours",
                                      "normalizationStatus",
                                      "normalizationVersion",
                                      "originalScaleBasis",
                                      "policyInput",
                                      "sensitivity",
                                      "status",
                                      "timeZone",
                                      "transform",
                                      "updateDisposition",
                                      "weeklyBucketSamples",
                                      "weeklyReadiness",
                                      "selectedModel",
                                      "selectionReason"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 16,
                              "type": "array"
                            },
                            "sequence": {
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            },
                            "shiftEvaluations": {
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "accumulatedMagnitude": {
                                    "maximum": 64,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "baselineScale": {
                                    "exclusiveMinimum": 0,
                                    "type": "number"
                                  },
                                  "boundedResidualContribution": {
                                    "maximum": 3,
                                    "minimum": -3,
                                    "type": "number"
                                  },
                                  "configurationVersion": {
                                    "maximum": 9007199254740991,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "direction": {
                                    "enum": ["positive", "negative"],
                                    "type": "string"
                                  },
                                  "durationSamples": {
                                    "maximum": 1000000,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "engineVersion": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "ewma": {
                                    "maximum": 3,
                                    "minimum": -3,
                                    "type": "number"
                                  },
                                  "explanation": {
                                    "maxLength": 512,
                                    "minLength": 1,
                                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                    "type": "string"
                                  },
                                  "measurementKey": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  },
                                  "negativeCusum": {
                                    "maximum": 64,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "normalizationVersion": {
                                    "const": 1,
                                    "type": "number"
                                  },
                                  "normalizedResidual": { "type": "number" },
                                  "notEvaluatedReason": {
                                    "enum": [
                                      "measurement_missing",
                                      "counter_baseline",
                                      "counter_reset",
                                      "numeric_overflow",
                                      "heartbeat_expectation_disabled"
                                    ],
                                    "type": "string"
                                  },
                                  "pointAnomaly": { "type": "boolean" },
                                  "policyInput": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "actionable": { "type": "boolean" },
                                      "mode": {
                                        "enum": [
                                          "heartbeat",
                                          "shadow",
                                          "active"
                                        ],
                                        "type": "string"
                                      }
                                    },
                                    "required": ["actionable", "mode"],
                                    "type": "object"
                                  },
                                  "positiveCusum": {
                                    "maximum": 64,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "preset": {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "configured": {
                                            "maximum": 1,
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cusumAllowance": {
                                            "const": 0.75,
                                            "type": "number"
                                          },
                                          "cusumThreshold": {
                                            "const": 12,
                                            "type": "number"
                                          },
                                          "ewmaAlpha": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "ewmaRecoveryThreshold": {
                                            "const": 0.3,
                                            "type": "number"
                                          },
                                          "ewmaThreshold": {
                                            "const": 0.9,
                                            "type": "number"
                                          },
                                          "maximumGapIntervals": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "minimumDurationSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "name": {
                                            "const": "low",
                                            "type": "string"
                                          },
                                          "recoveryConfirmationSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "residualClip": {
                                            "const": 3,
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "configured",
                                          "maximumGapIntervals",
                                          "residualClip",
                                          "cusumAllowance",
                                          "cusumThreshold",
                                          "ewmaAlpha",
                                          "ewmaRecoveryThreshold",
                                          "ewmaThreshold",
                                          "minimumDurationSamples",
                                          "name",
                                          "recoveryConfirmationSamples"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "configured": {
                                            "maximum": 1,
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cusumAllowance": {
                                            "const": 0.5,
                                            "type": "number"
                                          },
                                          "cusumThreshold": {
                                            "const": 8,
                                            "type": "number"
                                          },
                                          "ewmaAlpha": {
                                            "const": 0.2,
                                            "type": "number"
                                          },
                                          "ewmaRecoveryThreshold": {
                                            "const": 0.25,
                                            "type": "number"
                                          },
                                          "ewmaThreshold": {
                                            "const": 0.65,
                                            "type": "number"
                                          },
                                          "maximumGapIntervals": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "minimumDurationSamples": {
                                            "const": 3,
                                            "type": "number"
                                          },
                                          "name": {
                                            "const": "medium",
                                            "type": "string"
                                          },
                                          "recoveryConfirmationSamples": {
                                            "const": 3,
                                            "type": "number"
                                          },
                                          "residualClip": {
                                            "const": 3,
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "configured",
                                          "maximumGapIntervals",
                                          "residualClip",
                                          "cusumAllowance",
                                          "cusumThreshold",
                                          "ewmaAlpha",
                                          "ewmaRecoveryThreshold",
                                          "ewmaThreshold",
                                          "minimumDurationSamples",
                                          "name",
                                          "recoveryConfirmationSamples"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "configured": {
                                            "maximum": 1,
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cusumAllowance": {
                                            "const": 0.35,
                                            "type": "number"
                                          },
                                          "cusumThreshold": {
                                            "const": 6,
                                            "type": "number"
                                          },
                                          "ewmaAlpha": {
                                            "const": 0.3,
                                            "type": "number"
                                          },
                                          "ewmaRecoveryThreshold": {
                                            "const": 0.2,
                                            "type": "number"
                                          },
                                          "ewmaThreshold": {
                                            "const": 0.45,
                                            "type": "number"
                                          },
                                          "maximumGapIntervals": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "minimumDurationSamples": {
                                            "const": 3,
                                            "type": "number"
                                          },
                                          "name": {
                                            "const": "high",
                                            "type": "string"
                                          },
                                          "recoveryConfirmationSamples": {
                                            "const": 3,
                                            "type": "number"
                                          },
                                          "residualClip": {
                                            "const": 3,
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "configured",
                                          "maximumGapIntervals",
                                          "residualClip",
                                          "cusumAllowance",
                                          "cusumThreshold",
                                          "ewmaAlpha",
                                          "ewmaRecoveryThreshold",
                                          "ewmaThreshold",
                                          "minimumDurationSamples",
                                          "name",
                                          "recoveryConfirmationSamples"
                                        ],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  "resetReason": {
                                    "enum": [
                                      "accepted_regime_change",
                                      "baseline_model_changed",
                                      "configuration_changed",
                                      "counter_baseline",
                                      "counter_reset",
                                      "lifecycle_suspended",
                                      "long_gap",
                                      "maintenance"
                                    ],
                                    "type": "string"
                                  },
                                  "status": {
                                    "enum": [
                                      "warming",
                                      "normal",
                                      "accumulating",
                                      "persistent_shift",
                                      "recovering",
                                      "reset",
                                      "not_evaluated"
                                    ],
                                    "type": "string"
                                  },
                                  "wanderCalibration": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "cusumAllowance": {
                                        "exclusiveMinimum": 0,
                                        "maximum": 64,
                                        "type": "number"
                                      },
                                      "cusumThreshold": {
                                        "exclusiveMinimum": 0,
                                        "maximum": 64,
                                        "type": "number"
                                      },
                                      "holdoutSamples": {
                                        "maximum": 1000000,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "minimumInflation": {
                                        "const": 1.2,
                                        "type": "number"
                                      },
                                      "requiredHoldoutSamples": {
                                        "const": 32,
                                        "type": "number"
                                      },
                                      "runningMeanInflation": {
                                        "maximum": 4.358898943540674,
                                        "minimum": 1,
                                        "type": "number"
                                      },
                                      "state": {
                                        "enum": [
                                          "warming_holdout",
                                          "independent",
                                          "calibrated"
                                        ],
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "cusumAllowance",
                                      "cusumThreshold",
                                      "holdoutSamples",
                                      "minimumInflation",
                                      "requiredHoldoutSamples",
                                      "state"
                                    ],
                                    "type": "object"
                                  }
                                },
                                "required": [
                                  "configurationVersion",
                                  "engineVersion",
                                  "explanation",
                                  "measurementKey",
                                  "normalizationVersion",
                                  "pointAnomaly",
                                  "policyInput",
                                  "preset",
                                  "status"
                                ],
                                "type": "object"
                              },
                              "maxItems": 16,
                              "type": "array"
                            },
                            "status": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "on_time",
                                    "late",
                                    "not_expected",
                                    "learning"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                }
                              ]
                            },
                            "unavailableEvidence": {
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "evidence": {
                                    "enum": [
                                      "adaptive_baseline",
                                      "explicit_rule",
                                      "incident_policy",
                                      "persistent_shift",
                                      "seasonal_baseline"
                                    ],
                                    "type": "string"
                                  },
                                  "explanation": {
                                    "maxLength": 512,
                                    "minLength": 1,
                                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                    "type": "string"
                                  },
                                  "reason": {
                                    "enum": ["engine_version", "unreadable"],
                                    "type": "string"
                                  },
                                  "recordedEngineVersion": {
                                    "maximum": 999,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "evidence",
                                  "explanation",
                                  "reason"
                                ],
                                "type": "object"
                              },
                              "maxItems": 5,
                              "minItems": 1,
                              "type": "array"
                            }
                          },
                          "required": [
                            "acceptedAt",
                            "configurationVersion",
                            "id",
                            "payload",
                            "requestId",
                            "sequence",
                            "status"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "bucketEndedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "bucketStartedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "measurements": {
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "count": {
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991,
                                    "type": "integer"
                                  },
                                  "flagged": { "type": "boolean" },
                                  "last": { "type": "number" },
                                  "maximum": { "type": "number" },
                                  "mean": { "type": "number" },
                                  "measurementKey": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  },
                                  "minimum": { "type": "number" }
                                },
                                "required": [
                                  "count",
                                  "flagged",
                                  "last",
                                  "maximum",
                                  "mean",
                                  "measurementKey",
                                  "minimum"
                                ],
                                "type": "object"
                              },
                              "maxItems": 32,
                              "type": "array"
                            },
                            "observationCount": {
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            },
                            "omittedMeasurementCount": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "resolutionSeconds": {
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            },
                            "statusCounts": {
                              "additionalProperties": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              },
                              "propertyNames": {
                                "anyOf": [
                                  {
                                    "enum": [
                                      "on_time",
                                      "late",
                                      "not_expected",
                                      "learning"
                                    ],
                                    "type": "string"
                                  },
                                  {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  }
                                ]
                              },
                              "type": "object"
                            },
                            "type": { "const": "bucket", "type": "string" }
                          },
                          "required": [
                            "bucketEndedAt",
                            "bucketStartedAt",
                            "measurements",
                            "observationCount",
                            "resolutionSeconds",
                            "statusCounts",
                            "type"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "nextCursor": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
                    "type": "string"
                  }
                },
                "required": ["items"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpListMonitorObservationsResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListMonitorObservationsResultSchema"
      },
      "McpListMonitorsInput": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "includeArchived": { "default": false, "type": "boolean" },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          }
        },
        "title": "McpListMonitorsInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListMonitorsInputSchema"
      },
      "McpListMonitorsResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "items": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "activeIncident": {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                              "type": "string"
                            },
                            "openedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "state": {
                              "enum": ["open", "recovering"],
                              "type": "string"
                            }
                          },
                          "required": ["id", "openedAt", "state"],
                          "type": "object"
                        },
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "enforcement": {
                          "additionalProperties": false,
                          "properties": {
                            "entitlementSuspended": { "type": "boolean" },
                            "intervalSeconds": {
                              "maximum": 31536000,
                              "minimum": 60,
                              "type": "integer"
                            }
                          },
                          "required": ["entitlementSuspended"],
                          "type": "object"
                        },
                        "expectedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "heartbeatExpectation": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "graceSeconds": {
                                  "default": 60,
                                  "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                  "maximum": 604800,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "intervalSeconds": {
                                  "maximum": 31536000,
                                  "minimum": 60,
                                  "type": "integer"
                                },
                                "state": {
                                  "const": "enabled",
                                  "type": "string"
                                },
                                "version": { "const": 1, "type": "number" }
                              },
                              "required": [
                                "intervalSeconds",
                                "state",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "state": {
                                  "const": "disabled",
                                  "type": "string"
                                },
                                "version": { "const": 1, "type": "number" }
                              },
                              "required": ["state", "version"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "graceSeconds": {
                                  "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                  "maximum": 604800,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "state": {
                                  "const": "automatic",
                                  "type": "string"
                                },
                                "version": { "const": 1, "type": "number" }
                              },
                              "required": ["state", "version"],
                              "type": "object"
                            }
                          ]
                        },
                        "heartbeatLearning": {
                          "additionalProperties": false,
                          "properties": {
                            "measuredIntervalSeconds": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "requiredSamples": {
                              "exclusiveMinimum": 0,
                              "maximum": 64,
                              "type": "integer"
                            },
                            "samples": {
                              "maximum": 64,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "status": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "collecting",
                                    "inconsistent",
                                    "unsupported_cadence"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": ["requiredSamples", "samples", "status"],
                          "type": "object"
                        },
                        "jurisdiction": {
                          "enum": ["unrestricted", "eu", "us", "fedramp"],
                          "type": "string"
                        },
                        "lastBeatAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "lastBeatStatus": {
                          "anyOf": [
                            {
                              "enum": [
                                "on_time",
                                "late",
                                "not_expected",
                                "learning"
                              ],
                              "type": "string"
                            },
                            {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            }
                          ]
                        },
                        "lifecycle": {
                          "enum": ["active", "paused", "archived"],
                          "type": "string"
                        },
                        "lifecycleChangedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "maintenance": {
                          "additionalProperties": false,
                          "properties": {
                            "endsAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "reason": {
                              "maxLength": 256,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "startsAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            }
                          },
                          "required": ["endsAt", "startsAt"],
                          "type": "object"
                        },
                        "monitorKey": {
                          "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "name": {
                          "maxLength": 120,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "nextDeadline": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "configurationVersion",
                        "heartbeatExpectation",
                        "jurisdiction",
                        "lifecycle",
                        "monitorKey"
                      ],
                      "type": "object"
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "nextCursor": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
                    "type": "string"
                  }
                },
                "required": ["items"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpListMonitorsResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListMonitorsResultSchema"
      },
      "McpListProjectsInput": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          }
        },
        "title": "McpListProjectsInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListProjectsInputSchema"
      },
      "McpListProjectsResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "items": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "createdAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "lifecycle": {
                          "enum": ["active", "archived"],
                          "type": "string"
                        },
                        "name": {
                          "maxLength": 120,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "projectId": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "version": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "createdAt",
                        "lifecycle",
                        "name",
                        "projectId",
                        "version"
                      ],
                      "type": "object"
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "nextCursor": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
                    "type": "string"
                  }
                },
                "required": ["items"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpListProjectsResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpListProjectsResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Each item preserves the project name refinement.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpPreviewNewNormalInput": {
        "additionalProperties": false,
        "properties": {
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["monitorId"],
        "title": "McpPreviewNewNormalInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpPreviewNewNormalInputSchema"
      },
      "McpPreviewNewNormalResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "configurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "measurements": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "baselineSamples": {
                          "maximum": 128,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "expectedValue": { "type": "number" },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "residualSamples": {
                          "maximum": 128,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "shiftDurationSamples": {
                          "maximum": 1000000,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "baselineSamples",
                        "measurementKey",
                        "residualSamples"
                      ],
                      "type": "object"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "observationsPreserved": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "previewedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "regimeChange": {
                    "additionalProperties": false,
                    "properties": {
                      "measurementKeys": {
                        "items": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maxItems": 16,
                        "type": "array"
                      },
                      "mode": {
                        "enum": ["manual", "automatic"],
                        "type": "string"
                      },
                      "requiredObservations": {
                        "maximum": 1000000,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "state": {
                        "enum": ["none", "watching", "available", "applied"],
                        "type": "string"
                      },
                      "sustainedObservations": {
                        "maximum": 1000000,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "measurementKeys",
                      "mode",
                      "requiredObservations",
                      "state",
                      "sustainedObservations"
                    ],
                    "type": "object"
                  },
                  "unavailableEvidence": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "evidence": {
                          "enum": [
                            "adaptive_baseline",
                            "explicit_rule",
                            "incident_policy",
                            "persistent_shift",
                            "seasonal_baseline"
                          ],
                          "type": "string"
                        },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "reason": {
                          "enum": ["engine_version", "unreadable"],
                          "type": "string"
                        },
                        "recordedEngineVersion": {
                          "maximum": 999,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": ["evidence", "explanation", "reason"],
                      "type": "object"
                    },
                    "maxItems": 5,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "jurisdiction",
                  "monitorKey",
                  "configurationVersion",
                  "measurements",
                  "observationsPreserved",
                  "regimeChange",
                  "previewedAt"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpPreviewNewNormalResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpPreviewNewNormalResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Unavailable-evidence entries name each stored record at most once, carry this contract's own explanation for their reason, and state a recorded engine version exactly when the engine version is the reason and never the version this build runs.",
          "The embedded regime-change state applies its own consistency rules."
        ]
      },
      "McpReadMonitorObservationSeriesInput": {
        "additionalProperties": false,
        "properties": {
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "since": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "until": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": ["since", "until", "monitorId"],
        "title": "McpReadMonitorObservationSeriesInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpReadMonitorObservationSeriesInputSchema"
      },
      "McpReadMonitorObservationSeriesResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "coverage": {
                    "additionalProperties": false,
                    "properties": {
                      "availableFrom": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "availableThrough": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "truncated": { "const": true, "type": "boolean" }
                    },
                    "type": "object"
                  },
                  "downsampled": { "type": "boolean" },
                  "omittedMeasurementCount": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "points": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "bucketEndedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "bucketIndex": {
                          "maximum": 31,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "bucketStartedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "firstAcceptedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "lastAcceptedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "measurements": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "count": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              },
                              "flagged": { "type": "boolean" },
                              "maximum": { "type": "number" },
                              "mean": { "type": "number" },
                              "measurementKey": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "minimum": { "type": "number" }
                            },
                            "required": [
                              "count",
                              "flagged",
                              "maximum",
                              "mean",
                              "measurementKey",
                              "minimum"
                            ],
                            "type": "object"
                          },
                          "maxItems": 32,
                          "type": "array"
                        }
                      },
                      "required": [
                        "bucketEndedAt",
                        "bucketIndex",
                        "bucketStartedAt",
                        "firstAcceptedAt",
                        "lastAcceptedAt",
                        "measurements"
                      ],
                      "type": "object"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "resolutionSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "since": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "until": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  }
                },
                "required": [
                  "downsampled",
                  "omittedMeasurementCount",
                  "points",
                  "resolutionSeconds",
                  "since",
                  "until"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpReadMonitorObservationSeriesResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpReadMonitorObservationSeriesResultSchema"
      },
      "McpRedeliverIncidentCallbackInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "incidentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "intentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["idempotencyKey", "incidentId", "intentId", "monitorId"],
        "title": "McpRedeliverIncidentCallbackInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRedeliverIncidentCallbackInputSchema"
      },
      "McpRedeliverIncidentCallbackResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "delivery": {
                    "additionalProperties": false,
                    "properties": {
                      "attempts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "attempt": {
                              "maximum": 1000,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "completedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "deliveryId": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                              "type": "string"
                            },
                            "outcome": {
                              "enum": [
                                "success",
                                "retryable",
                                "terminal",
                                "unknown"
                              ],
                              "type": "string"
                            },
                            "reason": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "binding_disabled",
                                    "binding_unresolved",
                                    "endpoint_disabled",
                                    "inline_destination_unsupported",
                                    "intent_payload_unsupported",
                                    "signing_key_unavailable",
                                    "destination_rejected",
                                    "destination_unresolved",
                                    "egress_rate_limited",
                                    "http_success",
                                    "http_client_error",
                                    "http_server_error",
                                    "network_error",
                                    "timed_out",
                                    "redirect_refused",
                                    "response_too_large",
                                    "attempts_exhausted",
                                    "message_abandoned",
                                    "superseded_before_delivery",
                                    "heartbeat_disabled",
                                    "monitor_deleted"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                }
                              ]
                            },
                            "redelivery": { "type": "boolean" },
                            "responsePrefix": {
                              "maxLength": 256,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "responseStatus": {
                              "maximum": 599,
                              "minimum": 100,
                              "type": "integer"
                            },
                            "startedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "attempt",
                            "completedAt",
                            "deliveryId",
                            "outcome",
                            "reason",
                            "redelivery",
                            "startedAt"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "attemptsRemaining": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "eventId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "incidentId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "intentId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "lastOutcome": {
                        "enum": ["success", "retryable", "terminal", "unknown"],
                        "type": "string"
                      },
                      "lastReason": {
                        "anyOf": [
                          {
                            "enum": [
                              "binding_disabled",
                              "binding_unresolved",
                              "endpoint_disabled",
                              "inline_destination_unsupported",
                              "intent_payload_unsupported",
                              "signing_key_unavailable",
                              "destination_rejected",
                              "destination_unresolved",
                              "egress_rate_limited",
                              "http_success",
                              "http_client_error",
                              "http_server_error",
                              "network_error",
                              "timed_out",
                              "redirect_refused",
                              "response_too_large",
                              "attempts_exhausted",
                              "message_abandoned",
                              "superseded_before_delivery",
                              "heartbeat_disabled",
                              "monitor_deleted"
                            ],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      },
                      "nextAttemptAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "redeliverable": { "type": "boolean" },
                      "remediation": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "state": {
                        "enum": [
                          "pending_enqueue",
                          "pending",
                          "claimed",
                          "succeeded",
                          "retrying",
                          "failed_terminal",
                          "outcome_unknown",
                          "dead_lettered"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "attempts",
                      "attemptsRemaining",
                      "eventId",
                      "incidentId",
                      "intentId",
                      "remediation",
                      "state",
                      "redeliverable"
                    ],
                    "type": "object"
                  },
                  "replayed": { "type": "boolean" }
                },
                "required": ["delivery", "replayed"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpRedeliverIncidentCallbackResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRedeliverIncidentCallbackResultSchema"
      },
      "McpRemoveCallbackEndpointInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "endpointId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["endpointId", "expectedGeneration"],
        "title": "McpRemoveCallbackEndpointInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRemoveCallbackEndpointInputSchema"
      },
      "McpRemoveCallbackEndpointResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "endpoint": {
                    "properties": {
                      "alias": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "createdAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "disabledAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "generation": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "isOrganizationDefault": { "type": "boolean" },
                      "kind": {
                        "default": "webhook",
                        "enum": [
                          "webhook",
                          "whooshbang_subscriber",
                          "whooshbang_group"
                        ],
                        "type": "string"
                      },
                      "lifecycle": {
                        "enum": ["active", "disabled"],
                        "type": "string"
                      },
                      "projectId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "secret": {
                        "additionalProperties": false,
                        "properties": {
                          "issuedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "overlapEndsAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "previousVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          }
                        },
                        "required": ["version", "issuedAt"],
                        "type": "object"
                      },
                      "updatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "url": {
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      },
                      "whooshbang": {
                        "additionalProperties": false,
                        "properties": {
                          "actorId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "type": "string"
                          },
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "actorId",
                          "contractVersion",
                          "notifierId"
                        ],
                        "type": "object"
                      },
                      "whooshbangGroup": {
                        "additionalProperties": false,
                        "properties": {
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": ["contractVersion", "notifierId"],
                        "type": "object"
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "alias",
                      "lifecycle",
                      "isOrganizationDefault",
                      "generation",
                      "createdAt",
                      "updatedAt"
                    ],
                    "type": "object"
                  },
                  "removedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  }
                },
                "required": ["endpoint", "removedAt"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpRemoveCallbackEndpointResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRemoveCallbackEndpointResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The endpoint preserves its lifecycle, default, and rotation-overlap refinements.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpRenameProjectInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "expectedVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "required": ["name"],
        "title": "McpRenameProjectInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRenameProjectInputSchema",
        "x-signalsitter-source-only-refinements": [
          "A name may not be blank once surrounding whitespace is removed."
        ]
      },
      "McpRenameProjectResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "lifecycle": {
                    "enum": ["active", "archived"],
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 120,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "projectId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  }
                },
                "required": [
                  "createdAt",
                  "lifecycle",
                  "name",
                  "projectId",
                  "version"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpRenameProjectResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRenameProjectResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The project preserves its name refinement.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpReplayAnomaliesInput": {
        "additionalProperties": false,
        "properties": {
          "historyLimit": { "maximum": 200, "minimum": 1, "type": "integer" },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "patch": {
            "additionalProperties": false,
            "properties": {
              "callback": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "disabled", "type": "string" }
                    },
                    "required": ["kind"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "organization_default",
                        "type": "string"
                      }
                    },
                    "required": ["kind"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "alias": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "kind": { "const": "named", "type": "string" }
                    },
                    "required": ["kind", "alias"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "inline", "type": "string" },
                      "url": {
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      }
                    },
                    "required": ["kind", "url"],
                    "type": "object"
                  }
                ]
              },
              "graceSeconds": {
                "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                "maximum": 604800,
                "minimum": 0,
                "type": "integer"
              },
              "heartbeatExpectation": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "graceSeconds": {
                        "default": 60,
                        "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "intervalSeconds": {
                        "maximum": 31536000,
                        "minimum": 60,
                        "type": "integer"
                      },
                      "state": { "const": "enabled", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["intervalSeconds", "state", "version"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "state": { "const": "disabled", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["state", "version"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "graceSeconds": {
                        "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "state": { "const": "automatic", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["state", "version"],
                    "type": "object"
                  }
                ]
              },
              "incidentPolicy": {
                "additionalProperties": false,
                "properties": {
                  "anomalySensitivity": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "notificationCooldownSeconds": {
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "recoveryConfirmationBeats": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "regimeChangeMode": {
                    "enum": ["manual", "automatic"],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "intervalSeconds": {
                "maximum": 31536000,
                "minimum": 60,
                "type": "integer"
              },
              "measurements": {
                "additionalProperties": {
                  "additionalProperties": false,
                  "properties": {
                    "disabledRules": {
                      "items": {
                        "enum": [
                          "minimum",
                          "maximum",
                          "zero",
                          "nonzero",
                          "absolute_delta",
                          "percentage_delta",
                          "ratio_minimum",
                          "ratio_maximum"
                        ],
                        "type": "string"
                      },
                      "maxItems": 8,
                      "type": "array"
                    },
                    "maximum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    },
                    "maximumAbsoluteDelta": {
                      "anyOf": [
                        { "minimum": 0, "type": "number" },
                        { "type": "null" }
                      ]
                    },
                    "maximumPercentageDelta": {
                      "anyOf": [
                        { "minimum": 0, "type": "number" },
                        { "type": "null" }
                      ]
                    },
                    "metricType": {
                      "enum": [
                        "gauge",
                        "count",
                        "rate",
                        "duration",
                        "counter",
                        "size"
                      ],
                      "type": "string"
                    },
                    "minimum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    },
                    "missingPolicy": {
                      "enum": ["skip", "zero", "reject"],
                      "type": "string"
                    },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    },
                    "ratio": {
                      "additionalProperties": false,
                      "properties": {
                        "denominator": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maximum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        },
                        "minimum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        }
                      },
                      "type": "object"
                    },
                    "ruleAction": {
                      "additionalProperties": false,
                      "properties": {
                        "mode": {
                          "enum": ["inactive", "active"],
                          "type": "string"
                        },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["mode", "version"],
                      "type": "object"
                    },
                    "rulePolicy": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "consecutiveObservations": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "sustainedConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "sustainedCriterion": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "observations",
                                      "type": "string"
                                    },
                                    "observations": {
                                      "maximum": 10,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "observations"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "elapsed_time",
                                      "type": "string"
                                    },
                                    "seconds": {
                                      "maximum": 604800,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "seconds"],
                                  "type": "object"
                                }
                              ]
                            },
                            "transientConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["version"],
                          "type": "object"
                        }
                      ]
                    },
                    "sensitivity": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "zeroExpectation": {
                      "anyOf": [
                        { "enum": ["zero", "nonzero"], "type": "string" },
                        { "type": "null" }
                      ]
                    }
                  },
                  "type": "object"
                },
                "propertyNames": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "type": "object"
              },
              "name": {
                "maxLength": 120,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "timeZone": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "required": ["monitorId"],
        "title": "McpReplayAnomaliesInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpReplayAnomaliesInputSchema"
      },
      "McpReplayAnomaliesResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "baseConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "candidateEpisodeCount": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "cost": {
                    "additionalProperties": false,
                    "properties": {
                      "detectorEvaluations": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "durationMilliseconds": {
                        "minimum": 0,
                        "type": "number"
                      },
                      "meanMicrosecondsPerObservation": {
                        "minimum": 0,
                        "type": "number"
                      },
                      "measurementEvaluations": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "observationsEvaluated": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "detectorEvaluations",
                      "durationMilliseconds",
                      "meanMicrosecondsPerObservation",
                      "measurementEvaluations",
                      "observationsEvaluated"
                    ],
                    "type": "object"
                  },
                  "diff": {
                    "additionalProperties": false,
                    "properties": {
                      "addedEpisodes": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "observationsInEpisode": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "openedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "openedAtSequence": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "recoveredAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "recoveredAtSequence": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            },
                            "triggers": {
                              "items": {
                                "enum": [
                                  "explicit_rule",
                                  "extreme_deviation",
                                  "moderate_confirmation",
                                  "persistent_shift"
                                ],
                                "type": "string"
                              },
                              "maxItems": 4,
                              "minItems": 1,
                              "type": "array"
                            }
                          },
                          "required": [
                            "explanation",
                            "observationsInEpisode",
                            "openedAt",
                            "openedAtSequence",
                            "severity",
                            "triggers"
                          ],
                          "type": "object"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "matchedEpisodes": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "recordedEpisodeCount": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "recordedObservations": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "removedEpisodes": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "observationsInEpisode": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "openedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "openedAtSequence": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "recoveredAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "recoveredAtSequence": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            },
                            "triggers": {
                              "items": {
                                "enum": [
                                  "explicit_rule",
                                  "extreme_deviation",
                                  "moderate_confirmation",
                                  "persistent_shift"
                                ],
                                "type": "string"
                              },
                              "maxItems": 4,
                              "minItems": 1,
                              "type": "array"
                            }
                          },
                          "required": [
                            "explanation",
                            "observationsInEpisode",
                            "openedAt",
                            "openedAtSequence",
                            "severity",
                            "triggers"
                          ],
                          "type": "object"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "truncated": { "type": "boolean" }
                    },
                    "required": [
                      "addedEpisodes",
                      "matchedEpisodes",
                      "recordedEpisodeCount",
                      "recordedObservations",
                      "removedEpisodes",
                      "truncated"
                    ],
                    "type": "object"
                  },
                  "evaluatedObservations": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "fromSequence": {
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "inputSummary": {
                    "additionalProperties": false,
                    "properties": {
                      "evaluatedMeasurementKeys": {
                        "items": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "numericObservationCount": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "policyActive": { "type": "boolean" },
                      "publishedMeasurementKeyCount": {
                        "maximum": 3200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "publishedMeasurementKeys": {
                        "items": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "selectedMeasurementKeys": {
                        "items": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maxItems": 32,
                        "type": "array"
                      }
                    },
                    "required": [
                      "evaluatedMeasurementKeys",
                      "numericObservationCount",
                      "policyActive",
                      "publishedMeasurementKeyCount",
                      "publishedMeasurementKeys",
                      "selectedMeasurementKeys"
                    ],
                    "type": "object"
                  },
                  "proposedConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "release": {
                    "additionalProperties": false,
                    "properties": {
                      "engineVersions": {
                        "additionalProperties": false,
                        "properties": {
                          "adaptiveBaseline": {
                            "maximum": 999,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "explicitRule": {
                            "maximum": 999,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "incidentPolicy": {
                            "maximum": 999,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "persistentShift": {
                            "maximum": 999,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "seasonalBaseline": {
                            "maximum": 999,
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "adaptiveBaseline",
                          "explicitRule",
                          "incidentPolicy",
                          "persistentShift",
                          "seasonalBaseline"
                        ],
                        "type": "object"
                      },
                      "releaseId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[a-z0-9][a-z0-9-]*$",
                        "type": "string"
                      }
                    },
                    "required": ["engineVersions", "releaseId"],
                    "type": "object"
                  },
                  "replayedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "throughSequence": {
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "unavailableEvidence": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "evidence": {
                          "enum": [
                            "adaptive_baseline",
                            "explicit_rule",
                            "incident_policy",
                            "persistent_shift",
                            "seasonal_baseline"
                          ],
                          "type": "string"
                        },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "reason": {
                          "enum": ["engine_version", "unreadable"],
                          "type": "string"
                        },
                        "recordedEngineVersion": {
                          "maximum": 999,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": ["evidence", "explanation", "reason"],
                      "type": "object"
                    },
                    "maxItems": 5,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "baseConfigurationVersion",
                  "candidateEpisodeCount",
                  "cost",
                  "diff",
                  "evaluatedObservations",
                  "proposedConfigurationVersion",
                  "release",
                  "replayedAt"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpReplayAnomaliesResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpReplayAnomaliesResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Unavailable-evidence entries name each stored record at most once, carry this contract's own explanation for their reason, and state a recorded engine version exactly when the engine version is the reason and never the version this build runs.",
          "The embedded replay result applies its own window, cost, and diff consistency rules."
        ]
      },
      "McpReplayRuleWorkbenchInput": {
        "additionalProperties": false,
        "properties": {
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["expectedDraftVersion", "draftId", "monitorId"],
        "title": "McpReplayRuleWorkbenchInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpReplayRuleWorkbenchInputSchema"
      },
      "McpReplayRuleWorkbenchResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "activeEpisodeCount": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "activeEpisodes": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "observationsInEpisode": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "openedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "openedAtSequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "recoveredAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "recoveredAtSequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        },
                        "triggers": {
                          "items": {
                            "enum": [
                              "explicit_rule",
                              "extreme_deviation",
                              "moderate_confirmation",
                              "persistent_shift"
                            ],
                            "type": "string"
                          },
                          "maxItems": 4,
                          "minItems": 1,
                          "type": "array"
                        }
                      },
                      "required": [
                        "explanation",
                        "observationsInEpisode",
                        "openedAt",
                        "openedAtSequence",
                        "severity",
                        "triggers"
                      ],
                      "type": "object"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "baseConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "cost": {
                    "additionalProperties": false,
                    "properties": {
                      "detectorStageEvaluations": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "graphPointsReturned": {
                        "maximum": 200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "measurementEvaluations": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "observationsEvaluated": {
                        "maximum": 200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "ruleEvaluations": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "timelineEvaluations": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "detectorStageEvaluations",
                      "graphPointsReturned",
                      "measurementEvaluations",
                      "observationsEvaluated",
                      "ruleEvaluations",
                      "timelineEvaluations"
                    ],
                    "type": "object"
                  },
                  "diff": {
                    "additionalProperties": false,
                    "properties": {
                      "activeEpisodeCount": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "addedEpisodeCount": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "addedEpisodes": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "observationsInEpisode": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "openedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "openedAtSequence": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "recoveredAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "recoveredAtSequence": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            },
                            "triggers": {
                              "items": {
                                "enum": [
                                  "explicit_rule",
                                  "extreme_deviation",
                                  "moderate_confirmation",
                                  "persistent_shift"
                                ],
                                "type": "string"
                              },
                              "maxItems": 4,
                              "minItems": 1,
                              "type": "array"
                            }
                          },
                          "required": [
                            "explanation",
                            "observationsInEpisode",
                            "openedAt",
                            "openedAtSequence",
                            "severity",
                            "triggers"
                          ],
                          "type": "object"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "changedEpisodeCount": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "changedEpisodes": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "active": {
                              "additionalProperties": false,
                              "properties": {
                                "explanation": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "observationsInEpisode": {
                                  "maximum": 9007199254740991,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "openedAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "openedAtSequence": {
                                  "maximum": 9007199254740991,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "recoveredAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "recoveredAtSequence": {
                                  "maximum": 9007199254740991,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                },
                                "triggers": {
                                  "items": {
                                    "enum": [
                                      "explicit_rule",
                                      "extreme_deviation",
                                      "moderate_confirmation",
                                      "persistent_shift"
                                    ],
                                    "type": "string"
                                  },
                                  "maxItems": 4,
                                  "minItems": 1,
                                  "type": "array"
                                }
                              },
                              "required": [
                                "explanation",
                                "observationsInEpisode",
                                "openedAt",
                                "openedAtSequence",
                                "severity",
                                "triggers"
                              ],
                              "type": "object"
                            },
                            "changes": {
                              "items": {
                                "enum": [
                                  "opened_at",
                                  "recovered_at",
                                  "severity",
                                  "triggers"
                                ],
                                "type": "string"
                              },
                              "maxItems": 4,
                              "minItems": 1,
                              "type": "array"
                            },
                            "proposed": {
                              "additionalProperties": false,
                              "properties": {
                                "explanation": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "observationsInEpisode": {
                                  "maximum": 9007199254740991,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "openedAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "openedAtSequence": {
                                  "maximum": 9007199254740991,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "recoveredAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "recoveredAtSequence": {
                                  "maximum": 9007199254740991,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                },
                                "triggers": {
                                  "items": {
                                    "enum": [
                                      "explicit_rule",
                                      "extreme_deviation",
                                      "moderate_confirmation",
                                      "persistent_shift"
                                    ],
                                    "type": "string"
                                  },
                                  "maxItems": 4,
                                  "minItems": 1,
                                  "type": "array"
                                }
                              },
                              "required": [
                                "explanation",
                                "observationsInEpisode",
                                "openedAt",
                                "openedAtSequence",
                                "severity",
                                "triggers"
                              ],
                              "type": "object"
                            }
                          },
                          "required": ["active", "changes", "proposed"],
                          "type": "object"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "proposedEpisodeCount": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "removedEpisodeCount": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "removedEpisodes": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "observationsInEpisode": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "openedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "openedAtSequence": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "recoveredAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "recoveredAtSequence": {
                              "maximum": 9007199254740991,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            },
                            "triggers": {
                              "items": {
                                "enum": [
                                  "explicit_rule",
                                  "extreme_deviation",
                                  "moderate_confirmation",
                                  "persistent_shift"
                                ],
                                "type": "string"
                              },
                              "maxItems": 4,
                              "minItems": 1,
                              "type": "array"
                            }
                          },
                          "required": [
                            "explanation",
                            "observationsInEpisode",
                            "openedAt",
                            "openedAtSequence",
                            "severity",
                            "triggers"
                          ],
                          "type": "object"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "truncated": { "type": "boolean" },
                      "unchangedEpisodes": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "activeEpisodeCount",
                      "addedEpisodeCount",
                      "addedEpisodes",
                      "changedEpisodeCount",
                      "changedEpisodes",
                      "proposedEpisodeCount",
                      "removedEpisodeCount",
                      "removedEpisodes",
                      "truncated",
                      "unchangedEpisodes"
                    ],
                    "type": "object"
                  },
                  "draftId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "draftVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "episodesTruncated": { "type": "boolean" },
                  "history": {
                    "additionalProperties": false,
                    "properties": {
                      "fromSequence": {
                        "maximum": 9007199254740991,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "frozenAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "observationCount": {
                        "maximum": 200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "throughSequence": {
                        "maximum": 9007199254740991,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": ["frozenAt", "observationCount"],
                    "type": "object"
                  },
                  "measurementKey": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  },
                  "overlays": {
                    "additionalProperties": false,
                    "properties": {
                      "linearTrend": {
                        "additionalProperties": false,
                        "properties": {
                          "points": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "observedAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "sequence": {
                                  "maximum": 9007199254740991,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "value": { "type": "number" }
                              },
                              "required": ["observedAt", "sequence", "value"],
                              "type": "object"
                            },
                            "maxItems": 200,
                            "type": "array"
                          },
                          "readiness": {
                            "enum": ["insufficient_samples", "ready"],
                            "type": "string"
                          },
                          "slopePerSecond": { "type": "number" }
                        },
                        "required": ["points", "readiness"],
                        "type": "object"
                      },
                      "smoothedAverage": {
                        "additionalProperties": false,
                        "properties": {
                          "halfLifeSeconds": {
                            "exclusiveMinimum": 0,
                            "type": "number"
                          },
                          "points": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "observedAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "sequence": {
                                  "maximum": 9007199254740991,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "value": { "type": "number" }
                              },
                              "required": ["observedAt", "sequence", "value"],
                              "type": "object"
                            },
                            "maxItems": 200,
                            "type": "array"
                          },
                          "readiness": {
                            "enum": ["insufficient_samples", "ready"],
                            "type": "string"
                          }
                        },
                        "required": ["points", "readiness"],
                        "type": "object"
                      }
                    },
                    "required": ["linearTrend", "smoothedAverage"],
                    "type": "object"
                  },
                  "points": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "active": {
                          "additionalProperties": false,
                          "properties": {
                            "incident": {
                              "additionalProperties": false,
                              "properties": {
                                "explanation": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "outcome": {
                                  "enum": [
                                    "confirming",
                                    "incident_opened",
                                    "incident_sustained",
                                    "recovery_pending",
                                    "recovery_confirmed"
                                  ],
                                  "type": "string"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                },
                                "triggers": {
                                  "items": {
                                    "enum": [
                                      "explicit_rule",
                                      "extreme_deviation",
                                      "moderate_confirmation",
                                      "persistent_shift"
                                    ],
                                    "type": "string"
                                  },
                                  "maxItems": 4,
                                  "type": "array"
                                }
                              },
                              "required": [
                                "explanation",
                                "outcome",
                                "severity",
                                "triggers"
                              ],
                              "type": "object"
                            },
                            "measurement": {
                              "additionalProperties": false,
                              "properties": {
                                "status": {
                                  "enum": [
                                    "value",
                                    "counter_baseline",
                                    "counter_reset",
                                    "missing_skipped",
                                    "missing_zero",
                                    "unconfigured"
                                  ],
                                  "type": "string"
                                },
                                "value": { "type": "number" }
                              },
                              "required": ["status"],
                              "type": "object"
                            },
                            "ruleEvaluations": {
                              "items": {
                                "properties": {
                                  "actionable": { "type": "boolean" },
                                  "breach": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "consequence": {
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      },
                                      "justBecameSustained": {
                                        "type": "boolean"
                                      },
                                      "phase": {
                                        "enum": [
                                          "clear",
                                          "transient",
                                          "sustained"
                                        ],
                                        "type": "string"
                                      },
                                      "progress": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "elapsedSeconds": {
                                            "maximum": 604800,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "qualifyingObservations": {
                                            "maximum": 10,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "remaining": {
                                            "maximum": 604800,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "startedAt": {
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "elapsedSeconds",
                                          "qualifyingObservations",
                                          "remaining"
                                        ],
                                        "type": "object"
                                      },
                                      "sustainedConsequence": {
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      },
                                      "sustainedCriterion": {
                                        "oneOf": [
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "kind": {
                                                "const": "observations",
                                                "type": "string"
                                              },
                                              "observations": {
                                                "maximum": 10,
                                                "minimum": 1,
                                                "type": "integer"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "observations"
                                            ],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "kind": {
                                                "const": "elapsed_time",
                                                "type": "string"
                                              },
                                              "seconds": {
                                                "maximum": 604800,
                                                "minimum": 1,
                                                "type": "integer"
                                              }
                                            },
                                            "required": ["kind", "seconds"],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "transientConsequence": {
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "consequence",
                                      "justBecameSustained",
                                      "phase",
                                      "progress",
                                      "sustainedConsequence",
                                      "sustainedCriterion",
                                      "transientConsequence"
                                    ],
                                    "type": "object"
                                  },
                                  "comparison": {
                                    "enum": [
                                      "at_least",
                                      "at_most",
                                      "equal",
                                      "not_equal"
                                    ],
                                    "type": "string"
                                  },
                                  "computedValue": { "type": "number" },
                                  "denominatorMeasurementKey": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  },
                                  "kind": {
                                    "enum": [
                                      "minimum",
                                      "maximum",
                                      "zero",
                                      "nonzero",
                                      "absolute_delta",
                                      "percentage_delta",
                                      "ratio_minimum",
                                      "ratio_maximum"
                                    ],
                                    "type": "string"
                                  },
                                  "notEvaluatedReason": {
                                    "enum": [
                                      "measurement_missing",
                                      "counter_baseline",
                                      "counter_reset",
                                      "previous_value_missing",
                                      "previous_value_zero",
                                      "ratio_denominator_missing",
                                      "ratio_denominator_zero",
                                      "numeric_overflow"
                                    ],
                                    "type": "string"
                                  },
                                  "referenceValue": { "type": "number" },
                                  "ruleId": {
                                    "maxLength": 160,
                                    "minLength": 3,
                                    "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                                    "type": "string"
                                  },
                                  "severity": {
                                    "enum": ["info", "warning", "critical"],
                                    "type": "string"
                                  },
                                  "status": {
                                    "enum": [
                                      "passed",
                                      "violated",
                                      "not_evaluated"
                                    ],
                                    "type": "string"
                                  },
                                  "threshold": { "type": "number" }
                                },
                                "required": [
                                  "actionable",
                                  "comparison",
                                  "kind",
                                  "ruleId",
                                  "severity",
                                  "status",
                                  "threshold"
                                ],
                                "type": "object"
                              },
                              "maxItems": 32,
                              "type": "array"
                            }
                          },
                          "required": ["measurement", "ruleEvaluations"],
                          "type": "object"
                        },
                        "observedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "proposed": {
                          "additionalProperties": false,
                          "properties": {
                            "incident": {
                              "additionalProperties": false,
                              "properties": {
                                "explanation": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "outcome": {
                                  "enum": [
                                    "confirming",
                                    "incident_opened",
                                    "incident_sustained",
                                    "recovery_pending",
                                    "recovery_confirmed"
                                  ],
                                  "type": "string"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                },
                                "triggers": {
                                  "items": {
                                    "enum": [
                                      "explicit_rule",
                                      "extreme_deviation",
                                      "moderate_confirmation",
                                      "persistent_shift"
                                    ],
                                    "type": "string"
                                  },
                                  "maxItems": 4,
                                  "type": "array"
                                }
                              },
                              "required": [
                                "explanation",
                                "outcome",
                                "severity",
                                "triggers"
                              ],
                              "type": "object"
                            },
                            "measurement": {
                              "additionalProperties": false,
                              "properties": {
                                "status": {
                                  "enum": [
                                    "value",
                                    "counter_baseline",
                                    "counter_reset",
                                    "missing_skipped",
                                    "missing_zero",
                                    "unconfigured"
                                  ],
                                  "type": "string"
                                },
                                "value": { "type": "number" }
                              },
                              "required": ["status"],
                              "type": "object"
                            },
                            "ruleEvaluations": {
                              "items": {
                                "properties": {
                                  "actionable": { "type": "boolean" },
                                  "breach": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "consequence": {
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      },
                                      "justBecameSustained": {
                                        "type": "boolean"
                                      },
                                      "phase": {
                                        "enum": [
                                          "clear",
                                          "transient",
                                          "sustained"
                                        ],
                                        "type": "string"
                                      },
                                      "progress": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "elapsedSeconds": {
                                            "maximum": 604800,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "qualifyingObservations": {
                                            "maximum": 10,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "remaining": {
                                            "maximum": 604800,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "startedAt": {
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "elapsedSeconds",
                                          "qualifyingObservations",
                                          "remaining"
                                        ],
                                        "type": "object"
                                      },
                                      "sustainedConsequence": {
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      },
                                      "sustainedCriterion": {
                                        "oneOf": [
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "kind": {
                                                "const": "observations",
                                                "type": "string"
                                              },
                                              "observations": {
                                                "maximum": 10,
                                                "minimum": 1,
                                                "type": "integer"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "observations"
                                            ],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "kind": {
                                                "const": "elapsed_time",
                                                "type": "string"
                                              },
                                              "seconds": {
                                                "maximum": 604800,
                                                "minimum": 1,
                                                "type": "integer"
                                              }
                                            },
                                            "required": ["kind", "seconds"],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "transientConsequence": {
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "consequence",
                                      "justBecameSustained",
                                      "phase",
                                      "progress",
                                      "sustainedConsequence",
                                      "sustainedCriterion",
                                      "transientConsequence"
                                    ],
                                    "type": "object"
                                  },
                                  "comparison": {
                                    "enum": [
                                      "at_least",
                                      "at_most",
                                      "equal",
                                      "not_equal"
                                    ],
                                    "type": "string"
                                  },
                                  "computedValue": { "type": "number" },
                                  "denominatorMeasurementKey": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  },
                                  "kind": {
                                    "enum": [
                                      "minimum",
                                      "maximum",
                                      "zero",
                                      "nonzero",
                                      "absolute_delta",
                                      "percentage_delta",
                                      "ratio_minimum",
                                      "ratio_maximum"
                                    ],
                                    "type": "string"
                                  },
                                  "notEvaluatedReason": {
                                    "enum": [
                                      "measurement_missing",
                                      "counter_baseline",
                                      "counter_reset",
                                      "previous_value_missing",
                                      "previous_value_zero",
                                      "ratio_denominator_missing",
                                      "ratio_denominator_zero",
                                      "numeric_overflow"
                                    ],
                                    "type": "string"
                                  },
                                  "referenceValue": { "type": "number" },
                                  "ruleId": {
                                    "maxLength": 160,
                                    "minLength": 3,
                                    "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                                    "type": "string"
                                  },
                                  "severity": {
                                    "enum": ["info", "warning", "critical"],
                                    "type": "string"
                                  },
                                  "status": {
                                    "enum": [
                                      "passed",
                                      "violated",
                                      "not_evaluated"
                                    ],
                                    "type": "string"
                                  },
                                  "threshold": { "type": "number" }
                                },
                                "required": [
                                  "actionable",
                                  "comparison",
                                  "kind",
                                  "ruleId",
                                  "severity",
                                  "status",
                                  "threshold"
                                ],
                                "type": "object"
                              },
                              "maxItems": 32,
                              "type": "array"
                            }
                          },
                          "required": ["measurement", "ruleEvaluations"],
                          "type": "object"
                        },
                        "sequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "active",
                        "observedAt",
                        "proposed",
                        "sequence"
                      ],
                      "type": "object"
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "proposedEpisodeCount": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "proposedEpisodes": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "observationsInEpisode": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "openedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "openedAtSequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "recoveredAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "recoveredAtSequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        },
                        "triggers": {
                          "items": {
                            "enum": [
                              "explicit_rule",
                              "extreme_deviation",
                              "moderate_confirmation",
                              "persistent_shift"
                            ],
                            "type": "string"
                          },
                          "maxItems": 4,
                          "minItems": 1,
                          "type": "array"
                        }
                      },
                      "required": [
                        "explanation",
                        "observationsInEpisode",
                        "openedAt",
                        "openedAtSequence",
                        "severity",
                        "triggers"
                      ],
                      "type": "object"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "replayedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "sampling": {
                    "additionalProperties": false,
                    "properties": {
                      "explanation": {
                        "maxLength": 512,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "mode": { "enum": ["none", "uniform"], "type": "string" },
                      "omittedPointCount": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "preservedIncidentMarkerCount": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "returnedPointCount": {
                        "maximum": 200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "sourcePointCount": {
                        "maximum": 200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "totalIncidentMarkerCount": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "explanation",
                      "mode",
                      "omittedPointCount",
                      "preservedIncidentMarkerCount",
                      "returnedPointCount",
                      "sourcePointCount",
                      "totalIncidentMarkerCount"
                    ],
                    "type": "object"
                  },
                  "statistics": {
                    "additionalProperties": false,
                    "properties": {
                      "coveredTimeSeconds": { "minimum": 0, "type": "number" },
                      "currentValue": { "type": "number" },
                      "gapCount": {
                        "maximum": 200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "maximum": { "type": "number" },
                      "mean": { "type": "number" },
                      "minimum": { "type": "number" },
                      "readiness": {
                        "enum": ["empty", "ready"],
                        "type": "string"
                      },
                      "sampleCount": {
                        "maximum": 200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "standardDeviation": { "minimum": 0, "type": "number" }
                    },
                    "required": [
                      "coveredTimeSeconds",
                      "gapCount",
                      "readiness",
                      "sampleCount"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "activeEpisodeCount",
                  "activeEpisodes",
                  "baseConfigurationVersion",
                  "cost",
                  "diff",
                  "draftId",
                  "draftVersion",
                  "episodesTruncated",
                  "history",
                  "measurementKey",
                  "points",
                  "proposedEpisodeCount",
                  "proposedEpisodes",
                  "replayedAt",
                  "sampling"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpReplayRuleWorkbenchResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpReplayRuleWorkbenchResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Replay timeline, diff, frozen-history, graph, sampling, and deterministic cost counts agree, and any episode truncation is disclosed.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpRevokeCredentialInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "credentialId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["credentialId", "expectedGeneration"],
        "title": "McpRevokeCredentialInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRevokeCredentialInputSchema"
      },
      "McpRevokeCredentialResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "expiresAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "generation": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "label": {
                    "maxLength": 100,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "lastUsedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "prefix": {
                    "pattern": "^sig_v1_[A-Za-z0-9_-]{16}$",
                    "type": "string"
                  },
                  "preset": {
                    "enum": ["read", "write", "readwrite", "manage"],
                    "type": "string"
                  },
                  "projectId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "revokedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "rotatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "scopes": {
                    "items": {
                      "enum": [
                        "callbacks:read",
                        "callbacks:write",
                        "credentials:write",
                        "incidents:read",
                        "incidents:write",
                        "monitors:read",
                        "monitors:write",
                        "observations:read",
                        "organization:write",
                        "organization:destroy",
                        "projects:read",
                        "projects:write",
                        "projects:administer",
                        "usage:read"
                      ],
                      "type": "string"
                    },
                    "maxItems": 14,
                    "minItems": 1,
                    "type": "array"
                  },
                  "state": { "enum": ["active", "revoked"], "type": "string" }
                },
                "required": [
                  "id",
                  "projectId",
                  "label",
                  "prefix",
                  "preset",
                  "scopes",
                  "state",
                  "generation",
                  "createdAt"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpRevokeCredentialResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRevokeCredentialResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Successful credential metadata preserves preset/scope and lifecycle refinements."
        ]
      },
      "McpRotateCallbackSecretInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "endpointId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "overlapSeconds": {
            "default": 300,
            "maximum": 900,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": ["endpointId", "expectedGeneration", "idempotencyKey"],
        "title": "McpRotateCallbackSecretInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRotateCallbackSecretInputSchema"
      },
      "McpRotateCallbackSecretResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "endpoint": {
                    "properties": {
                      "alias": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "createdAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "disabledAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "generation": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "isOrganizationDefault": { "type": "boolean" },
                      "kind": {
                        "default": "webhook",
                        "enum": [
                          "webhook",
                          "whooshbang_subscriber",
                          "whooshbang_group"
                        ],
                        "type": "string"
                      },
                      "lifecycle": {
                        "enum": ["active", "disabled"],
                        "type": "string"
                      },
                      "projectId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "secret": {
                        "additionalProperties": false,
                        "properties": {
                          "issuedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "overlapEndsAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "previousVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          }
                        },
                        "required": ["version", "issuedAt"],
                        "type": "object"
                      },
                      "updatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "url": {
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      },
                      "whooshbang": {
                        "additionalProperties": false,
                        "properties": {
                          "actorId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "type": "string"
                          },
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "actorId",
                          "contractVersion",
                          "notifierId"
                        ],
                        "type": "object"
                      },
                      "whooshbangGroup": {
                        "additionalProperties": false,
                        "properties": {
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": ["contractVersion", "notifierId"],
                        "type": "object"
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "alias",
                      "lifecycle",
                      "isOrganizationDefault",
                      "generation",
                      "createdAt",
                      "updatedAt"
                    ],
                    "type": "object"
                  },
                  "replayed": { "type": "boolean" },
                  "signingSecret": {
                    "properties": {
                      "onlyShownOnce": { "const": true, "type": "boolean" },
                      "overlapEndsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "previousVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      },
                      "revealedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "secret": {
                        "pattern": "^sigcb_v1_[A-Za-z0-9_-]{43}$",
                        "type": "string"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "secret",
                      "revealedAt",
                      "onlyShownOnce",
                      "version"
                    ],
                    "type": "object"
                  }
                },
                "required": ["endpoint", "replayed"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpRotateCallbackSecretResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRotateCallbackSecretResultSchema",
        "x-signalsitter-source-only-refinements": [
          "A newly issued signing secret is revealed once, and only for a webhook destination; an idempotent replay and a destination this product issues no secret for reveal none.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpRotateCredentialInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "credentialId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "expiresAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              { "type": "null" }
            ]
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "overlapSeconds": {
            "default": 300,
            "maximum": 900,
            "minimum": 0,
            "type": "integer"
          },
          "preset": {
            "enum": ["read", "write", "readwrite", "manage"],
            "type": "string"
          }
        },
        "required": ["credentialId", "expectedGeneration", "idempotencyKey"],
        "title": "McpRotateCredentialInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRotateCredentialInputSchema"
      },
      "McpRotateCredentialResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "credential": {
                    "properties": {
                      "createdAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "expiresAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "generation": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "label": {
                        "maxLength": 100,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "lastUsedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "prefix": {
                        "pattern": "^sig_v1_[A-Za-z0-9_-]{16}$",
                        "type": "string"
                      },
                      "preset": {
                        "enum": ["read", "write", "readwrite", "manage"],
                        "type": "string"
                      },
                      "projectId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "revokedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "rotatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "scopes": {
                        "items": {
                          "enum": [
                            "callbacks:read",
                            "callbacks:write",
                            "credentials:write",
                            "incidents:read",
                            "incidents:write",
                            "monitors:read",
                            "monitors:write",
                            "observations:read",
                            "organization:write",
                            "organization:destroy",
                            "projects:read",
                            "projects:write",
                            "projects:administer",
                            "usage:read"
                          ],
                          "type": "string"
                        },
                        "maxItems": 14,
                        "minItems": 1,
                        "type": "array"
                      },
                      "state": {
                        "enum": ["active", "revoked"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "label",
                      "prefix",
                      "preset",
                      "scopes",
                      "state",
                      "generation",
                      "createdAt"
                    ],
                    "type": "object"
                  },
                  "replayed": { "type": "boolean" },
                  "secret": {
                    "properties": {
                      "onlyShownOnce": { "const": true, "type": "boolean" },
                      "revealedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "secret": {
                        "maxLength": 2048,
                        "pattern": "^sig_v1_[A-Za-z0-9_-]{16}\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]{43}\\.[A-Za-z0-9_-]{43}$",
                        "type": "string"
                      }
                    },
                    "required": ["secret", "revealedAt", "onlyShownOnce"],
                    "type": "object"
                  }
                },
                "required": ["credential", "replayed"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpRotateCredentialResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpRotateCredentialResultSchema",
        "x-signalsitter-source-only-refinements": [
          "A successful rotation reveals one secret while an idempotent replay reveals none."
        ]
      },
      "McpSetCallbackDefaultInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "endpointId": {
            "anyOf": [
              {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              { "type": "null" }
            ]
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["endpointId", "idempotencyKey"],
        "title": "McpSetCallbackDefaultInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpSetCallbackDefaultInputSchema"
      },
      "McpSetCallbackDefaultResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "endpoint": {
                    "properties": {
                      "alias": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "createdAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "disabledAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "generation": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "isOrganizationDefault": { "type": "boolean" },
                      "kind": {
                        "default": "webhook",
                        "enum": [
                          "webhook",
                          "whooshbang_subscriber",
                          "whooshbang_group"
                        ],
                        "type": "string"
                      },
                      "lifecycle": {
                        "enum": ["active", "disabled"],
                        "type": "string"
                      },
                      "projectId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "secret": {
                        "additionalProperties": false,
                        "properties": {
                          "issuedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "overlapEndsAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "previousVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          }
                        },
                        "required": ["version", "issuedAt"],
                        "type": "object"
                      },
                      "updatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "url": {
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      },
                      "whooshbang": {
                        "additionalProperties": false,
                        "properties": {
                          "actorId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "type": "string"
                          },
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "actorId",
                          "contractVersion",
                          "notifierId"
                        ],
                        "type": "object"
                      },
                      "whooshbangGroup": {
                        "additionalProperties": false,
                        "properties": {
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": ["contractVersion", "notifierId"],
                        "type": "object"
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "alias",
                      "lifecycle",
                      "isOrganizationDefault",
                      "generation",
                      "createdAt",
                      "updatedAt"
                    ],
                    "type": "object"
                  }
                },
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpSetCallbackDefaultResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpSetCallbackDefaultResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The endpoint preserves its lifecycle, default, and rotation-overlap refinements.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpSetDefaultJurisdictionInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          }
        },
        "required": ["jurisdiction"],
        "title": "McpSetDefaultJurisdictionInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpSetDefaultJurisdictionInputSchema"
      },
      "McpSetDefaultJurisdictionResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "available": {
                    "items": {
                      "enum": ["unrestricted", "eu", "us", "fedramp"],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  }
                },
                "required": ["available", "jurisdiction"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpSetDefaultJurisdictionResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpSetDefaultJurisdictionResultSchema"
      },
      "McpSetMonitorCallbackInput": {
        "additionalProperties": false,
        "properties": {
          "binding": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "disabled", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "organization_default", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": { "const": "named", "type": "string" }
                },
                "required": ["kind", "alias"],
                "type": "object"
              }
            ]
          },
          "confirm": { "type": "boolean" },
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["binding", "idempotencyKey", "monitorId"],
        "title": "McpSetMonitorCallbackInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpSetMonitorCallbackInputSchema",
        "x-signalsitter-source-only-refinements": [
          "Inline bindings must name a public HTTPS destination without credentials or fragments."
        ]
      },
      "McpSetMonitorCallbackResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "binding": {
                    "additionalProperties": false,
                    "properties": {
                      "binding": {
                        "oneOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": { "const": "disabled", "type": "string" }
                            },
                            "required": ["kind"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": {
                                "const": "organization_default",
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "alias": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                "type": "string"
                              },
                              "kind": { "const": "named", "type": "string" }
                            },
                            "required": ["kind", "alias"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": { "const": "inline", "type": "string" },
                              "url": {
                                "format": "uri",
                                "maxLength": 512,
                                "type": "string"
                              }
                            },
                            "required": ["kind", "url"],
                            "type": "object"
                          }
                        ]
                      },
                      "configurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "monitorKey": {
                        "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "resolution": {
                        "oneOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": { "const": "disabled", "type": "string" }
                            },
                            "required": ["kind"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "endpoint": {
                                "properties": {
                                  "alias": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                    "type": "string"
                                  },
                                  "createdAt": {
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  "disabledAt": {
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  "generation": {
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991,
                                    "type": "integer"
                                  },
                                  "id": {
                                    "maxLength": 128,
                                    "minLength": 1,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                    "type": "string"
                                  },
                                  "isOrganizationDefault": {
                                    "type": "boolean"
                                  },
                                  "kind": {
                                    "default": "webhook",
                                    "enum": [
                                      "webhook",
                                      "whooshbang_subscriber",
                                      "whooshbang_group"
                                    ],
                                    "type": "string"
                                  },
                                  "lifecycle": {
                                    "enum": ["active", "disabled"],
                                    "type": "string"
                                  },
                                  "projectId": {
                                    "maxLength": 128,
                                    "minLength": 1,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                    "type": "string"
                                  },
                                  "secret": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "issuedAt": {
                                        "format": "date-time",
                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                        "type": "string"
                                      },
                                      "overlapEndsAt": {
                                        "format": "date-time",
                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                        "type": "string"
                                      },
                                      "previousVersion": {
                                        "exclusiveMinimum": 0,
                                        "maximum": 65535,
                                        "type": "integer"
                                      },
                                      "version": {
                                        "exclusiveMinimum": 0,
                                        "maximum": 65535,
                                        "type": "integer"
                                      }
                                    },
                                    "required": ["version", "issuedAt"],
                                    "type": "object"
                                  },
                                  "updatedAt": {
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  "url": {
                                    "format": "uri",
                                    "maxLength": 512,
                                    "type": "string"
                                  },
                                  "whooshbang": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "actorId": {
                                        "maxLength": 128,
                                        "minLength": 1,
                                        "type": "string"
                                      },
                                      "contractVersion": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "type": "string"
                                      },
                                      "notifierId": {
                                        "maxLength": 128,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "actorId",
                                      "contractVersion",
                                      "notifierId"
                                    ],
                                    "type": "object"
                                  },
                                  "whooshbangGroup": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "contractVersion": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "type": "string"
                                      },
                                      "notifierId": {
                                        "maxLength": 128,
                                        "minLength": 1,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "contractVersion",
                                      "notifierId"
                                    ],
                                    "type": "object"
                                  }
                                },
                                "required": [
                                  "id",
                                  "projectId",
                                  "alias",
                                  "lifecycle",
                                  "isOrganizationDefault",
                                  "generation",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "type": "object"
                              },
                              "kind": { "const": "endpoint", "type": "string" }
                            },
                            "required": ["kind", "endpoint"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": { "const": "inline", "type": "string" },
                              "url": {
                                "format": "uri",
                                "maxLength": 512,
                                "type": "string"
                              }
                            },
                            "required": ["kind", "url"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": {
                                "const": "unresolved",
                                "type": "string"
                              },
                              "reason": {
                                "enum": [
                                  "no_organization_default",
                                  "alias_not_found",
                                  "endpoint_disabled",
                                  "endpoint_removed"
                                ],
                                "type": "string"
                              }
                            },
                            "required": ["kind", "reason"],
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "required": [
                      "monitorKey",
                      "binding",
                      "resolution",
                      "configurationVersion"
                    ],
                    "type": "object"
                  },
                  "replayed": { "type": "boolean" }
                },
                "required": ["binding", "replayed"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpSetMonitorCallbackResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpSetMonitorCallbackResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Inline bindings must name a public HTTPS destination without credentials or fragments.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpSubmitAnomalyFeedbackInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "incidentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "note": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "observationSequence": {
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          },
          "verdict": {
            "enum": ["accept_normal", "expected", "not_useful", "useful"],
            "type": "string"
          }
        },
        "required": ["verdict", "idempotencyKey", "incidentId", "monitorId"],
        "title": "McpSubmitAnomalyFeedbackInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpSubmitAnomalyFeedbackInputSchema"
      },
      "McpSubmitAnomalyFeedbackResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "actor": {
                    "properties": {
                      "display": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "kind": {
                        "anyOf": [
                          {
                            "enum": [
                              "human",
                              "api_credential",
                              "mcp_client",
                              "operator",
                              "system"
                            ],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["kind"],
                    "type": "object"
                  },
                  "configurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "feedbackId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "incidentId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "note": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "observationSequence": {
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "replayed": { "type": "boolean" },
                  "submittedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "verdict": {
                    "enum": [
                      "accept_normal",
                      "expected",
                      "not_useful",
                      "useful"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "actor",
                  "configurationVersion",
                  "feedbackId",
                  "incidentId",
                  "replayed",
                  "submittedAt",
                  "verdict"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpSubmitAnomalyFeedbackResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpSubmitAnomalyFeedbackResultSchema"
      },
      "McpTestCallbackEndpointInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "endpointId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["endpointId", "idempotencyKey"],
        "title": "McpTestCallbackEndpointInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpTestCallbackEndpointInputSchema"
      },
      "McpTestCallbackEndpointResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "attempt": {
                    "properties": {
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "occurredAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "outcome": {
                        "enum": ["succeeded", "failed"],
                        "type": "string"
                      },
                      "reason": {
                        "enum": [
                          "url_rejected",
                          "dns_unresolved",
                          "address_not_public",
                          "connection_failed",
                          "timed_out",
                          "redirect_refused",
                          "unexpected_status",
                          "response_too_large"
                        ],
                        "type": "string"
                      },
                      "responseStatus": {
                        "maximum": 599,
                        "minimum": 100,
                        "type": "integer"
                      }
                    },
                    "required": ["id", "occurredAt", "outcome"],
                    "type": "object"
                  },
                  "endpoint": {
                    "properties": {
                      "alias": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "createdAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "disabledAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "generation": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "isOrganizationDefault": { "type": "boolean" },
                      "kind": {
                        "default": "webhook",
                        "enum": [
                          "webhook",
                          "whooshbang_subscriber",
                          "whooshbang_group"
                        ],
                        "type": "string"
                      },
                      "lifecycle": {
                        "enum": ["active", "disabled"],
                        "type": "string"
                      },
                      "projectId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "secret": {
                        "additionalProperties": false,
                        "properties": {
                          "issuedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "overlapEndsAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "previousVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          }
                        },
                        "required": ["version", "issuedAt"],
                        "type": "object"
                      },
                      "updatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "url": {
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      },
                      "whooshbang": {
                        "additionalProperties": false,
                        "properties": {
                          "actorId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "type": "string"
                          },
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "actorId",
                          "contractVersion",
                          "notifierId"
                        ],
                        "type": "object"
                      },
                      "whooshbangGroup": {
                        "additionalProperties": false,
                        "properties": {
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": ["contractVersion", "notifierId"],
                        "type": "object"
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "alias",
                      "lifecycle",
                      "isOrganizationDefault",
                      "generation",
                      "createdAt",
                      "updatedAt"
                    ],
                    "type": "object"
                  },
                  "replayed": { "type": "boolean" }
                },
                "required": ["endpoint", "attempt", "replayed"],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpTestCallbackEndpointResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpTestCallbackEndpointResultSchema",
        "x-signalsitter-source-only-refinements": [
          "A failed test delivery states exactly one reason.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpTestMonitorBeatInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "observation": {
            "anyOf": [
              { "type": "number" },
              {
                "additionalProperties": {
                  "anyOf": [
                    { "type": "number" },
                    {
                      "anyOf": [
                        { "type": "boolean" },
                        { "type": "null" },
                        {
                          "maxLength": 256,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        }
                      ]
                    }
                  ]
                },
                "propertyNames": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "type": "object"
              }
            ]
          },
          "ruleHistoryPreview": {
            "additionalProperties": false,
            "properties": {
              "historyLimit": {
                "default": 10,
                "maximum": 10,
                "minimum": 1,
                "type": "integer"
              },
              "patch": {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "heartbeatExpectation": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "graceSeconds": {
                            "default": 60,
                            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                            "maximum": 604800,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "intervalSeconds": {
                            "maximum": 31536000,
                            "minimum": 60,
                            "type": "integer"
                          },
                          "state": { "const": "enabled", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["intervalSeconds", "state", "version"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "state": { "const": "disabled", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["state", "version"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "graceSeconds": {
                            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                            "maximum": 604800,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "state": { "const": "automatic", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["state", "version"],
                        "type": "object"
                      }
                    ]
                  },
                  "incidentPolicy": {
                    "additionalProperties": false,
                    "properties": {
                      "anomalySensitivity": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "notificationCooldownSeconds": {
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "recoveryConfirmationBeats": {
                        "maximum": 10,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "regimeChangeMode": {
                        "enum": ["manual", "automatic"],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "intervalSeconds": {
                    "maximum": 31536000,
                    "minimum": 60,
                    "type": "integer"
                  },
                  "measurements": {
                    "additionalProperties": {
                      "additionalProperties": false,
                      "properties": {
                        "disabledRules": {
                          "items": {
                            "enum": [
                              "minimum",
                              "maximum",
                              "zero",
                              "nonzero",
                              "absolute_delta",
                              "percentage_delta",
                              "ratio_minimum",
                              "ratio_maximum"
                            ],
                            "type": "string"
                          },
                          "maxItems": 8,
                          "type": "array"
                        },
                        "maximum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        },
                        "maximumAbsoluteDelta": {
                          "anyOf": [
                            { "minimum": 0, "type": "number" },
                            { "type": "null" }
                          ]
                        },
                        "maximumPercentageDelta": {
                          "anyOf": [
                            { "minimum": 0, "type": "number" },
                            { "type": "null" }
                          ]
                        },
                        "metricType": {
                          "enum": [
                            "gauge",
                            "count",
                            "rate",
                            "duration",
                            "counter",
                            "size"
                          ],
                          "type": "string"
                        },
                        "minimum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        },
                        "missingPolicy": {
                          "enum": ["skip", "zero", "reject"],
                          "type": "string"
                        },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        },
                        "ratio": {
                          "additionalProperties": false,
                          "properties": {
                            "denominator": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maximum": {
                              "anyOf": [
                                { "type": "number" },
                                { "type": "null" }
                              ]
                            },
                            "minimum": {
                              "anyOf": [
                                { "type": "number" },
                                { "type": "null" }
                              ]
                            }
                          },
                          "type": "object"
                        },
                        "ruleAction": {
                          "additionalProperties": false,
                          "properties": {
                            "mode": {
                              "enum": ["inactive", "active"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["mode", "version"],
                          "type": "object"
                        },
                        "rulePolicy": {
                          "anyOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "consecutiveObservations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "sustainedConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "sustainedCriterion": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "observations",
                                          "type": "string"
                                        },
                                        "observations": {
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "observations"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "elapsed_time",
                                          "type": "string"
                                        },
                                        "seconds": {
                                          "maximum": 604800,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "seconds"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "transientConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "version": { "const": 1, "type": "number" }
                              },
                              "required": ["version"],
                              "type": "object"
                            }
                          ]
                        },
                        "sensitivity": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "transform": {
                          "enum": ["none", "log1p"],
                          "type": "string"
                        },
                        "unit": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "zeroExpectation": {
                          "anyOf": [
                            { "enum": ["zero", "nonzero"], "type": "string" },
                            { "type": "null" }
                          ]
                        }
                      },
                      "type": "object"
                    },
                    "propertyNames": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "name": {
                    "maxLength": 120,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "timeZone": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "required": ["patch"],
            "type": "object"
          }
        },
        "required": ["monitorId"],
        "title": "McpTestMonitorBeatInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpTestMonitorBeatInputSchema"
      },
      "McpTestMonitorBeatResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "baselineEvaluations": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "engineVersion": { "const": 2, "type": "number" },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "normalizationStatus": {
                          "enum": [
                            "value",
                            "counter_baseline",
                            "counter_reset",
                            "missing_skipped",
                            "missing_zero"
                          ],
                          "type": "string"
                        },
                        "normalizationVersion": {
                          "const": 1,
                          "type": "number"
                        },
                        "notActionableReason": {
                          "enum": ["baseline_below_minimum_level"],
                          "type": "string"
                        },
                        "notEvaluatedReason": {
                          "enum": [
                            "measurement_missing",
                            "counter_baseline",
                            "counter_reset",
                            "numeric_overflow",
                            "heartbeat_expectation_disabled"
                          ],
                          "type": "string"
                        },
                        "originalExpectedValue": { "type": "number" },
                        "originalLowerBound": { "type": "number" },
                        "originalObservedValue": { "type": "number" },
                        "originalScaleBasis": {
                          "enum": ["measurement", "counter_delta"],
                          "type": "string"
                        },
                        "originalUpperBound": { "type": "number" },
                        "policyInput": {
                          "additionalProperties": false,
                          "properties": {
                            "actionable": { "type": "boolean" },
                            "mode": {
                              "enum": ["heartbeat", "shadow", "active"],
                              "type": "string"
                            }
                          },
                          "required": ["actionable", "mode"],
                          "type": "object"
                        },
                        "readiness": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "baselineSamples": {
                                  "maximum": 15,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "requiredBaselineSamples": {
                                  "const": 16,
                                  "type": "number"
                                },
                                "requiredResidualSamples": {
                                  "const": 32,
                                  "type": "number"
                                },
                                "residualSamples": {
                                  "const": 0,
                                  "type": "number"
                                },
                                "state": {
                                  "const": "warming_baseline",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "requiredBaselineSamples",
                                "requiredResidualSamples",
                                "baselineSamples",
                                "residualSamples",
                                "state"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "baselineSamples": {
                                  "maximum": 128,
                                  "minimum": 16,
                                  "type": "integer"
                                },
                                "requiredBaselineSamples": {
                                  "const": 16,
                                  "type": "number"
                                },
                                "requiredResidualSamples": {
                                  "const": 32,
                                  "type": "number"
                                },
                                "residualSamples": {
                                  "maximum": 31,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "state": {
                                  "const": "warming_residuals",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "requiredBaselineSamples",
                                "requiredResidualSamples",
                                "baselineSamples",
                                "residualSamples",
                                "state"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "baselineSamples": {
                                  "maximum": 128,
                                  "minimum": 16,
                                  "type": "integer"
                                },
                                "requiredBaselineSamples": {
                                  "const": 16,
                                  "type": "number"
                                },
                                "requiredResidualSamples": {
                                  "const": 32,
                                  "type": "number"
                                },
                                "residualSamples": {
                                  "maximum": 128,
                                  "minimum": 32,
                                  "type": "integer"
                                },
                                "state": { "const": "ready", "type": "string" }
                              },
                              "required": [
                                "requiredBaselineSamples",
                                "requiredResidualSamples",
                                "baselineSamples",
                                "residualSamples",
                                "state"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "residualModel": {
                          "enum": ["robust_z", "count"],
                          "type": "string"
                        },
                        "residualModelReadiness": {
                          "additionalProperties": false,
                          "properties": {
                            "candidate": {
                              "enum": ["robust_z", "count"],
                              "type": "string"
                            },
                            "holdoutSamples": {
                              "maximum": 32,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "meanLogLikelihoodGain": { "type": "number" },
                            "minimumMeanLogLikelihoodGain": {
                              "const": 0.1,
                              "type": "number"
                            },
                            "requiredHoldoutSamples": {
                              "const": 32,
                              "type": "number"
                            },
                            "state": {
                              "enum": [
                                "ineligible",
                                "warming_holdout",
                                "insufficient_improvement",
                                "validated"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "candidate",
                            "holdoutSamples",
                            "minimumMeanLogLikelihoodGain",
                            "requiredHoldoutSamples",
                            "state"
                          ],
                          "type": "object"
                        },
                        "residualModelSelectionReason": {
                          "enum": [
                            "count_improved",
                            "distribution_ineligible",
                            "holdout_warming",
                            "insufficient_improvement"
                          ],
                          "type": "string"
                        },
                        "residualScore": { "minimum": 0, "type": "number" },
                        "sensitivity": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.01,
                                  "type": "number"
                                },
                                "name": { "const": "low", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.99,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.03,
                                  "type": "number"
                                },
                                "name": { "const": "medium", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.97,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.05,
                                  "type": "number"
                                },
                                "name": { "const": "high", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.95,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "warming",
                            "normal",
                            "suspected_anomaly",
                            "not_evaluated"
                          ],
                          "type": "string"
                        },
                        "threshold": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "transform": {
                          "enum": ["none", "log1p"],
                          "type": "string"
                        },
                        "transformedExpectedValue": { "type": "number" },
                        "transformedLowerBound": { "type": "number" },
                        "transformedMad": { "minimum": 0, "type": "number" },
                        "transformedObservedValue": { "type": "number" },
                        "transformedScale": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "transformedUpperBound": { "type": "number" },
                        "unit": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "updateDisposition": {
                          "enum": ["full", "winsorized", "skipped"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "configurationVersion",
                        "engineVersion",
                        "explanation",
                        "measurementKey",
                        "normalizationStatus",
                        "normalizationVersion",
                        "originalScaleBasis",
                        "policyInput",
                        "readiness",
                        "residualModel",
                        "residualModelReadiness",
                        "residualModelSelectionReason",
                        "sensitivity",
                        "status",
                        "transform",
                        "updateDisposition"
                      ],
                      "type": "object"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "deadlinePreview": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "incidentPolicyDecision": {
                    "additionalProperties": false,
                    "properties": {
                      "configurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "confirmation": {
                        "additionalProperties": false,
                        "properties": {
                          "confirmed": { "type": "boolean" },
                          "observedInWindow": {
                            "maximum": 6,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "required": {
                            "maximum": 6,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "window": {
                            "maximum": 6,
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "confirmed",
                          "observedInWindow",
                          "required",
                          "window"
                        ],
                        "type": "object"
                      },
                      "contributions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "breach": {
                              "additionalProperties": false,
                              "properties": {
                                "consequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "justBecameSustained": { "type": "boolean" },
                                "phase": {
                                  "enum": ["clear", "transient", "sustained"],
                                  "type": "string"
                                },
                                "progress": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "elapsedSeconds": {
                                      "maximum": 604800,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "qualifyingObservations": {
                                      "maximum": 10,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "remaining": {
                                      "maximum": 604800,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "startedAt": {
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "elapsedSeconds",
                                    "qualifyingObservations",
                                    "remaining"
                                  ],
                                  "type": "object"
                                },
                                "sustainedConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "sustainedCriterion": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "observations",
                                          "type": "string"
                                        },
                                        "observations": {
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "observations"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "elapsed_time",
                                          "type": "string"
                                        },
                                        "seconds": {
                                          "maximum": 604800,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "seconds"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "transientConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "consequence",
                                "justBecameSustained",
                                "phase",
                                "progress",
                                "sustainedConsequence",
                                "sustainedCriterion",
                                "transientConsequence"
                              ],
                              "type": "object"
                            },
                            "detector": {
                              "enum": [
                                "explicit_rule",
                                "adaptive_baseline",
                                "seasonal_baseline",
                                "persistent_shift"
                              ],
                              "type": "string"
                            },
                            "durationSamples": {
                              "maximum": 1000000,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "residualScore": { "minimum": 0, "type": "number" },
                            "ruleId": {
                              "maxLength": 160,
                              "minLength": 3,
                              "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                              "type": "string"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            },
                            "trigger": {
                              "enum": [
                                "explicit_rule",
                                "extreme_deviation",
                                "moderate_confirmation",
                                "persistent_shift"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "detector",
                            "measurementKey",
                            "severity"
                          ],
                          "type": "object"
                        },
                        "maxItems": 80,
                        "type": "array"
                      },
                      "engineVersion": { "const": 1, "type": "number" },
                      "evaluation": {
                        "additionalProperties": false,
                        "properties": {
                          "evaluatedMeasurementKeys": {
                            "items": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maxItems": 32,
                            "type": "array"
                          },
                          "policyActive": { "type": "boolean" },
                          "publishedMeasurementKeys": {
                            "items": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maxItems": 32,
                            "type": "array"
                          }
                        },
                        "required": [
                          "evaluatedMeasurementKeys",
                          "policyActive",
                          "publishedMeasurementKeys"
                        ],
                        "type": "object"
                      },
                      "explanation": {
                        "maxLength": 512,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "notifiable": { "type": "boolean" },
                      "outcome": {
                        "enum": [
                          "none",
                          "recorded",
                          "confirming",
                          "incident_opened",
                          "incident_sustained",
                          "recovery_pending",
                          "recovery_confirmed"
                        ],
                        "type": "string"
                      },
                      "profile": {
                        "oneOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "configured": {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "confirmationRequired": {
                                "const": 4,
                                "type": "number"
                              },
                              "confirmationWindow": {
                                "const": 6,
                                "type": "number"
                              },
                              "extremeResidualMultiple": {
                                "const": 4,
                                "type": "number"
                              },
                              "name": { "const": "low", "type": "string" },
                              "recoveryConfirmationObservations": {
                                "const": 4,
                                "type": "number"
                              },
                              "regimeChangeObservations": {
                                "const": 96,
                                "type": "number"
                              }
                            },
                            "required": [
                              "configured",
                              "confirmationRequired",
                              "confirmationWindow",
                              "extremeResidualMultiple",
                              "name",
                              "recoveryConfirmationObservations",
                              "regimeChangeObservations"
                            ],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "configured": {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "confirmationRequired": {
                                "const": 3,
                                "type": "number"
                              },
                              "confirmationWindow": {
                                "const": 5,
                                "type": "number"
                              },
                              "extremeResidualMultiple": {
                                "const": 3,
                                "type": "number"
                              },
                              "name": { "const": "medium", "type": "string" },
                              "recoveryConfirmationObservations": {
                                "const": 3,
                                "type": "number"
                              },
                              "regimeChangeObservations": {
                                "const": 48,
                                "type": "number"
                              }
                            },
                            "required": [
                              "configured",
                              "confirmationRequired",
                              "confirmationWindow",
                              "extremeResidualMultiple",
                              "name",
                              "recoveryConfirmationObservations",
                              "regimeChangeObservations"
                            ],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "configured": {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "confirmationRequired": {
                                "const": 2,
                                "type": "number"
                              },
                              "confirmationWindow": {
                                "const": 4,
                                "type": "number"
                              },
                              "extremeResidualMultiple": {
                                "const": 2.5,
                                "type": "number"
                              },
                              "name": { "const": "high", "type": "string" },
                              "recoveryConfirmationObservations": {
                                "const": 3,
                                "type": "number"
                              },
                              "regimeChangeObservations": {
                                "const": 24,
                                "type": "number"
                              }
                            },
                            "required": [
                              "configured",
                              "confirmationRequired",
                              "confirmationWindow",
                              "extremeResidualMultiple",
                              "name",
                              "recoveryConfirmationObservations",
                              "regimeChangeObservations"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "recovery": {
                        "additionalProperties": false,
                        "properties": {
                          "confirmedObservations": {
                            "maximum": 10,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "requiredObservations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "confirmedObservations",
                          "requiredObservations"
                        ],
                        "type": "object"
                      },
                      "regimeChange": {
                        "additionalProperties": false,
                        "properties": {
                          "measurementKeys": {
                            "items": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maxItems": 16,
                            "type": "array"
                          },
                          "mode": {
                            "enum": ["manual", "automatic"],
                            "type": "string"
                          },
                          "requiredObservations": {
                            "maximum": 1000000,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "state": {
                            "enum": [
                              "none",
                              "watching",
                              "available",
                              "applied"
                            ],
                            "type": "string"
                          },
                          "sustainedObservations": {
                            "maximum": 1000000,
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "measurementKeys",
                          "mode",
                          "requiredObservations",
                          "state",
                          "sustainedObservations"
                        ],
                        "type": "object"
                      },
                      "severity": {
                        "enum": ["info", "warning", "critical"],
                        "type": "string"
                      },
                      "suppression": {
                        "enum": [
                          "detector_unconfirmed",
                          "detector_warming",
                          "detector_shadow_mode",
                          "open_incident"
                        ],
                        "type": "string"
                      },
                      "triggers": {
                        "items": {
                          "enum": [
                            "explicit_rule",
                            "extreme_deviation",
                            "moderate_confirmation",
                            "persistent_shift"
                          ],
                          "type": "string"
                        },
                        "maxItems": 4,
                        "type": "array"
                      }
                    },
                    "required": [
                      "configurationVersion",
                      "confirmation",
                      "contributions",
                      "engineVersion",
                      "explanation",
                      "notifiable",
                      "outcome",
                      "profile",
                      "recovery",
                      "regimeChange",
                      "severity",
                      "triggers"
                    ],
                    "type": "object"
                  },
                  "mode": { "const": "test", "type": "string" },
                  "outcome": { "const": "validated", "type": "string" },
                  "productionEffects": { "const": false, "type": "boolean" },
                  "ruleEvaluations": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "breach": {
                          "additionalProperties": false,
                          "properties": {
                            "consequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "justBecameSustained": { "type": "boolean" },
                            "phase": {
                              "enum": ["clear", "transient", "sustained"],
                              "type": "string"
                            },
                            "progress": {
                              "additionalProperties": false,
                              "properties": {
                                "elapsedSeconds": {
                                  "maximum": 604800,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "qualifyingObservations": {
                                  "maximum": 10,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "remaining": {
                                  "maximum": 604800,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "startedAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "elapsedSeconds",
                                "qualifyingObservations",
                                "remaining"
                              ],
                              "type": "object"
                            },
                            "sustainedConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "sustainedCriterion": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "observations",
                                      "type": "string"
                                    },
                                    "observations": {
                                      "maximum": 10,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "observations"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "elapsed_time",
                                      "type": "string"
                                    },
                                    "seconds": {
                                      "maximum": 604800,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "seconds"],
                                  "type": "object"
                                }
                              ]
                            },
                            "transientConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "consequence",
                            "justBecameSustained",
                            "phase",
                            "progress",
                            "sustainedConsequence",
                            "sustainedCriterion",
                            "transientConsequence"
                          ],
                          "type": "object"
                        },
                        "comparison": {
                          "enum": ["at_least", "at_most", "equal", "not_equal"],
                          "type": "string"
                        },
                        "computedValue": { "type": "number" },
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "confirmation": {
                          "additionalProperties": false,
                          "properties": {
                            "confirmed": { "type": "boolean" },
                            "consecutiveViolations": {
                              "maximum": 10,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "required": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "confirmed",
                            "consecutiveViolations",
                            "required"
                          ],
                          "type": "object"
                        },
                        "denominatorMeasurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "engineVersion": {
                          "anyOf": [
                            { "const": 1, "type": "number" },
                            { "const": 2, "type": "number" }
                          ]
                        },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "kind": {
                          "enum": [
                            "minimum",
                            "maximum",
                            "zero",
                            "nonzero",
                            "absolute_delta",
                            "percentage_delta",
                            "ratio_minimum",
                            "ratio_maximum"
                          ],
                          "type": "string"
                        },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "normalizationStatus": {
                          "enum": [
                            "value",
                            "counter_baseline",
                            "counter_reset",
                            "missing_skipped",
                            "missing_zero"
                          ],
                          "type": "string"
                        },
                        "notEvaluatedReason": {
                          "enum": [
                            "measurement_missing",
                            "counter_baseline",
                            "counter_reset",
                            "previous_value_missing",
                            "previous_value_zero",
                            "ratio_denominator_missing",
                            "ratio_denominator_zero",
                            "numeric_overflow"
                          ],
                          "type": "string"
                        },
                        "observedValue": { "type": "number" },
                        "policyInput": {
                          "additionalProperties": false,
                          "properties": {
                            "actionable": { "type": "boolean" },
                            "mode": {
                              "enum": ["heartbeat", "shadow", "active"],
                              "type": "string"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            }
                          },
                          "required": ["actionable", "mode", "severity"],
                          "type": "object"
                        },
                        "referenceValue": { "type": "number" },
                        "ruleId": {
                          "maxLength": 160,
                          "minLength": 3,
                          "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                          "type": "string"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        },
                        "status": {
                          "enum": ["passed", "violated", "not_evaluated"],
                          "type": "string"
                        },
                        "threshold": { "type": "number" },
                        "transform": {
                          "enum": ["none", "log1p"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "comparison",
                        "configurationVersion",
                        "confirmation",
                        "engineVersion",
                        "explanation",
                        "kind",
                        "measurementKey",
                        "normalizationStatus",
                        "policyInput",
                        "ruleId",
                        "severity",
                        "status",
                        "threshold",
                        "transform"
                      ],
                      "type": "object"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "ruleHistoryPreview": {
                    "additionalProperties": false,
                    "properties": {
                      "baseConfigurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "evaluatedObservations": {
                        "maximum": 10,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "fromSequence": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "proposedConfigurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "ruleEvaluations": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "breach": {
                              "additionalProperties": false,
                              "properties": {
                                "consequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "justBecameSustained": { "type": "boolean" },
                                "phase": {
                                  "enum": ["clear", "transient", "sustained"],
                                  "type": "string"
                                },
                                "progress": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "elapsedSeconds": {
                                      "maximum": 604800,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "qualifyingObservations": {
                                      "maximum": 10,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "remaining": {
                                      "maximum": 604800,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "startedAt": {
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "elapsedSeconds",
                                    "qualifyingObservations",
                                    "remaining"
                                  ],
                                  "type": "object"
                                },
                                "sustainedConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "sustainedCriterion": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "observations",
                                          "type": "string"
                                        },
                                        "observations": {
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "observations"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "elapsed_time",
                                          "type": "string"
                                        },
                                        "seconds": {
                                          "maximum": 604800,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "seconds"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "transientConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "consequence",
                                "justBecameSustained",
                                "phase",
                                "progress",
                                "sustainedConsequence",
                                "sustainedCriterion",
                                "transientConsequence"
                              ],
                              "type": "object"
                            },
                            "comparison": {
                              "enum": [
                                "at_least",
                                "at_most",
                                "equal",
                                "not_equal"
                              ],
                              "type": "string"
                            },
                            "computedValue": { "type": "number" },
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "confirmation": {
                              "additionalProperties": false,
                              "properties": {
                                "confirmed": { "type": "boolean" },
                                "consecutiveViolations": {
                                  "maximum": 10,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "required": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": [
                                "confirmed",
                                "consecutiveViolations",
                                "required"
                              ],
                              "type": "object"
                            },
                            "denominatorMeasurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "engineVersion": {
                              "anyOf": [
                                { "const": 1, "type": "number" },
                                { "const": 2, "type": "number" }
                              ]
                            },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "kind": {
                              "enum": [
                                "minimum",
                                "maximum",
                                "zero",
                                "nonzero",
                                "absolute_delta",
                                "percentage_delta",
                                "ratio_minimum",
                                "ratio_maximum"
                              ],
                              "type": "string"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "normalizationStatus": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "previous_value_missing",
                                "previous_value_zero",
                                "ratio_denominator_missing",
                                "ratio_denominator_zero",
                                "numeric_overflow"
                              ],
                              "type": "string"
                            },
                            "observedValue": { "type": "number" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode", "severity"],
                              "type": "object"
                            },
                            "referenceValue": { "type": "number" },
                            "ruleId": {
                              "maxLength": 160,
                              "minLength": 3,
                              "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                              "type": "string"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            },
                            "status": {
                              "enum": ["passed", "violated", "not_evaluated"],
                              "type": "string"
                            },
                            "threshold": { "type": "number" },
                            "transform": {
                              "enum": ["none", "log1p"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "comparison",
                            "configurationVersion",
                            "confirmation",
                            "engineVersion",
                            "explanation",
                            "kind",
                            "measurementKey",
                            "normalizationStatus",
                            "policyInput",
                            "ruleId",
                            "severity",
                            "status",
                            "threshold",
                            "transform"
                          ],
                          "type": "object"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "throughSequence": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "baseConfigurationVersion",
                      "evaluatedObservations",
                      "proposedConfigurationVersion",
                      "ruleEvaluations"
                    ],
                    "type": "object"
                  },
                  "seasonalEvaluations": {
                    "items": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "dailyBucketSamples": {
                              "maximum": 24,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "dailyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                }
                              ]
                            },
                            "engineVersion": { "const": 1, "type": "number" },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "localBucket": {
                              "additionalProperties": false,
                              "properties": {
                                "dailyHour": {
                                  "maximum": 23,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "offsetMinutes": {
                                  "maximum": 1440,
                                  "minimum": -1440,
                                  "type": "integer"
                                },
                                "weeklyHour": {
                                  "maximum": 167,
                                  "minimum": 0,
                                  "type": "integer"
                                }
                              },
                              "required": [
                                "dailyHour",
                                "offsetMinutes",
                                "weeklyHour"
                              ],
                              "type": "object"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "neighborToleranceHours": {
                              "const": 1,
                              "type": "number"
                            },
                            "normalizationStatus": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "numeric_overflow",
                                "heartbeat_expectation_disabled"
                              ],
                              "type": "string"
                            },
                            "originalExpectedValue": { "type": "number" },
                            "originalLowerBound": { "type": "number" },
                            "originalObservedValue": { "type": "number" },
                            "originalScaleBasis": {
                              "enum": ["measurement", "counter_delta"],
                              "type": "string"
                            },
                            "originalUpperBound": { "type": "number" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode"],
                              "type": "object"
                            },
                            "residualScore": { "minimum": 0, "type": "number" },
                            "selectedModel": {
                              "const": "global",
                              "type": "string"
                            },
                            "selectionReason": {
                              "enum": [
                                "global_baseline_warming",
                                "insufficient_improvement",
                                "not_evaluated",
                                "seasonality_warming",
                                "sparse_bucket"
                              ],
                              "type": "string"
                            },
                            "sensitivity": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.01,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "low",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.99,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.03,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "medium",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.97,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.05,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "high",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.95,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "status": {
                              "enum": [
                                "warming",
                                "normal",
                                "suspected_anomaly",
                                "not_evaluated"
                              ],
                              "type": "string"
                            },
                            "threshold": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "timeZone": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "transform": {
                              "enum": ["none", "log1p"],
                              "type": "string"
                            },
                            "transformedExpectedValue": { "type": "number" },
                            "transformedLowerBound": { "type": "number" },
                            "transformedMad": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "transformedObservedValue": { "type": "number" },
                            "transformedScale": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "transformedUpperBound": { "type": "number" },
                            "unit": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "updateDisposition": {
                              "enum": ["full", "skipped"],
                              "type": "string"
                            },
                            "weeklyBucketSamples": {
                              "maximum": 12,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "weeklyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                }
                              ]
                            }
                          },
                          "required": [
                            "configurationVersion",
                            "dailyBucketSamples",
                            "dailyReadiness",
                            "engineVersion",
                            "explanation",
                            "localBucket",
                            "measurementKey",
                            "neighborToleranceHours",
                            "normalizationStatus",
                            "normalizationVersion",
                            "originalScaleBasis",
                            "policyInput",
                            "sensitivity",
                            "status",
                            "timeZone",
                            "transform",
                            "updateDisposition",
                            "weeklyBucketSamples",
                            "weeklyReadiness",
                            "selectedModel",
                            "selectionReason"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "dailyBucketSamples": {
                              "maximum": 24,
                              "minimum": 3,
                              "type": "integer"
                            },
                            "dailyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "const": 7,
                                      "type": "number"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 4,
                                      "type": "integer"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": 0.1,
                                      "type": "number"
                                    },
                                    "state": {
                                      "const": "validated",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "candidateWinsorizedMeanAbsoluteError",
                                    "cyclesObserved",
                                    "globalWinsorizedMeanAbsoluteError",
                                    "holdoutSamples",
                                    "relativeImprovement",
                                    "state"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "engineVersion": { "const": 1, "type": "number" },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "localBucket": {
                              "additionalProperties": false,
                              "properties": {
                                "dailyHour": {
                                  "maximum": 23,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "offsetMinutes": {
                                  "maximum": 1440,
                                  "minimum": -1440,
                                  "type": "integer"
                                },
                                "weeklyHour": {
                                  "maximum": 167,
                                  "minimum": 0,
                                  "type": "integer"
                                }
                              },
                              "required": [
                                "dailyHour",
                                "offsetMinutes",
                                "weeklyHour"
                              ],
                              "type": "object"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "neighborToleranceHours": {
                              "const": 1,
                              "type": "number"
                            },
                            "normalizationStatus": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "numeric_overflow",
                                "heartbeat_expectation_disabled"
                              ],
                              "type": "string"
                            },
                            "originalExpectedValue": { "type": "number" },
                            "originalLowerBound": { "type": "number" },
                            "originalObservedValue": { "type": "number" },
                            "originalScaleBasis": {
                              "enum": ["measurement", "counter_delta"],
                              "type": "string"
                            },
                            "originalUpperBound": { "type": "number" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode"],
                              "type": "object"
                            },
                            "residualScore": { "minimum": 0, "type": "number" },
                            "selectedModel": {
                              "const": "daily",
                              "type": "string"
                            },
                            "selectionReason": {
                              "const": "daily_improved",
                              "type": "string"
                            },
                            "sensitivity": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.01,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "low",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.99,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.03,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "medium",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.97,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.05,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "high",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.95,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "status": {
                              "enum": [
                                "warming",
                                "normal",
                                "suspected_anomaly",
                                "not_evaluated"
                              ],
                              "type": "string"
                            },
                            "threshold": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "timeZone": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "transform": {
                              "enum": ["none", "log1p"],
                              "type": "string"
                            },
                            "transformedExpectedValue": { "type": "number" },
                            "transformedLowerBound": { "type": "number" },
                            "transformedMad": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "transformedObservedValue": { "type": "number" },
                            "transformedScale": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "transformedUpperBound": { "type": "number" },
                            "unit": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "updateDisposition": {
                              "enum": ["full", "skipped"],
                              "type": "string"
                            },
                            "weeklyBucketSamples": {
                              "maximum": 12,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "weeklyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                }
                              ]
                            }
                          },
                          "required": [
                            "configurationVersion",
                            "dailyBucketSamples",
                            "dailyReadiness",
                            "engineVersion",
                            "explanation",
                            "localBucket",
                            "measurementKey",
                            "neighborToleranceHours",
                            "normalizationStatus",
                            "normalizationVersion",
                            "originalScaleBasis",
                            "policyInput",
                            "sensitivity",
                            "status",
                            "timeZone",
                            "transform",
                            "updateDisposition",
                            "weeklyBucketSamples",
                            "weeklyReadiness",
                            "selectedModel",
                            "selectionReason"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "dailyBucketSamples": {
                              "maximum": 24,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "dailyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                }
                              ]
                            },
                            "engineVersion": { "const": 1, "type": "number" },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "localBucket": {
                              "additionalProperties": false,
                              "properties": {
                                "dailyHour": {
                                  "maximum": 23,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "offsetMinutes": {
                                  "maximum": 1440,
                                  "minimum": -1440,
                                  "type": "integer"
                                },
                                "weeklyHour": {
                                  "maximum": 167,
                                  "minimum": 0,
                                  "type": "integer"
                                }
                              },
                              "required": [
                                "dailyHour",
                                "offsetMinutes",
                                "weeklyHour"
                              ],
                              "type": "object"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "neighborToleranceHours": {
                              "const": 1,
                              "type": "number"
                            },
                            "normalizationStatus": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "numeric_overflow",
                                "heartbeat_expectation_disabled"
                              ],
                              "type": "string"
                            },
                            "originalExpectedValue": { "type": "number" },
                            "originalLowerBound": { "type": "number" },
                            "originalObservedValue": { "type": "number" },
                            "originalScaleBasis": {
                              "enum": ["measurement", "counter_delta"],
                              "type": "string"
                            },
                            "originalUpperBound": { "type": "number" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode"],
                              "type": "object"
                            },
                            "residualScore": { "minimum": 0, "type": "number" },
                            "selectedModel": {
                              "const": "weekly",
                              "type": "string"
                            },
                            "selectionReason": {
                              "const": "weekly_improved",
                              "type": "string"
                            },
                            "sensitivity": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.01,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "low",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.99,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.03,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "medium",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.97,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.05,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "high",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.95,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "status": {
                              "enum": [
                                "warming",
                                "normal",
                                "suspected_anomaly",
                                "not_evaluated"
                              ],
                              "type": "string"
                            },
                            "threshold": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "timeZone": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "transform": {
                              "enum": ["none", "log1p"],
                              "type": "string"
                            },
                            "transformedExpectedValue": { "type": "number" },
                            "transformedLowerBound": { "type": "number" },
                            "transformedMad": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "transformedObservedValue": { "type": "number" },
                            "transformedScale": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "transformedUpperBound": { "type": "number" },
                            "unit": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "updateDisposition": {
                              "enum": ["full", "skipped"],
                              "type": "string"
                            },
                            "weeklyBucketSamples": {
                              "maximum": 12,
                              "minimum": 3,
                              "type": "integer"
                            },
                            "weeklyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 4,
                                      "type": "integer"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": 0.1,
                                      "type": "number"
                                    },
                                    "state": {
                                      "const": "validated",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "candidateWinsorizedMeanAbsoluteError",
                                    "cyclesObserved",
                                    "globalWinsorizedMeanAbsoluteError",
                                    "holdoutSamples",
                                    "relativeImprovement",
                                    "state"
                                  ],
                                  "type": "object"
                                }
                              ]
                            }
                          },
                          "required": [
                            "configurationVersion",
                            "dailyBucketSamples",
                            "dailyReadiness",
                            "engineVersion",
                            "explanation",
                            "localBucket",
                            "measurementKey",
                            "neighborToleranceHours",
                            "normalizationStatus",
                            "normalizationVersion",
                            "originalScaleBasis",
                            "policyInput",
                            "sensitivity",
                            "status",
                            "timeZone",
                            "transform",
                            "updateDisposition",
                            "weeklyBucketSamples",
                            "weeklyReadiness",
                            "selectedModel",
                            "selectionReason"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "shiftEvaluations": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "accumulatedMagnitude": {
                          "maximum": 64,
                          "minimum": 0,
                          "type": "number"
                        },
                        "baselineScale": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "boundedResidualContribution": {
                          "maximum": 3,
                          "minimum": -3,
                          "type": "number"
                        },
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "direction": {
                          "enum": ["positive", "negative"],
                          "type": "string"
                        },
                        "durationSamples": {
                          "maximum": 1000000,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "engineVersion": { "const": 3, "type": "number" },
                        "ewma": {
                          "maximum": 3,
                          "minimum": -3,
                          "type": "number"
                        },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "negativeCusum": {
                          "maximum": 64,
                          "minimum": 0,
                          "type": "number"
                        },
                        "normalizationVersion": {
                          "const": 1,
                          "type": "number"
                        },
                        "normalizedResidual": { "type": "number" },
                        "notEvaluatedReason": {
                          "enum": [
                            "measurement_missing",
                            "counter_baseline",
                            "counter_reset",
                            "numeric_overflow",
                            "heartbeat_expectation_disabled"
                          ],
                          "type": "string"
                        },
                        "pointAnomaly": { "type": "boolean" },
                        "policyInput": {
                          "additionalProperties": false,
                          "properties": {
                            "actionable": { "type": "boolean" },
                            "mode": {
                              "enum": ["heartbeat", "shadow", "active"],
                              "type": "string"
                            }
                          },
                          "required": ["actionable", "mode"],
                          "type": "object"
                        },
                        "positiveCusum": {
                          "maximum": 64,
                          "minimum": 0,
                          "type": "number"
                        },
                        "preset": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cusumAllowance": {
                                  "const": 0.75,
                                  "type": "number"
                                },
                                "cusumThreshold": {
                                  "const": 12,
                                  "type": "number"
                                },
                                "ewmaAlpha": { "const": 0.1, "type": "number" },
                                "ewmaRecoveryThreshold": {
                                  "const": 0.3,
                                  "type": "number"
                                },
                                "ewmaThreshold": {
                                  "const": 0.9,
                                  "type": "number"
                                },
                                "maximumGapIntervals": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "minimumDurationSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "name": { "const": "low", "type": "string" },
                                "recoveryConfirmationSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "residualClip": { "const": 3, "type": "number" }
                              },
                              "required": [
                                "configured",
                                "maximumGapIntervals",
                                "residualClip",
                                "cusumAllowance",
                                "cusumThreshold",
                                "ewmaAlpha",
                                "ewmaRecoveryThreshold",
                                "ewmaThreshold",
                                "minimumDurationSamples",
                                "name",
                                "recoveryConfirmationSamples"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cusumAllowance": {
                                  "const": 0.5,
                                  "type": "number"
                                },
                                "cusumThreshold": {
                                  "const": 8,
                                  "type": "number"
                                },
                                "ewmaAlpha": { "const": 0.2, "type": "number" },
                                "ewmaRecoveryThreshold": {
                                  "const": 0.25,
                                  "type": "number"
                                },
                                "ewmaThreshold": {
                                  "const": 0.65,
                                  "type": "number"
                                },
                                "maximumGapIntervals": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "minimumDurationSamples": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "name": { "const": "medium", "type": "string" },
                                "recoveryConfirmationSamples": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "residualClip": { "const": 3, "type": "number" }
                              },
                              "required": [
                                "configured",
                                "maximumGapIntervals",
                                "residualClip",
                                "cusumAllowance",
                                "cusumThreshold",
                                "ewmaAlpha",
                                "ewmaRecoveryThreshold",
                                "ewmaThreshold",
                                "minimumDurationSamples",
                                "name",
                                "recoveryConfirmationSamples"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cusumAllowance": {
                                  "const": 0.35,
                                  "type": "number"
                                },
                                "cusumThreshold": {
                                  "const": 6,
                                  "type": "number"
                                },
                                "ewmaAlpha": { "const": 0.3, "type": "number" },
                                "ewmaRecoveryThreshold": {
                                  "const": 0.2,
                                  "type": "number"
                                },
                                "ewmaThreshold": {
                                  "const": 0.45,
                                  "type": "number"
                                },
                                "maximumGapIntervals": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "minimumDurationSamples": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "name": { "const": "high", "type": "string" },
                                "recoveryConfirmationSamples": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "residualClip": { "const": 3, "type": "number" }
                              },
                              "required": [
                                "configured",
                                "maximumGapIntervals",
                                "residualClip",
                                "cusumAllowance",
                                "cusumThreshold",
                                "ewmaAlpha",
                                "ewmaRecoveryThreshold",
                                "ewmaThreshold",
                                "minimumDurationSamples",
                                "name",
                                "recoveryConfirmationSamples"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "resetReason": {
                          "enum": [
                            "accepted_regime_change",
                            "baseline_model_changed",
                            "configuration_changed",
                            "counter_baseline",
                            "counter_reset",
                            "lifecycle_suspended",
                            "long_gap",
                            "maintenance"
                          ],
                          "type": "string"
                        },
                        "status": {
                          "enum": [
                            "warming",
                            "normal",
                            "accumulating",
                            "persistent_shift",
                            "recovering",
                            "reset",
                            "not_evaluated"
                          ],
                          "type": "string"
                        },
                        "wanderCalibration": {
                          "additionalProperties": false,
                          "properties": {
                            "cusumAllowance": {
                              "exclusiveMinimum": 0,
                              "maximum": 64,
                              "type": "number"
                            },
                            "cusumThreshold": {
                              "exclusiveMinimum": 0,
                              "maximum": 64,
                              "type": "number"
                            },
                            "holdoutSamples": {
                              "maximum": 1000000,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "minimumInflation": {
                              "const": 1.2,
                              "type": "number"
                            },
                            "requiredHoldoutSamples": {
                              "const": 32,
                              "type": "number"
                            },
                            "runningMeanInflation": {
                              "maximum": 4.358898943540674,
                              "minimum": 1,
                              "type": "number"
                            },
                            "state": {
                              "enum": [
                                "warming_holdout",
                                "independent",
                                "calibrated"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "cusumAllowance",
                            "cusumThreshold",
                            "holdoutSamples",
                            "minimumInflation",
                            "requiredHoldoutSamples",
                            "state"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "configurationVersion",
                        "engineVersion",
                        "explanation",
                        "measurementKey",
                        "normalizationVersion",
                        "pointAnomaly",
                        "policyInput",
                        "preset",
                        "status"
                      ],
                      "type": "object"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "testedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  }
                },
                "required": [
                  "mode",
                  "outcome",
                  "productionEffects",
                  "testedAt"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpTestMonitorBeatResult",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpTestMonitorBeatResultSchema"
      },
      "McpToolError": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "enum": [
              "signalsitter.authentication_required",
              "signalsitter.permission_denied",
              "signalsitter.not_found",
              "signalsitter.validation_failed",
              "signalsitter.confirmation_required",
              "signalsitter.idempotency_conflict",
              "signalsitter.conflict",
              "signalsitter.precondition_failed",
              "signalsitter.rate_limited",
              "signalsitter.temporarily_unavailable",
              "signalsitter.internal_error"
            ],
            "type": "string"
          },
          "correlationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "message": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "requestId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "retryable": { "type": "boolean" },
          "retryAfterSeconds": {
            "exclusiveMinimum": 0,
            "maximum": 86400,
            "type": "integer"
          }
        },
        "required": [
          "code",
          "message",
          "correlationId",
          "requestId",
          "retryable"
        ],
        "title": "McpToolError",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpToolErrorSchema",
        "x-signalsitter-source-only-refinements": [
          "retryAfterSeconds is allowed only when retryable is true."
        ]
      },
      "McpToolErrorResult": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "enum": [
                  "signalsitter.authentication_required",
                  "signalsitter.permission_denied",
                  "signalsitter.not_found",
                  "signalsitter.validation_failed",
                  "signalsitter.confirmation_required",
                  "signalsitter.idempotency_conflict",
                  "signalsitter.conflict",
                  "signalsitter.precondition_failed",
                  "signalsitter.rate_limited",
                  "signalsitter.temporarily_unavailable",
                  "signalsitter.internal_error"
                ],
                "type": "string"
              },
              "correlationId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                "type": "string"
              },
              "message": {
                "maxLength": 512,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "requestId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                "type": "string"
              },
              "retryable": { "type": "boolean" },
              "retryAfterSeconds": {
                "exclusiveMinimum": 0,
                "maximum": 86400,
                "type": "integer"
              }
            },
            "required": [
              "code",
              "message",
              "correlationId",
              "requestId",
              "retryable"
            ],
            "type": "object"
          },
          "ok": { "const": false, "type": "boolean" }
        },
        "required": ["ok", "error"],
        "title": "McpToolErrorResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpToolErrorResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Nested retryAfterSeconds is allowed only when retryable is true."
        ]
      },
      "McpUpdateCallbackEndpointInput": {
        "additionalProperties": false,
        "properties": {
          "alias": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "confirm": { "type": "boolean" },
          "endpointId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "lifecycle": { "enum": ["active", "disabled"], "type": "string" },
          "url": { "format": "uri", "maxLength": 512, "type": "string" },
          "whooshbang": {
            "additionalProperties": false,
            "properties": {
              "actorId": { "maxLength": 128, "minLength": 1, "type": "string" },
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "type": "object"
          },
          "whooshbangGroup": {
            "additionalProperties": false,
            "properties": {
              "notifierId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              }
            },
            "required": ["notifierId"],
            "type": "object"
          }
        },
        "required": ["endpointId", "expectedGeneration", "idempotencyKey"],
        "title": "McpUpdateCallbackEndpointInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpUpdateCallbackEndpointInputSchema",
        "x-signalsitter-source-only-refinements": [
          "An update changes at least one of alias, url, whooshbang, whooshbangGroup, or lifecycle, and never more than one destination at once.",
          "A WhooshBang subscriber change states at least one of actorId or notifierId, and a WhooshBang group change states its notifierId.",
          "Callback destinations must be public HTTPS URLs without credentials or fragments."
        ]
      },
      "McpUpdateCallbackEndpointResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "disabledAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "generation": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "isOrganizationDefault": { "type": "boolean" },
                  "kind": {
                    "default": "webhook",
                    "enum": [
                      "webhook",
                      "whooshbang_subscriber",
                      "whooshbang_group"
                    ],
                    "type": "string"
                  },
                  "lifecycle": {
                    "enum": ["active", "disabled"],
                    "type": "string"
                  },
                  "projectId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "secret": {
                    "additionalProperties": false,
                    "properties": {
                      "issuedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "overlapEndsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "previousVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      }
                    },
                    "required": ["version", "issuedAt"],
                    "type": "object"
                  },
                  "updatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "url": {
                    "format": "uri",
                    "maxLength": 512,
                    "type": "string"
                  },
                  "whooshbang": {
                    "additionalProperties": false,
                    "properties": {
                      "actorId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "type": "string"
                      },
                      "contractVersion": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      },
                      "notifierId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      }
                    },
                    "required": ["actorId", "contractVersion", "notifierId"],
                    "type": "object"
                  },
                  "whooshbangGroup": {
                    "additionalProperties": false,
                    "properties": {
                      "contractVersion": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      },
                      "notifierId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      }
                    },
                    "required": ["contractVersion", "notifierId"],
                    "type": "object"
                  }
                },
                "required": [
                  "id",
                  "projectId",
                  "alias",
                  "lifecycle",
                  "isOrganizationDefault",
                  "generation",
                  "createdAt",
                  "updatedAt"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpUpdateCallbackEndpointResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpUpdateCallbackEndpointResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The endpoint preserves its lifecycle, default, and rotation-overlap refinements.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "McpUpdateMonitorConfigurationInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "patch": {
            "additionalProperties": false,
            "properties": {
              "graceSeconds": {
                "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                "maximum": 604800,
                "minimum": 0,
                "type": "integer"
              },
              "heartbeatExpectation": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "graceSeconds": {
                        "default": 60,
                        "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "intervalSeconds": {
                        "maximum": 31536000,
                        "minimum": 60,
                        "type": "integer"
                      },
                      "state": { "const": "enabled", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["intervalSeconds", "state", "version"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "state": { "const": "disabled", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["state", "version"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "graceSeconds": {
                        "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "state": { "const": "automatic", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["state", "version"],
                    "type": "object"
                  }
                ]
              },
              "incidentPolicy": {
                "additionalProperties": false,
                "properties": {
                  "anomalySensitivity": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "notificationCooldownSeconds": {
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "recoveryConfirmationBeats": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "regimeChangeMode": {
                    "enum": ["manual", "automatic"],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "intervalSeconds": {
                "maximum": 31536000,
                "minimum": 60,
                "type": "integer"
              },
              "measurements": {
                "additionalProperties": {
                  "additionalProperties": false,
                  "properties": {
                    "disabledRules": {
                      "items": {
                        "enum": [
                          "minimum",
                          "maximum",
                          "zero",
                          "nonzero",
                          "absolute_delta",
                          "percentage_delta",
                          "ratio_minimum",
                          "ratio_maximum"
                        ],
                        "type": "string"
                      },
                      "maxItems": 8,
                      "type": "array"
                    },
                    "maximum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    },
                    "maximumAbsoluteDelta": {
                      "anyOf": [
                        { "minimum": 0, "type": "number" },
                        { "type": "null" }
                      ]
                    },
                    "maximumPercentageDelta": {
                      "anyOf": [
                        { "minimum": 0, "type": "number" },
                        { "type": "null" }
                      ]
                    },
                    "metricType": {
                      "enum": [
                        "gauge",
                        "count",
                        "rate",
                        "duration",
                        "counter",
                        "size"
                      ],
                      "type": "string"
                    },
                    "minimum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    },
                    "missingPolicy": {
                      "enum": ["skip", "zero", "reject"],
                      "type": "string"
                    },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    },
                    "ratio": {
                      "additionalProperties": false,
                      "properties": {
                        "denominator": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maximum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        },
                        "minimum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        }
                      },
                      "type": "object"
                    },
                    "ruleAction": {
                      "additionalProperties": false,
                      "properties": {
                        "mode": {
                          "enum": ["inactive", "active"],
                          "type": "string"
                        },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["mode", "version"],
                      "type": "object"
                    },
                    "rulePolicy": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "consecutiveObservations": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "sustainedConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "sustainedCriterion": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "observations",
                                      "type": "string"
                                    },
                                    "observations": {
                                      "maximum": 10,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "observations"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "elapsed_time",
                                      "type": "string"
                                    },
                                    "seconds": {
                                      "maximum": 604800,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "seconds"],
                                  "type": "object"
                                }
                              ]
                            },
                            "transientConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["version"],
                          "type": "object"
                        }
                      ]
                    },
                    "sensitivity": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "zeroExpectation": {
                      "anyOf": [
                        { "enum": ["zero", "nonzero"], "type": "string" },
                        { "type": "null" }
                      ]
                    }
                  },
                  "type": "object"
                },
                "propertyNames": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "type": "object"
              },
              "name": {
                "maxLength": 120,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "timeZone": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "patch",
          "expectedConfigurationVersion",
          "idempotencyKey",
          "monitorId"
        ],
        "title": "McpUpdateMonitorConfigurationInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpUpdateMonitorConfigurationInputSchema",
        "x-signalsitter-source-only-refinements": [
          "A configuration update changes at least one field."
        ]
      },
      "McpUpdateMonitorConfigurationResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "configuration": {
                    "additionalProperties": false,
                    "properties": {
                      "value": {
                        "additionalProperties": false,
                        "properties": {
                          "callback": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "disabled",
                                    "type": "string"
                                  }
                                },
                                "required": ["kind"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "organization_default",
                                    "type": "string"
                                  }
                                },
                                "required": ["kind"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "alias": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                    "type": "string"
                                  },
                                  "kind": { "const": "named", "type": "string" }
                                },
                                "required": ["kind", "alias"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "inline",
                                    "type": "string"
                                  },
                                  "url": {
                                    "format": "uri",
                                    "maxLength": 512,
                                    "type": "string"
                                  }
                                },
                                "required": ["kind", "url"],
                                "type": "object"
                              }
                            ]
                          },
                          "heartbeatExpectation": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "graceSeconds": {
                                    "default": 60,
                                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "intervalSeconds": {
                                    "maximum": 31536000,
                                    "minimum": 60,
                                    "type": "integer"
                                  },
                                  "state": {
                                    "const": "enabled",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": [
                                  "intervalSeconds",
                                  "state",
                                  "version"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "state": {
                                    "const": "disabled",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["state", "version"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "graceSeconds": {
                                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "state": {
                                    "const": "automatic",
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["state", "version"],
                                "type": "object"
                              }
                            ]
                          },
                          "incidentPolicy": {
                            "additionalProperties": false,
                            "default": {
                              "anomalySensitivity": 0.5,
                              "notificationCooldownSeconds": 0,
                              "recoveryConfirmationBeats": 1,
                              "regimeChangeMode": "manual"
                            },
                            "properties": {
                              "anomalySensitivity": {
                                "default": 0.5,
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "notificationCooldownSeconds": {
                                "default": 0,
                                "maximum": 604800,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "recoveryConfirmationBeats": {
                                "default": 1,
                                "maximum": 10,
                                "minimum": 1,
                                "type": "integer"
                              },
                              "regimeChangeMode": {
                                "default": "manual",
                                "enum": ["manual", "automatic"],
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "measurements": {
                            "additionalProperties": {
                              "additionalProperties": false,
                              "properties": {
                                "disabledRules": {
                                  "items": {
                                    "enum": [
                                      "minimum",
                                      "maximum",
                                      "zero",
                                      "nonzero",
                                      "absolute_delta",
                                      "percentage_delta",
                                      "ratio_minimum",
                                      "ratio_maximum"
                                    ],
                                    "type": "string"
                                  },
                                  "maxItems": 8,
                                  "type": "array"
                                },
                                "maximum": { "type": "number" },
                                "maximumAbsoluteDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "maximumPercentageDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "metricType": {
                                  "default": "gauge",
                                  "enum": [
                                    "gauge",
                                    "count",
                                    "rate",
                                    "duration",
                                    "counter",
                                    "size"
                                  ],
                                  "type": "string"
                                },
                                "minimum": { "type": "number" },
                                "missingPolicy": {
                                  "default": "skip",
                                  "enum": ["skip", "zero", "reject"],
                                  "type": "string"
                                },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                },
                                "ratio": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "denominator": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[a-z][a-z0-9_]*$",
                                      "type": "string"
                                    },
                                    "maximum": { "type": "number" },
                                    "minimum": { "type": "number" }
                                  },
                                  "required": ["denominator"],
                                  "type": "object"
                                },
                                "ruleAction": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "mode": {
                                      "enum": ["inactive", "active"],
                                      "type": "string"
                                    },
                                    "version": { "const": 1, "type": "number" }
                                  },
                                  "required": ["mode", "version"],
                                  "type": "object"
                                },
                                "rulePolicy": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "consecutiveObservations": {
                                          "default": 1,
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        },
                                        "severity": {
                                          "default": "critical",
                                          "enum": [
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "sustainedConsequence": {
                                          "default": "critical",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "sustainedCriterion": {
                                          "default": {
                                            "kind": "observations",
                                            "observations": 1
                                          },
                                          "oneOf": [
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "observations",
                                                  "type": "string"
                                                },
                                                "observations": {
                                                  "maximum": 10,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": [
                                                "kind",
                                                "observations"
                                              ],
                                              "type": "object"
                                            },
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "elapsed_time",
                                                  "type": "string"
                                                },
                                                "seconds": {
                                                  "maximum": 604800,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": ["kind", "seconds"],
                                              "type": "object"
                                            }
                                          ]
                                        },
                                        "transientConsequence": {
                                          "default": "none",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "version": {
                                          "const": 1,
                                          "type": "number"
                                        }
                                      },
                                      "required": ["version"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "sensitivity": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transform": {
                                  "default": "none",
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "zeroExpectation": {
                                  "enum": ["zero", "nonzero"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "propertyNames": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "type": "object"
                          },
                          "name": {
                            "maxLength": 120,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "timeZone": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          }
                        },
                        "required": ["heartbeatExpectation"],
                        "type": "object"
                      },
                      "version": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": ["value", "version"],
                    "type": "object"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "lifecycle": {
                    "enum": ["active", "paused", "archived"],
                    "type": "string"
                  },
                  "lifecycleChangedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "maintenance": {
                    "additionalProperties": false,
                    "properties": {
                      "endsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "reason": {
                        "maxLength": 256,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "startsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      }
                    },
                    "required": ["endsAt", "startsAt"],
                    "type": "object"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "nextDeadline": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "replayed": { "type": "boolean" },
                  "restorableUntil": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  }
                },
                "required": [
                  "configuration",
                  "jurisdiction",
                  "lifecycle",
                  "monitorKey",
                  "replayed"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpUpdateMonitorConfigurationResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpUpdateMonitorConfigurationResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Only an active monitor reports an armed deadline, and a restorable-until timestamp is present exactly for an archived monitor."
        ]
      },
      "McpUpdateRuleWorkbenchDraftInput": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "type": "boolean" },
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "proposal": {
            "additionalProperties": false,
            "properties": {
              "definition": {
                "additionalProperties": false,
                "properties": {
                  "disabledRules": {
                    "items": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "maxItems": 8,
                    "type": "array"
                  },
                  "maximum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "maximumAbsoluteDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "maximumPercentageDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "metricType": {
                    "enum": [
                      "gauge",
                      "count",
                      "rate",
                      "duration",
                      "counter",
                      "size"
                    ],
                    "type": "string"
                  },
                  "minimum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "missingPolicy": {
                    "enum": ["skip", "zero", "reject"],
                    "type": "string"
                  },
                  "ratio": {
                    "additionalProperties": false,
                    "properties": {
                      "denominator": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "maximum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      },
                      "minimum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      }
                    },
                    "type": "object"
                  },
                  "ruleAction": {
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "enum": ["inactive", "active"],
                        "type": "string"
                      },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["mode", "version"],
                    "type": "object"
                  },
                  "rulePolicy": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "consecutiveObservations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "sustainedConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "sustainedCriterion": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "observations",
                                    "type": "string"
                                  },
                                  "observations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "observations"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "elapsed_time",
                                    "type": "string"
                                  },
                                  "seconds": {
                                    "maximum": 604800,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "seconds"],
                                "type": "object"
                              }
                            ]
                          },
                          "transientConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["version"],
                        "type": "object"
                      }
                    ]
                  },
                  "transform": { "enum": ["none", "log1p"], "type": "string" },
                  "unit": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "zeroExpectation": {
                    "anyOf": [
                      { "enum": ["zero", "nonzero"], "type": "string" },
                      { "type": "null" }
                    ]
                  }
                },
                "type": "object"
              },
              "measurementKey": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            },
            "required": ["definition", "measurementKey"],
            "type": "object"
          }
        },
        "required": [
          "expectedDraftVersion",
          "proposal",
          "draftId",
          "idempotencyKey",
          "monitorId"
        ],
        "title": "McpUpdateRuleWorkbenchDraftInput",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpUpdateRuleWorkbenchDraftInputSchema",
        "x-signalsitter-source-only-refinements": [
          "The nested measurement patch applies the shared coupled-field and breach-policy refinements."
        ]
      },
      "McpUpdateRuleWorkbenchDraftResult": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "data": {
                "additionalProperties": false,
                "properties": {
                  "appliedConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "baseConfigurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "closedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "history": {
                    "additionalProperties": false,
                    "properties": {
                      "fromSequence": {
                        "maximum": 9007199254740991,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "frozenAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "observationCount": {
                        "maximum": 200,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "throughSequence": {
                        "maximum": 9007199254740991,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": ["frozenAt", "observationCount"],
                    "type": "object"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "proposal": {
                    "additionalProperties": false,
                    "properties": {
                      "definition": {
                        "additionalProperties": false,
                        "properties": {
                          "disabledRules": {
                            "items": {
                              "enum": [
                                "minimum",
                                "maximum",
                                "zero",
                                "nonzero",
                                "absolute_delta",
                                "percentage_delta",
                                "ratio_minimum",
                                "ratio_maximum"
                              ],
                              "type": "string"
                            },
                            "maxItems": 8,
                            "type": "array"
                          },
                          "maximum": {
                            "anyOf": [{ "type": "number" }, { "type": "null" }]
                          },
                          "maximumAbsoluteDelta": {
                            "anyOf": [
                              { "minimum": 0, "type": "number" },
                              { "type": "null" }
                            ]
                          },
                          "maximumPercentageDelta": {
                            "anyOf": [
                              { "minimum": 0, "type": "number" },
                              { "type": "null" }
                            ]
                          },
                          "metricType": {
                            "enum": [
                              "gauge",
                              "count",
                              "rate",
                              "duration",
                              "counter",
                              "size"
                            ],
                            "type": "string"
                          },
                          "minimum": {
                            "anyOf": [{ "type": "number" }, { "type": "null" }]
                          },
                          "missingPolicy": {
                            "enum": ["skip", "zero", "reject"],
                            "type": "string"
                          },
                          "ratio": {
                            "additionalProperties": false,
                            "properties": {
                              "denominator": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "maximum": {
                                "anyOf": [
                                  { "type": "number" },
                                  { "type": "null" }
                                ]
                              },
                              "minimum": {
                                "anyOf": [
                                  { "type": "number" },
                                  { "type": "null" }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          "ruleAction": {
                            "additionalProperties": false,
                            "properties": {
                              "mode": {
                                "enum": ["inactive", "active"],
                                "type": "string"
                              },
                              "version": { "const": 1, "type": "number" }
                            },
                            "required": ["mode", "version"],
                            "type": "object"
                          },
                          "rulePolicy": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "consecutiveObservations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  "severity": {
                                    "enum": ["info", "warning", "critical"],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "sustainedConsequence": {
                                    "enum": [
                                      "none",
                                      "info",
                                      "warning",
                                      "critical"
                                    ],
                                    "type": "string"
                                  },
                                  "sustainedCriterion": {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "kind": {
                                            "const": "observations",
                                            "type": "string"
                                          },
                                          "observations": {
                                            "maximum": 10,
                                            "minimum": 1,
                                            "type": "integer"
                                          }
                                        },
                                        "required": ["kind", "observations"],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "kind": {
                                            "const": "elapsed_time",
                                            "type": "string"
                                          },
                                          "seconds": {
                                            "maximum": 604800,
                                            "minimum": 1,
                                            "type": "integer"
                                          }
                                        },
                                        "required": ["kind", "seconds"],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  "transientConsequence": {
                                    "enum": [
                                      "none",
                                      "info",
                                      "warning",
                                      "critical"
                                    ],
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["version"],
                                "type": "object"
                              }
                            ]
                          },
                          "transform": {
                            "enum": ["none", "log1p"],
                            "type": "string"
                          },
                          "unit": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "zeroExpectation": {
                            "anyOf": [
                              { "enum": ["zero", "nonzero"], "type": "string" },
                              { "type": "null" }
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "measurementKey": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    },
                    "required": ["definition", "measurementKey"],
                    "type": "object"
                  },
                  "status": {
                    "anyOf": [
                      {
                        "enum": ["open", "applied", "canceled"],
                        "type": "string"
                      },
                      {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    ]
                  },
                  "updatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  }
                },
                "required": [
                  "baseConfigurationVersion",
                  "createdAt",
                  "history",
                  "id",
                  "jurisdiction",
                  "monitorKey",
                  "proposal",
                  "status",
                  "updatedAt",
                  "version"
                ],
                "type": "object"
              },
              "ok": { "const": true, "type": "boolean" }
            },
            "required": ["ok", "data"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "enum": [
                      "signalsitter.authentication_required",
                      "signalsitter.permission_denied",
                      "signalsitter.not_found",
                      "signalsitter.validation_failed",
                      "signalsitter.confirmation_required",
                      "signalsitter.idempotency_conflict",
                      "signalsitter.conflict",
                      "signalsitter.precondition_failed",
                      "signalsitter.rate_limited",
                      "signalsitter.temporarily_unavailable",
                      "signalsitter.internal_error"
                    ],
                    "type": "string"
                  },
                  "correlationId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "message": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "retryable": { "type": "boolean" },
                  "retryAfterSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "integer"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "correlationId",
                  "requestId",
                  "retryable"
                ],
                "type": "object"
              },
              "ok": { "const": false, "type": "boolean" }
            },
            "required": ["ok", "error"],
            "type": "object"
          }
        ],
        "title": "McpUpdateRuleWorkbenchDraftResult",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/mcp.ts#McpUpdateRuleWorkbenchDraftResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Draft lifecycle timestamps and applied configuration version agree with draft status.",
          "Error results carry retryAfterSeconds only when the error is retryable."
        ]
      },
      "MonitorActivation": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "configurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "initializedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "jurisdiction": {
                "enum": ["unrestricted", "eu", "us", "fedramp"],
                "type": "string"
              },
              "monitorKey": {
                "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "serverTime": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "state": { "const": "waiting", "type": "string" }
            },
            "required": [
              "configurationVersion",
              "initializedAt",
              "jurisdiction",
              "monitorKey",
              "serverTime",
              "state"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "configurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "firstAcceptedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "heartbeatLearning": {
                "additionalProperties": false,
                "properties": {
                  "measuredIntervalSeconds": {
                    "exclusiveMinimum": 0,
                    "type": "number"
                  },
                  "requiredSamples": {
                    "exclusiveMinimum": 0,
                    "maximum": 64,
                    "type": "integer"
                  },
                  "samples": { "maximum": 64, "minimum": 0, "type": "integer" },
                  "status": {
                    "anyOf": [
                      {
                        "enum": [
                          "collecting",
                          "inconsistent",
                          "unsupported_cadence"
                        ],
                        "type": "string"
                      },
                      {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["requiredSamples", "samples", "status"],
                "type": "object"
              },
              "initializedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "jurisdiction": {
                "enum": ["unrestricted", "eu", "us", "fedramp"],
                "type": "string"
              },
              "monitorKey": {
                "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "nextDeadline": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "serverTime": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "state": { "const": "accepted", "type": "string" }
            },
            "required": [
              "configurationVersion",
              "initializedAt",
              "jurisdiction",
              "monitorKey",
              "serverTime",
              "firstAcceptedAt",
              "state"
            ],
            "type": "object"
          }
        ],
        "title": "MonitorActivation",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/onboarding.ts#MonitorActivationSchema"
      },
      "MonitorActiveIncident": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "openedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "state": { "enum": ["open", "recovering"], "type": "string" }
        },
        "required": ["id", "openedAt", "state"],
        "title": "MonitorActiveIncident",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorActiveIncidentSchema"
      },
      "MonitorCallbackBindingRequest": {
        "additionalProperties": false,
        "properties": {
          "binding": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "disabled", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "organization_default", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": { "const": "named", "type": "string" }
                },
                "required": ["kind", "alias"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "inline", "type": "string" },
                  "url": { "format": "uri", "maxLength": 512, "type": "string" }
                },
                "required": ["kind", "url"],
                "type": "object"
              }
            ]
          },
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "rotateSigningSecret": { "type": "boolean" }
        },
        "required": ["binding"],
        "title": "MonitorCallbackBindingRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#MonitorCallbackBindingRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "Inline bindings must name a public HTTPS destination without credentials or fragments."
        ]
      },
      "MonitorCallbackBindingResult": {
        "additionalProperties": false,
        "properties": {
          "binding": {
            "additionalProperties": false,
            "properties": {
              "binding": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "disabled", "type": "string" }
                    },
                    "required": ["kind"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "organization_default",
                        "type": "string"
                      }
                    },
                    "required": ["kind"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "alias": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "kind": { "const": "named", "type": "string" }
                    },
                    "required": ["kind", "alias"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "inline", "type": "string" },
                      "url": {
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      }
                    },
                    "required": ["kind", "url"],
                    "type": "object"
                  }
                ]
              },
              "configurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "monitorKey": {
                "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "resolution": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "disabled", "type": "string" }
                    },
                    "required": ["kind"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "endpoint": {
                        "properties": {
                          "alias": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "createdAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "disabledAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "generation": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          },
                          "id": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "isOrganizationDefault": { "type": "boolean" },
                          "kind": {
                            "default": "webhook",
                            "enum": [
                              "webhook",
                              "whooshbang_subscriber",
                              "whooshbang_group"
                            ],
                            "type": "string"
                          },
                          "lifecycle": {
                            "enum": ["active", "disabled"],
                            "type": "string"
                          },
                          "projectId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "secret": {
                            "additionalProperties": false,
                            "properties": {
                              "issuedAt": {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              "overlapEndsAt": {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              "previousVersion": {
                                "exclusiveMinimum": 0,
                                "maximum": 65535,
                                "type": "integer"
                              },
                              "version": {
                                "exclusiveMinimum": 0,
                                "maximum": 65535,
                                "type": "integer"
                              }
                            },
                            "required": ["version", "issuedAt"],
                            "type": "object"
                          },
                          "updatedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "url": {
                            "format": "uri",
                            "maxLength": 512,
                            "type": "string"
                          },
                          "whooshbang": {
                            "additionalProperties": false,
                            "properties": {
                              "actorId": {
                                "maxLength": 128,
                                "minLength": 1,
                                "type": "string"
                              },
                              "contractVersion": {
                                "maxLength": 64,
                                "minLength": 1,
                                "type": "string"
                              },
                              "notifierId": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                                "type": "string"
                              }
                            },
                            "required": [
                              "actorId",
                              "contractVersion",
                              "notifierId"
                            ],
                            "type": "object"
                          },
                          "whooshbangGroup": {
                            "additionalProperties": false,
                            "properties": {
                              "contractVersion": {
                                "maxLength": 64,
                                "minLength": 1,
                                "type": "string"
                              },
                              "notifierId": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                                "type": "string"
                              }
                            },
                            "required": ["contractVersion", "notifierId"],
                            "type": "object"
                          }
                        },
                        "required": [
                          "id",
                          "projectId",
                          "alias",
                          "lifecycle",
                          "isOrganizationDefault",
                          "generation",
                          "createdAt",
                          "updatedAt"
                        ],
                        "type": "object"
                      },
                      "kind": { "const": "endpoint", "type": "string" }
                    },
                    "required": ["kind", "endpoint"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "inline", "type": "string" },
                      "url": {
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      }
                    },
                    "required": ["kind", "url"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "unresolved", "type": "string" },
                      "reason": {
                        "enum": [
                          "no_organization_default",
                          "alias_not_found",
                          "endpoint_disabled",
                          "endpoint_removed"
                        ],
                        "type": "string"
                      }
                    },
                    "required": ["kind", "reason"],
                    "type": "object"
                  }
                ]
              }
            },
            "required": [
              "monitorKey",
              "binding",
              "resolution",
              "configurationVersion"
            ],
            "type": "object"
          },
          "replayed": { "type": "boolean" },
          "signingSecret": {
            "properties": {
              "onlyShownOnce": { "const": true, "type": "boolean" },
              "overlapEndsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "previousVersion": {
                "exclusiveMinimum": 0,
                "maximum": 65535,
                "type": "integer"
              },
              "revealedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "secret": {
                "pattern": "^sigcb_v1_[A-Za-z0-9_-]{43}$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 65535,
                "type": "integer"
              }
            },
            "required": ["secret", "revealedAt", "onlyShownOnce", "version"],
            "type": "object"
          }
        },
        "required": ["binding", "replayed"],
        "title": "MonitorCallbackBindingResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#MonitorCallbackBindingResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Inline bindings must name a public HTTPS destination without credentials or fragments.",
          "A resolved endpoint preserves its lifecycle, default, and rotation-overlap refinements."
        ]
      },
      "MonitorCallbackBindingUpdateCommand": {
        "additionalProperties": false,
        "properties": {
          "binding": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "disabled", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "organization_default", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": { "const": "named", "type": "string" }
                },
                "required": ["kind", "alias"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "inline", "type": "string" },
                  "url": { "format": "uri", "maxLength": 512, "type": "string" }
                },
                "required": ["kind", "url"],
                "type": "object"
              }
            ]
          },
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "monitorKey": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "rotateSigningSecret": { "type": "boolean" }
        },
        "required": ["monitorKey", "idempotencyKey", "binding"],
        "title": "MonitorCallbackBindingUpdateCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#MonitorCallbackBindingUpdateCommandSchema",
        "x-signalsitter-source-only-refinements": [
          "Inline bindings must name a public HTTPS destination without credentials or fragments."
        ]
      },
      "MonitorCallbackBindingView": {
        "additionalProperties": false,
        "properties": {
          "binding": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "disabled", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "organization_default", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": { "const": "named", "type": "string" }
                },
                "required": ["kind", "alias"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "inline", "type": "string" },
                  "url": { "format": "uri", "maxLength": 512, "type": "string" }
                },
                "required": ["kind", "url"],
                "type": "object"
              }
            ]
          },
          "configurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "resolution": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "disabled", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "endpoint": {
                    "properties": {
                      "alias": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "createdAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "disabledAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "generation": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "isOrganizationDefault": { "type": "boolean" },
                      "kind": {
                        "default": "webhook",
                        "enum": [
                          "webhook",
                          "whooshbang_subscriber",
                          "whooshbang_group"
                        ],
                        "type": "string"
                      },
                      "lifecycle": {
                        "enum": ["active", "disabled"],
                        "type": "string"
                      },
                      "projectId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "secret": {
                        "additionalProperties": false,
                        "properties": {
                          "issuedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "overlapEndsAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "previousVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 65535,
                            "type": "integer"
                          }
                        },
                        "required": ["version", "issuedAt"],
                        "type": "object"
                      },
                      "updatedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "url": {
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      },
                      "whooshbang": {
                        "additionalProperties": false,
                        "properties": {
                          "actorId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "type": "string"
                          },
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "actorId",
                          "contractVersion",
                          "notifierId"
                        ],
                        "type": "object"
                      },
                      "whooshbangGroup": {
                        "additionalProperties": false,
                        "properties": {
                          "contractVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "notifierId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                            "type": "string"
                          }
                        },
                        "required": ["contractVersion", "notifierId"],
                        "type": "object"
                      }
                    },
                    "required": [
                      "id",
                      "projectId",
                      "alias",
                      "lifecycle",
                      "isOrganizationDefault",
                      "generation",
                      "createdAt",
                      "updatedAt"
                    ],
                    "type": "object"
                  },
                  "kind": { "const": "endpoint", "type": "string" }
                },
                "required": ["kind", "endpoint"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "inline", "type": "string" },
                  "url": { "format": "uri", "maxLength": 512, "type": "string" }
                },
                "required": ["kind", "url"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "unresolved", "type": "string" },
                  "reason": {
                    "enum": [
                      "no_organization_default",
                      "alias_not_found",
                      "endpoint_disabled",
                      "endpoint_removed"
                    ],
                    "type": "string"
                  }
                },
                "required": ["kind", "reason"],
                "type": "object"
              }
            ]
          }
        },
        "required": [
          "monitorKey",
          "binding",
          "resolution",
          "configurationVersion"
        ],
        "title": "MonitorCallbackBindingView",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#MonitorCallbackBindingViewSchema",
        "x-signalsitter-source-only-refinements": [
          "Inline bindings must name a public HTTPS destination without credentials or fragments.",
          "A resolved endpoint preserves its lifecycle, default, and rotation-overlap refinements."
        ]
      },
      "MonitorCallbackResolution": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": { "kind": { "const": "disabled", "type": "string" } },
            "required": ["kind"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "endpoint": {
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "disabledAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "generation": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "isOrganizationDefault": { "type": "boolean" },
                  "kind": {
                    "default": "webhook",
                    "enum": [
                      "webhook",
                      "whooshbang_subscriber",
                      "whooshbang_group"
                    ],
                    "type": "string"
                  },
                  "lifecycle": {
                    "enum": ["active", "disabled"],
                    "type": "string"
                  },
                  "projectId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "secret": {
                    "additionalProperties": false,
                    "properties": {
                      "issuedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "overlapEndsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "previousVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      }
                    },
                    "required": ["version", "issuedAt"],
                    "type": "object"
                  },
                  "updatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "url": {
                    "format": "uri",
                    "maxLength": 512,
                    "type": "string"
                  },
                  "whooshbang": {
                    "additionalProperties": false,
                    "properties": {
                      "actorId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "type": "string"
                      },
                      "contractVersion": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      },
                      "notifierId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      }
                    },
                    "required": ["actorId", "contractVersion", "notifierId"],
                    "type": "object"
                  },
                  "whooshbangGroup": {
                    "additionalProperties": false,
                    "properties": {
                      "contractVersion": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      },
                      "notifierId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      }
                    },
                    "required": ["contractVersion", "notifierId"],
                    "type": "object"
                  }
                },
                "required": [
                  "id",
                  "projectId",
                  "alias",
                  "lifecycle",
                  "isOrganizationDefault",
                  "generation",
                  "createdAt",
                  "updatedAt"
                ],
                "type": "object"
              },
              "kind": { "const": "endpoint", "type": "string" }
            },
            "required": ["kind", "endpoint"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "kind": { "const": "inline", "type": "string" },
              "url": { "format": "uri", "maxLength": 512, "type": "string" }
            },
            "required": ["kind", "url"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "kind": { "const": "unresolved", "type": "string" },
              "reason": {
                "enum": [
                  "no_organization_default",
                  "alias_not_found",
                  "endpoint_disabled",
                  "endpoint_removed"
                ],
                "type": "string"
              }
            },
            "required": ["kind", "reason"],
            "type": "object"
          }
        ],
        "title": "MonitorCallbackResolution",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#MonitorCallbackResolutionSchema",
        "x-signalsitter-source-only-refinements": [
          "A resolved endpoint preserves its lifecycle, default, and rotation-overlap refinements."
        ]
      },
      "MonitorChange": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "actor": {
                "properties": {
                  "display": {
                    "maxLength": 160,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": {
                    "anyOf": [
                      {
                        "enum": [
                          "human",
                          "api_credential",
                          "mcp_client",
                          "operator",
                          "system"
                        ],
                        "type": "string"
                      },
                      {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["kind"],
                "type": "object"
              },
              "configurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "kind": { "const": "configuration", "type": "string" },
              "occurredAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "sourceRequestId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                "type": "string"
              }
            },
            "required": ["actor", "configurationVersion", "occurredAt", "kind"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "action": {
                "enum": [
                  "pause",
                  "resume",
                  "archive",
                  "restore",
                  "enter_maintenance",
                  "exit_maintenance"
                ],
                "type": "string"
              },
              "actor": {
                "properties": {
                  "display": {
                    "maxLength": 160,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": {
                    "anyOf": [
                      {
                        "enum": [
                          "human",
                          "api_credential",
                          "mcp_client",
                          "operator",
                          "system"
                        ],
                        "type": "string"
                      },
                      {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["kind"],
                "type": "object"
              },
              "configurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "kind": { "const": "lifecycle", "type": "string" },
              "lifecycleFrom": {
                "enum": ["active", "paused", "archived"],
                "type": "string"
              },
              "lifecycleTo": {
                "enum": ["active", "paused", "archived"],
                "type": "string"
              },
              "maintenance": {
                "additionalProperties": false,
                "properties": {
                  "endsAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "reason": {
                    "maxLength": 256,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "startsAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  }
                },
                "required": ["endsAt", "startsAt"],
                "type": "object"
              },
              "occurredAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "sourceRequestId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                "type": "string"
              }
            },
            "required": [
              "actor",
              "configurationVersion",
              "occurredAt",
              "action",
              "kind",
              "lifecycleFrom",
              "lifecycleTo"
            ],
            "type": "object"
          }
        ],
        "title": "MonitorChange",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorChangeSchema",
        "x-signalsitter-source-only-refinements": [
          "Nested actor and maintenance-window refinements apply to the embedded actor and optional window."
        ]
      },
      "MonitorChangePage": {
        "properties": {
          "items": {
            "items": {
              "oneOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "actor": {
                      "properties": {
                        "display": {
                          "maxLength": 160,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "id": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "kind": {
                          "anyOf": [
                            {
                              "enum": [
                                "human",
                                "api_credential",
                                "mcp_client",
                                "operator",
                                "system"
                              ],
                              "type": "string"
                            },
                            {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            }
                          ]
                        }
                      },
                      "required": ["kind"],
                      "type": "object"
                    },
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "kind": { "const": "configuration", "type": "string" },
                    "occurredAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "sourceRequestId": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "actor",
                    "configurationVersion",
                    "occurredAt",
                    "kind"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "action": {
                      "enum": [
                        "pause",
                        "resume",
                        "archive",
                        "restore",
                        "enter_maintenance",
                        "exit_maintenance"
                      ],
                      "type": "string"
                    },
                    "actor": {
                      "properties": {
                        "display": {
                          "maxLength": 160,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "id": {
                          "maxLength": 128,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                          "type": "string"
                        },
                        "kind": {
                          "anyOf": [
                            {
                              "enum": [
                                "human",
                                "api_credential",
                                "mcp_client",
                                "operator",
                                "system"
                              ],
                              "type": "string"
                            },
                            {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            }
                          ]
                        }
                      },
                      "required": ["kind"],
                      "type": "object"
                    },
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "kind": { "const": "lifecycle", "type": "string" },
                    "lifecycleFrom": {
                      "enum": ["active", "paused", "archived"],
                      "type": "string"
                    },
                    "lifecycleTo": {
                      "enum": ["active", "paused", "archived"],
                      "type": "string"
                    },
                    "maintenance": {
                      "additionalProperties": false,
                      "properties": {
                        "endsAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "reason": {
                          "maxLength": 256,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "startsAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        }
                      },
                      "required": ["endsAt", "startsAt"],
                      "type": "object"
                    },
                    "occurredAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "sourceRequestId": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "actor",
                    "configurationVersion",
                    "occurredAt",
                    "action",
                    "kind",
                    "lifecycleFrom",
                    "lifecycleTo"
                  ],
                  "type": "object"
                }
              ]
            },
            "maxItems": 200,
            "type": "array"
          },
          "nextCursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["items"],
        "title": "MonitorChangePage",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorChangePageSchema",
        "x-signalsitter-source-only-refinements": [
          "Nested monitor-change refinements apply to every change in the page."
        ]
      },
      "MonitorConfiguration": {
        "additionalProperties": false,
        "properties": {
          "callback": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "disabled", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "organization_default", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": { "const": "named", "type": "string" }
                },
                "required": ["kind", "alias"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "inline", "type": "string" },
                  "url": { "format": "uri", "maxLength": 512, "type": "string" }
                },
                "required": ["kind", "url"],
                "type": "object"
              }
            ]
          },
          "heartbeatExpectation": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "default": 60,
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "intervalSeconds": {
                    "maximum": 31536000,
                    "minimum": 60,
                    "type": "integer"
                  },
                  "state": { "const": "enabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["intervalSeconds", "state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "state": { "const": "disabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "state": { "const": "automatic", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              }
            ]
          },
          "incidentPolicy": {
            "additionalProperties": false,
            "default": {
              "anomalySensitivity": 0.5,
              "notificationCooldownSeconds": 0,
              "recoveryConfirmationBeats": 1,
              "regimeChangeMode": "manual"
            },
            "properties": {
              "anomalySensitivity": {
                "default": 0.5,
                "maximum": 1,
                "minimum": 0,
                "type": "number"
              },
              "notificationCooldownSeconds": {
                "default": 0,
                "maximum": 604800,
                "minimum": 0,
                "type": "integer"
              },
              "recoveryConfirmationBeats": {
                "default": 1,
                "maximum": 10,
                "minimum": 1,
                "type": "integer"
              },
              "regimeChangeMode": {
                "default": "manual",
                "enum": ["manual", "automatic"],
                "type": "string"
              }
            },
            "type": "object"
          },
          "measurements": {
            "additionalProperties": {
              "additionalProperties": false,
              "properties": {
                "disabledRules": {
                  "items": {
                    "enum": [
                      "minimum",
                      "maximum",
                      "zero",
                      "nonzero",
                      "absolute_delta",
                      "percentage_delta",
                      "ratio_minimum",
                      "ratio_maximum"
                    ],
                    "type": "string"
                  },
                  "maxItems": 8,
                  "type": "array"
                },
                "maximum": { "type": "number" },
                "maximumAbsoluteDelta": { "minimum": 0, "type": "number" },
                "maximumPercentageDelta": { "minimum": 0, "type": "number" },
                "metricType": {
                  "default": "gauge",
                  "enum": [
                    "gauge",
                    "count",
                    "rate",
                    "duration",
                    "counter",
                    "size"
                  ],
                  "type": "string"
                },
                "minimum": { "type": "number" },
                "missingPolicy": {
                  "default": "skip",
                  "enum": ["skip", "zero", "reject"],
                  "type": "string"
                },
                "mode": {
                  "enum": ["heartbeat", "shadow", "active"],
                  "type": "string"
                },
                "ratio": {
                  "additionalProperties": false,
                  "properties": {
                    "denominator": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maximum": { "type": "number" },
                    "minimum": { "type": "number" }
                  },
                  "required": ["denominator"],
                  "type": "object"
                },
                "ruleAction": {
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "enum": ["inactive", "active"],
                      "type": "string"
                    },
                    "version": { "const": 1, "type": "number" }
                  },
                  "required": ["mode", "version"],
                  "type": "object"
                },
                "rulePolicy": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "consecutiveObservations": {
                          "default": 1,
                          "maximum": 10,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "severity": {
                          "default": "critical",
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "sustainedConsequence": {
                          "default": "critical",
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "sustainedCriterion": {
                          "default": {
                            "kind": "observations",
                            "observations": 1
                          },
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "observations",
                                  "type": "string"
                                },
                                "observations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "observations"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "elapsed_time",
                                  "type": "string"
                                },
                                "seconds": {
                                  "maximum": 604800,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "seconds"],
                              "type": "object"
                            }
                          ]
                        },
                        "transientConsequence": {
                          "default": "none",
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["version"],
                      "type": "object"
                    }
                  ]
                },
                "sensitivity": { "maximum": 1, "minimum": 0, "type": "number" },
                "transform": {
                  "default": "none",
                  "enum": ["none", "log1p"],
                  "type": "string"
                },
                "unit": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "zeroExpectation": {
                  "enum": ["zero", "nonzero"],
                  "type": "string"
                }
              },
              "type": "object"
            },
            "propertyNames": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "type": "object"
          },
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "timeZone": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "required": ["heartbeatExpectation"],
        "title": "MonitorConfiguration",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/publish.ts#ResolvedMonitorConfigurationSchema",
        "x-signalsitter-source-only-refinements": [
          "Inline callback URLs require a public HTTPS hostname without credentials or fragments.",
          "Measurement and ratio minima cannot exceed maxima, ratio denominators name another configured measurement, log1p requires a non-negative metric type, and configuration contains at most sixteen measurement definitions and thirty-two explicit numeric rules."
        ]
      },
      "MonitorConfigurationPatch": {
        "additionalProperties": false,
        "properties": {
          "callback": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "disabled", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "organization_default", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": { "const": "named", "type": "string" }
                },
                "required": ["kind", "alias"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "inline", "type": "string" },
                  "url": { "format": "uri", "maxLength": 512, "type": "string" }
                },
                "required": ["kind", "url"],
                "type": "object"
              }
            ]
          },
          "graceSeconds": {
            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
            "maximum": 604800,
            "minimum": 0,
            "type": "integer"
          },
          "heartbeatExpectation": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "default": 60,
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "intervalSeconds": {
                    "maximum": 31536000,
                    "minimum": 60,
                    "type": "integer"
                  },
                  "state": { "const": "enabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["intervalSeconds", "state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "state": { "const": "disabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "state": { "const": "automatic", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              }
            ]
          },
          "incidentPolicy": {
            "additionalProperties": false,
            "properties": {
              "anomalySensitivity": {
                "maximum": 1,
                "minimum": 0,
                "type": "number"
              },
              "notificationCooldownSeconds": {
                "maximum": 604800,
                "minimum": 0,
                "type": "integer"
              },
              "recoveryConfirmationBeats": {
                "maximum": 10,
                "minimum": 1,
                "type": "integer"
              },
              "regimeChangeMode": {
                "enum": ["manual", "automatic"],
                "type": "string"
              }
            },
            "type": "object"
          },
          "intervalSeconds": {
            "maximum": 31536000,
            "minimum": 60,
            "type": "integer"
          },
          "measurements": {
            "additionalProperties": {
              "additionalProperties": false,
              "properties": {
                "disabledRules": {
                  "items": {
                    "enum": [
                      "minimum",
                      "maximum",
                      "zero",
                      "nonzero",
                      "absolute_delta",
                      "percentage_delta",
                      "ratio_minimum",
                      "ratio_maximum"
                    ],
                    "type": "string"
                  },
                  "maxItems": 8,
                  "type": "array"
                },
                "maximum": {
                  "anyOf": [{ "type": "number" }, { "type": "null" }]
                },
                "maximumAbsoluteDelta": {
                  "anyOf": [
                    { "minimum": 0, "type": "number" },
                    { "type": "null" }
                  ]
                },
                "maximumPercentageDelta": {
                  "anyOf": [
                    { "minimum": 0, "type": "number" },
                    { "type": "null" }
                  ]
                },
                "metricType": {
                  "enum": [
                    "gauge",
                    "count",
                    "rate",
                    "duration",
                    "counter",
                    "size"
                  ],
                  "type": "string"
                },
                "minimum": {
                  "anyOf": [{ "type": "number" }, { "type": "null" }]
                },
                "missingPolicy": {
                  "enum": ["skip", "zero", "reject"],
                  "type": "string"
                },
                "mode": {
                  "enum": ["heartbeat", "shadow", "active"],
                  "type": "string"
                },
                "ratio": {
                  "additionalProperties": false,
                  "properties": {
                    "denominator": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maximum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    },
                    "minimum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    }
                  },
                  "type": "object"
                },
                "ruleAction": {
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "enum": ["inactive", "active"],
                      "type": "string"
                    },
                    "version": { "const": 1, "type": "number" }
                  },
                  "required": ["mode", "version"],
                  "type": "object"
                },
                "rulePolicy": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "consecutiveObservations": {
                          "maximum": 10,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "sustainedConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "sustainedCriterion": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "observations",
                                  "type": "string"
                                },
                                "observations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "observations"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "elapsed_time",
                                  "type": "string"
                                },
                                "seconds": {
                                  "maximum": 604800,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "seconds"],
                              "type": "object"
                            }
                          ]
                        },
                        "transientConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["version"],
                      "type": "object"
                    }
                  ]
                },
                "sensitivity": { "maximum": 1, "minimum": 0, "type": "number" },
                "transform": { "enum": ["none", "log1p"], "type": "string" },
                "unit": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "zeroExpectation": {
                  "anyOf": [
                    { "enum": ["zero", "nonzero"], "type": "string" },
                    { "type": "null" }
                  ]
                }
              },
              "type": "object"
            },
            "propertyNames": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "type": "object"
          },
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "timeZone": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "title": "MonitorConfigurationPatch",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/publish.ts#MonitorConfigurationPatchSchema",
        "x-signalsitter-source-only-refinements": [
          "Inline callback URLs require a public HTTPS hostname without credentials or fragments.",
          "Measurement and ratio minima cannot exceed maxima, ratio denominators cannot name the same measurement, log1p requires a non-negative metric type, and configuration contains at most sixteen measurement definitions and thirty-two explicit numeric rules."
        ]
      },
      "MonitorConfigurationUpdatePatch": {
        "additionalProperties": false,
        "properties": {
          "graceSeconds": {
            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
            "maximum": 604800,
            "minimum": 0,
            "type": "integer"
          },
          "heartbeatExpectation": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "default": 60,
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "intervalSeconds": {
                    "maximum": 31536000,
                    "minimum": 60,
                    "type": "integer"
                  },
                  "state": { "const": "enabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["intervalSeconds", "state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "state": { "const": "disabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "state": { "const": "automatic", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              }
            ]
          },
          "incidentPolicy": {
            "additionalProperties": false,
            "properties": {
              "anomalySensitivity": {
                "maximum": 1,
                "minimum": 0,
                "type": "number"
              },
              "notificationCooldownSeconds": {
                "maximum": 604800,
                "minimum": 0,
                "type": "integer"
              },
              "recoveryConfirmationBeats": {
                "maximum": 10,
                "minimum": 1,
                "type": "integer"
              },
              "regimeChangeMode": {
                "enum": ["manual", "automatic"],
                "type": "string"
              }
            },
            "type": "object"
          },
          "intervalSeconds": {
            "maximum": 31536000,
            "minimum": 60,
            "type": "integer"
          },
          "measurements": {
            "additionalProperties": {
              "additionalProperties": false,
              "properties": {
                "disabledRules": {
                  "items": {
                    "enum": [
                      "minimum",
                      "maximum",
                      "zero",
                      "nonzero",
                      "absolute_delta",
                      "percentage_delta",
                      "ratio_minimum",
                      "ratio_maximum"
                    ],
                    "type": "string"
                  },
                  "maxItems": 8,
                  "type": "array"
                },
                "maximum": {
                  "anyOf": [{ "type": "number" }, { "type": "null" }]
                },
                "maximumAbsoluteDelta": {
                  "anyOf": [
                    { "minimum": 0, "type": "number" },
                    { "type": "null" }
                  ]
                },
                "maximumPercentageDelta": {
                  "anyOf": [
                    { "minimum": 0, "type": "number" },
                    { "type": "null" }
                  ]
                },
                "metricType": {
                  "enum": [
                    "gauge",
                    "count",
                    "rate",
                    "duration",
                    "counter",
                    "size"
                  ],
                  "type": "string"
                },
                "minimum": {
                  "anyOf": [{ "type": "number" }, { "type": "null" }]
                },
                "missingPolicy": {
                  "enum": ["skip", "zero", "reject"],
                  "type": "string"
                },
                "mode": {
                  "enum": ["heartbeat", "shadow", "active"],
                  "type": "string"
                },
                "ratio": {
                  "additionalProperties": false,
                  "properties": {
                    "denominator": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maximum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    },
                    "minimum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    }
                  },
                  "type": "object"
                },
                "ruleAction": {
                  "additionalProperties": false,
                  "properties": {
                    "mode": {
                      "enum": ["inactive", "active"],
                      "type": "string"
                    },
                    "version": { "const": 1, "type": "number" }
                  },
                  "required": ["mode", "version"],
                  "type": "object"
                },
                "rulePolicy": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "consecutiveObservations": {
                          "maximum": 10,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "sustainedConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "sustainedCriterion": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "observations",
                                  "type": "string"
                                },
                                "observations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "observations"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "elapsed_time",
                                  "type": "string"
                                },
                                "seconds": {
                                  "maximum": 604800,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "seconds"],
                              "type": "object"
                            }
                          ]
                        },
                        "transientConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["version"],
                      "type": "object"
                    }
                  ]
                },
                "sensitivity": { "maximum": 1, "minimum": 0, "type": "number" },
                "transform": { "enum": ["none", "log1p"], "type": "string" },
                "unit": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "zeroExpectation": {
                  "anyOf": [
                    { "enum": ["zero", "nonzero"], "type": "string" },
                    { "type": "null" }
                  ]
                }
              },
              "type": "object"
            },
            "propertyNames": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "type": "object"
          },
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "timeZone": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "title": "MonitorConfigurationUpdatePatch",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorConfigurationUpdatePatchSchema"
      },
      "MonitorConfigurationUpdateRequest": {
        "additionalProperties": false,
        "properties": {
          "patch": {
            "additionalProperties": false,
            "properties": {
              "graceSeconds": {
                "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                "maximum": 604800,
                "minimum": 0,
                "type": "integer"
              },
              "heartbeatExpectation": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "graceSeconds": {
                        "default": 60,
                        "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "intervalSeconds": {
                        "maximum": 31536000,
                        "minimum": 60,
                        "type": "integer"
                      },
                      "state": { "const": "enabled", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["intervalSeconds", "state", "version"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "state": { "const": "disabled", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["state", "version"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "graceSeconds": {
                        "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "state": { "const": "automatic", "type": "string" },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["state", "version"],
                    "type": "object"
                  }
                ]
              },
              "incidentPolicy": {
                "additionalProperties": false,
                "properties": {
                  "anomalySensitivity": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "notificationCooldownSeconds": {
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "recoveryConfirmationBeats": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "regimeChangeMode": {
                    "enum": ["manual", "automatic"],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "intervalSeconds": {
                "maximum": 31536000,
                "minimum": 60,
                "type": "integer"
              },
              "measurements": {
                "additionalProperties": {
                  "additionalProperties": false,
                  "properties": {
                    "disabledRules": {
                      "items": {
                        "enum": [
                          "minimum",
                          "maximum",
                          "zero",
                          "nonzero",
                          "absolute_delta",
                          "percentage_delta",
                          "ratio_minimum",
                          "ratio_maximum"
                        ],
                        "type": "string"
                      },
                      "maxItems": 8,
                      "type": "array"
                    },
                    "maximum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    },
                    "maximumAbsoluteDelta": {
                      "anyOf": [
                        { "minimum": 0, "type": "number" },
                        { "type": "null" }
                      ]
                    },
                    "maximumPercentageDelta": {
                      "anyOf": [
                        { "minimum": 0, "type": "number" },
                        { "type": "null" }
                      ]
                    },
                    "metricType": {
                      "enum": [
                        "gauge",
                        "count",
                        "rate",
                        "duration",
                        "counter",
                        "size"
                      ],
                      "type": "string"
                    },
                    "minimum": {
                      "anyOf": [{ "type": "number" }, { "type": "null" }]
                    },
                    "missingPolicy": {
                      "enum": ["skip", "zero", "reject"],
                      "type": "string"
                    },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    },
                    "ratio": {
                      "additionalProperties": false,
                      "properties": {
                        "denominator": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maximum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        },
                        "minimum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        }
                      },
                      "type": "object"
                    },
                    "ruleAction": {
                      "additionalProperties": false,
                      "properties": {
                        "mode": {
                          "enum": ["inactive", "active"],
                          "type": "string"
                        },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["mode", "version"],
                      "type": "object"
                    },
                    "rulePolicy": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "consecutiveObservations": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "sustainedConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "sustainedCriterion": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "observations",
                                      "type": "string"
                                    },
                                    "observations": {
                                      "maximum": 10,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "observations"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "elapsed_time",
                                      "type": "string"
                                    },
                                    "seconds": {
                                      "maximum": 604800,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "seconds"],
                                  "type": "object"
                                }
                              ]
                            },
                            "transientConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["version"],
                          "type": "object"
                        }
                      ]
                    },
                    "sensitivity": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "zeroExpectation": {
                      "anyOf": [
                        { "enum": ["zero", "nonzero"], "type": "string" },
                        { "type": "null" }
                      ]
                    }
                  },
                  "type": "object"
                },
                "propertyNames": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "type": "object"
              },
              "name": {
                "maxLength": 120,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "timeZone": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "required": ["patch"],
        "title": "MonitorConfigurationUpdateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorConfigurationUpdateRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "A configuration update changes at least one field."
        ]
      },
      "MonitorControlResult": {
        "additionalProperties": false,
        "properties": {
          "configuration": {
            "additionalProperties": false,
            "properties": {
              "value": {
                "additionalProperties": false,
                "properties": {
                  "callback": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "disabled", "type": "string" }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": {
                            "const": "organization_default",
                            "type": "string"
                          }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "alias": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "kind": { "const": "named", "type": "string" }
                        },
                        "required": ["kind", "alias"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "inline", "type": "string" },
                          "url": {
                            "format": "uri",
                            "maxLength": 512,
                            "type": "string"
                          }
                        },
                        "required": ["kind", "url"],
                        "type": "object"
                      }
                    ]
                  },
                  "heartbeatExpectation": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "graceSeconds": {
                            "default": 60,
                            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                            "maximum": 604800,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "intervalSeconds": {
                            "maximum": 31536000,
                            "minimum": 60,
                            "type": "integer"
                          },
                          "state": { "const": "enabled", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["intervalSeconds", "state", "version"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "state": { "const": "disabled", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["state", "version"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "graceSeconds": {
                            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                            "maximum": 604800,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "state": { "const": "automatic", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["state", "version"],
                        "type": "object"
                      }
                    ]
                  },
                  "incidentPolicy": {
                    "additionalProperties": false,
                    "default": {
                      "anomalySensitivity": 0.5,
                      "notificationCooldownSeconds": 0,
                      "recoveryConfirmationBeats": 1,
                      "regimeChangeMode": "manual"
                    },
                    "properties": {
                      "anomalySensitivity": {
                        "default": 0.5,
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "notificationCooldownSeconds": {
                        "default": 0,
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "recoveryConfirmationBeats": {
                        "default": 1,
                        "maximum": 10,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "regimeChangeMode": {
                        "default": "manual",
                        "enum": ["manual", "automatic"],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "measurements": {
                    "additionalProperties": {
                      "additionalProperties": false,
                      "properties": {
                        "disabledRules": {
                          "items": {
                            "enum": [
                              "minimum",
                              "maximum",
                              "zero",
                              "nonzero",
                              "absolute_delta",
                              "percentage_delta",
                              "ratio_minimum",
                              "ratio_maximum"
                            ],
                            "type": "string"
                          },
                          "maxItems": 8,
                          "type": "array"
                        },
                        "maximum": { "type": "number" },
                        "maximumAbsoluteDelta": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "maximumPercentageDelta": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "metricType": {
                          "default": "gauge",
                          "enum": [
                            "gauge",
                            "count",
                            "rate",
                            "duration",
                            "counter",
                            "size"
                          ],
                          "type": "string"
                        },
                        "minimum": { "type": "number" },
                        "missingPolicy": {
                          "default": "skip",
                          "enum": ["skip", "zero", "reject"],
                          "type": "string"
                        },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        },
                        "ratio": {
                          "additionalProperties": false,
                          "properties": {
                            "denominator": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maximum": { "type": "number" },
                            "minimum": { "type": "number" }
                          },
                          "required": ["denominator"],
                          "type": "object"
                        },
                        "ruleAction": {
                          "additionalProperties": false,
                          "properties": {
                            "mode": {
                              "enum": ["inactive", "active"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["mode", "version"],
                          "type": "object"
                        },
                        "rulePolicy": {
                          "anyOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "consecutiveObservations": {
                                  "default": 1,
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "severity": {
                                  "default": "critical",
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "sustainedConsequence": {
                                  "default": "critical",
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "sustainedCriterion": {
                                  "default": {
                                    "kind": "observations",
                                    "observations": 1
                                  },
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "observations",
                                          "type": "string"
                                        },
                                        "observations": {
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "observations"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "elapsed_time",
                                          "type": "string"
                                        },
                                        "seconds": {
                                          "maximum": 604800,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "seconds"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "transientConsequence": {
                                  "default": "none",
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "version": { "const": 1, "type": "number" }
                              },
                              "required": ["version"],
                              "type": "object"
                            }
                          ]
                        },
                        "sensitivity": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "transform": {
                          "default": "none",
                          "enum": ["none", "log1p"],
                          "type": "string"
                        },
                        "unit": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "zeroExpectation": {
                          "enum": ["zero", "nonzero"],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "propertyNames": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "name": {
                    "maxLength": 120,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "timeZone": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  }
                },
                "required": ["heartbeatExpectation"],
                "type": "object"
              },
              "version": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": ["value", "version"],
            "type": "object"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "lifecycle": {
            "enum": ["active", "paused", "archived"],
            "type": "string"
          },
          "lifecycleChangedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "maintenance": {
            "additionalProperties": false,
            "properties": {
              "endsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "reason": {
                "maxLength": 256,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "startsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              }
            },
            "required": ["endsAt", "startsAt"],
            "type": "object"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "nextDeadline": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "replayed": { "type": "boolean" },
          "restorableUntil": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": [
          "configuration",
          "jurisdiction",
          "lifecycle",
          "monitorKey",
          "replayed"
        ],
        "title": "MonitorControlResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#CanonicalMonitorControlResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Only an active monitor reports an armed deadline, and a restorable-until timestamp is present exactly for an archived monitor."
        ]
      },
      "MonitorCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "callback": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "disabled", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "organization_default", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": { "const": "named", "type": "string" }
                },
                "required": ["alias", "kind"],
                "type": "object"
              }
            ]
          },
          "graceSeconds": {
            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
            "maximum": 604800,
            "minimum": 0,
            "type": "integer"
          },
          "heartbeatExpectation": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "default": 60,
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "intervalSeconds": {
                    "maximum": 31536000,
                    "minimum": 60,
                    "type": "integer"
                  },
                  "state": { "const": "enabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["intervalSeconds", "state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "state": { "const": "disabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "state": { "const": "automatic", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              }
            ]
          },
          "intervalSeconds": {
            "maximum": 31536000,
            "minimum": 60,
            "type": "integer"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "required": ["name"],
        "title": "MonitorCreateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/onboarding.ts#MonitorCreateRequestSchema"
      },
      "MonitorCreateResult": {
        "additionalProperties": false,
        "properties": {
          "configuration": {
            "additionalProperties": false,
            "properties": {
              "value": {
                "additionalProperties": false,
                "properties": {
                  "callback": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "disabled", "type": "string" }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": {
                            "const": "organization_default",
                            "type": "string"
                          }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "alias": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "kind": { "const": "named", "type": "string" }
                        },
                        "required": ["kind", "alias"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "inline", "type": "string" },
                          "url": {
                            "format": "uri",
                            "maxLength": 512,
                            "type": "string"
                          }
                        },
                        "required": ["kind", "url"],
                        "type": "object"
                      }
                    ]
                  },
                  "heartbeatExpectation": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "graceSeconds": {
                            "default": 60,
                            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                            "maximum": 604800,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "intervalSeconds": {
                            "maximum": 31536000,
                            "minimum": 60,
                            "type": "integer"
                          },
                          "state": { "const": "enabled", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["intervalSeconds", "state", "version"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "state": { "const": "disabled", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["state", "version"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "graceSeconds": {
                            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                            "maximum": 604800,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "state": { "const": "automatic", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["state", "version"],
                        "type": "object"
                      }
                    ]
                  },
                  "incidentPolicy": {
                    "additionalProperties": false,
                    "default": {
                      "anomalySensitivity": 0.5,
                      "notificationCooldownSeconds": 0,
                      "recoveryConfirmationBeats": 1,
                      "regimeChangeMode": "manual"
                    },
                    "properties": {
                      "anomalySensitivity": {
                        "default": 0.5,
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "notificationCooldownSeconds": {
                        "default": 0,
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "recoveryConfirmationBeats": {
                        "default": 1,
                        "maximum": 10,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "regimeChangeMode": {
                        "default": "manual",
                        "enum": ["manual", "automatic"],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "measurements": {
                    "additionalProperties": {
                      "additionalProperties": false,
                      "properties": {
                        "disabledRules": {
                          "items": {
                            "enum": [
                              "minimum",
                              "maximum",
                              "zero",
                              "nonzero",
                              "absolute_delta",
                              "percentage_delta",
                              "ratio_minimum",
                              "ratio_maximum"
                            ],
                            "type": "string"
                          },
                          "maxItems": 8,
                          "type": "array"
                        },
                        "maximum": { "type": "number" },
                        "maximumAbsoluteDelta": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "maximumPercentageDelta": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "metricType": {
                          "default": "gauge",
                          "enum": [
                            "gauge",
                            "count",
                            "rate",
                            "duration",
                            "counter",
                            "size"
                          ],
                          "type": "string"
                        },
                        "minimum": { "type": "number" },
                        "missingPolicy": {
                          "default": "skip",
                          "enum": ["skip", "zero", "reject"],
                          "type": "string"
                        },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        },
                        "ratio": {
                          "additionalProperties": false,
                          "properties": {
                            "denominator": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maximum": { "type": "number" },
                            "minimum": { "type": "number" }
                          },
                          "required": ["denominator"],
                          "type": "object"
                        },
                        "ruleAction": {
                          "additionalProperties": false,
                          "properties": {
                            "mode": {
                              "enum": ["inactive", "active"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["mode", "version"],
                          "type": "object"
                        },
                        "rulePolicy": {
                          "anyOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "consecutiveObservations": {
                                  "default": 1,
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "severity": {
                                  "default": "critical",
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "sustainedConsequence": {
                                  "default": "critical",
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "sustainedCriterion": {
                                  "default": {
                                    "kind": "observations",
                                    "observations": 1
                                  },
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "observations",
                                          "type": "string"
                                        },
                                        "observations": {
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "observations"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "elapsed_time",
                                          "type": "string"
                                        },
                                        "seconds": {
                                          "maximum": 604800,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "seconds"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "transientConsequence": {
                                  "default": "none",
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "version": { "const": 1, "type": "number" }
                              },
                              "required": ["version"],
                              "type": "object"
                            }
                          ]
                        },
                        "sensitivity": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "transform": {
                          "default": "none",
                          "enum": ["none", "log1p"],
                          "type": "string"
                        },
                        "unit": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "zeroExpectation": {
                          "enum": ["zero", "nonzero"],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "propertyNames": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "name": {
                    "maxLength": 120,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "timeZone": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  }
                },
                "required": ["heartbeatExpectation"],
                "type": "object"
              },
              "version": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": ["value", "version"],
            "type": "object"
          },
          "directoryState": {
            "enum": ["pending", "synchronized"],
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "publishUrl": { "format": "uri", "type": "string" },
          "replayed": { "type": "boolean" },
          "state": { "const": "waiting", "type": "string" }
        },
        "required": [
          "configuration",
          "directoryState",
          "jurisdiction",
          "monitorKey",
          "publishUrl",
          "replayed",
          "state"
        ],
        "title": "MonitorCreateResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/onboarding.ts#CanonicalMonitorCreateResultSchema"
      },
      "MonitorDeletionCommand": {
        "additionalProperties": false,
        "properties": {
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": [
          "expectedConfigurationVersion",
          "idempotencyKey",
          "jurisdiction",
          "monitorKey"
        ],
        "title": "MonitorDeletionCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/monitor-deletion.ts#MonitorDeletionCommandSchema"
      },
      "MonitorDeletionResult": {
        "additionalProperties": false,
        "properties": {
          "deletedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "deletedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "directoryState": {
            "enum": ["pending", "synchronized"],
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "replayed": { "type": "boolean" },
          "settlement": {
            "additionalProperties": false,
            "properties": {
              "callbackIntentsAbandoned": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "incidentsTerminated": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "scheduledTasksCanceled": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "callbackIntentsAbandoned",
              "incidentsTerminated",
              "scheduledTasksCanceled"
            ],
            "type": "object"
          }
        },
        "required": [
          "deletedAt",
          "deletedConfigurationVersion",
          "directoryState",
          "jurisdiction",
          "monitorKey",
          "replayed",
          "settlement"
        ],
        "title": "MonitorDeletionResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/monitor-deletion.ts#MonitorDeletionResultSchema"
      },
      "MonitorDeletionSettlement": {
        "additionalProperties": false,
        "properties": {
          "callbackIntentsAbandoned": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "incidentsTerminated": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "scheduledTasksCanceled": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "callbackIntentsAbandoned",
          "incidentsTerminated",
          "scheduledTasksCanceled"
        ],
        "title": "MonitorDeletionSettlement",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/monitor-deletion.ts#MonitorDeletionSettlementSchema"
      },
      "MonitorDetail": {
        "additionalProperties": false,
        "properties": {
          "configuration": {
            "additionalProperties": false,
            "properties": {
              "cadenceProvenance": {
                "additionalProperties": false,
                "properties": {
                  "algorithmVersion": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "measuredIntervalMilliseconds": {
                    "exclusiveMinimum": 0,
                    "type": "number"
                  },
                  "observationIds": {
                    "items": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                      "type": "string"
                    },
                    "maxItems": 5,
                    "minItems": 1,
                    "type": "array"
                  },
                  "qualifiedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  }
                },
                "required": [
                  "algorithmVersion",
                  "measuredIntervalMilliseconds",
                  "observationIds",
                  "qualifiedAt"
                ],
                "type": "object"
              },
              "value": {
                "additionalProperties": false,
                "properties": {
                  "callback": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "disabled", "type": "string" }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": {
                            "const": "organization_default",
                            "type": "string"
                          }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "alias": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "kind": { "const": "named", "type": "string" }
                        },
                        "required": ["kind", "alias"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "inline", "type": "string" },
                          "url": {
                            "format": "uri",
                            "maxLength": 512,
                            "type": "string"
                          }
                        },
                        "required": ["kind", "url"],
                        "type": "object"
                      }
                    ]
                  },
                  "heartbeatExpectation": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "graceSeconds": {
                            "default": 60,
                            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                            "maximum": 604800,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "intervalSeconds": {
                            "maximum": 31536000,
                            "minimum": 60,
                            "type": "integer"
                          },
                          "state": { "const": "enabled", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["intervalSeconds", "state", "version"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "state": { "const": "disabled", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["state", "version"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "graceSeconds": {
                            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                            "maximum": 604800,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "state": { "const": "automatic", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["state", "version"],
                        "type": "object"
                      }
                    ]
                  },
                  "incidentPolicy": {
                    "additionalProperties": false,
                    "default": {
                      "anomalySensitivity": 0.5,
                      "notificationCooldownSeconds": 0,
                      "recoveryConfirmationBeats": 1,
                      "regimeChangeMode": "manual"
                    },
                    "properties": {
                      "anomalySensitivity": {
                        "default": 0.5,
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "notificationCooldownSeconds": {
                        "default": 0,
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "recoveryConfirmationBeats": {
                        "default": 1,
                        "maximum": 10,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "regimeChangeMode": {
                        "default": "manual",
                        "enum": ["manual", "automatic"],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "measurements": {
                    "additionalProperties": {
                      "additionalProperties": false,
                      "properties": {
                        "disabledRules": {
                          "items": {
                            "enum": [
                              "minimum",
                              "maximum",
                              "zero",
                              "nonzero",
                              "absolute_delta",
                              "percentage_delta",
                              "ratio_minimum",
                              "ratio_maximum"
                            ],
                            "type": "string"
                          },
                          "maxItems": 8,
                          "type": "array"
                        },
                        "maximum": { "type": "number" },
                        "maximumAbsoluteDelta": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "maximumPercentageDelta": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "metricType": {
                          "default": "gauge",
                          "enum": [
                            "gauge",
                            "count",
                            "rate",
                            "duration",
                            "counter",
                            "size"
                          ],
                          "type": "string"
                        },
                        "minimum": { "type": "number" },
                        "missingPolicy": {
                          "default": "skip",
                          "enum": ["skip", "zero", "reject"],
                          "type": "string"
                        },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        },
                        "ratio": {
                          "additionalProperties": false,
                          "properties": {
                            "denominator": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maximum": { "type": "number" },
                            "minimum": { "type": "number" }
                          },
                          "required": ["denominator"],
                          "type": "object"
                        },
                        "ruleAction": {
                          "additionalProperties": false,
                          "properties": {
                            "mode": {
                              "enum": ["inactive", "active"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["mode", "version"],
                          "type": "object"
                        },
                        "rulePolicy": {
                          "anyOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "consecutiveObservations": {
                                  "default": 1,
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "severity": {
                                  "default": "critical",
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "sustainedConsequence": {
                                  "default": "critical",
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "sustainedCriterion": {
                                  "default": {
                                    "kind": "observations",
                                    "observations": 1
                                  },
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "observations",
                                          "type": "string"
                                        },
                                        "observations": {
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "observations"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "elapsed_time",
                                          "type": "string"
                                        },
                                        "seconds": {
                                          "maximum": 604800,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "seconds"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "transientConsequence": {
                                  "default": "none",
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "version": { "const": 1, "type": "number" }
                              },
                              "required": ["version"],
                              "type": "object"
                            }
                          ]
                        },
                        "sensitivity": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "transform": {
                          "default": "none",
                          "enum": ["none", "log1p"],
                          "type": "string"
                        },
                        "unit": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "zeroExpectation": {
                          "enum": ["zero", "nonzero"],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "propertyNames": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "name": {
                    "maxLength": 120,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "timeZone": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  }
                },
                "required": ["heartbeatExpectation"],
                "type": "object"
              },
              "version": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": ["value", "version"],
            "type": "object"
          },
          "enforcement": {
            "additionalProperties": false,
            "properties": {
              "entitlementSuspended": { "type": "boolean" },
              "intervalSeconds": {
                "maximum": 31536000,
                "minimum": 60,
                "type": "integer"
              }
            },
            "required": ["entitlementSuspended"],
            "type": "object"
          },
          "expectedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "heartbeatLearning": {
            "additionalProperties": false,
            "properties": {
              "measuredIntervalSeconds": {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              "requiredSamples": {
                "exclusiveMinimum": 0,
                "maximum": 64,
                "type": "integer"
              },
              "samples": { "maximum": 64, "minimum": 0, "type": "integer" },
              "status": {
                "anyOf": [
                  {
                    "enum": [
                      "collecting",
                      "inconsistent",
                      "unsupported_cadence"
                    ],
                    "type": "string"
                  },
                  {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["requiredSamples", "samples", "status"],
            "type": "object"
          },
          "initializedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "latestObservation": {
            "additionalProperties": false,
            "properties": {
              "acceptedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "baselineEvaluations": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "engineVersion": { "const": 2, "type": "number" },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "notActionableReason": {
                      "enum": ["baseline_below_minimum_level"],
                      "type": "string"
                    },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "numeric_overflow",
                        "heartbeat_expectation_disabled"
                      ],
                      "type": "string"
                    },
                    "originalExpectedValue": { "type": "number" },
                    "originalLowerBound": { "type": "number" },
                    "originalObservedValue": { "type": "number" },
                    "originalScaleBasis": {
                      "enum": ["measurement", "counter_delta"],
                      "type": "string"
                    },
                    "originalUpperBound": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode"],
                      "type": "object"
                    },
                    "readiness": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "baselineSamples": {
                              "maximum": 15,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "requiredBaselineSamples": {
                              "const": 16,
                              "type": "number"
                            },
                            "requiredResidualSamples": {
                              "const": 32,
                              "type": "number"
                            },
                            "residualSamples": { "const": 0, "type": "number" },
                            "state": {
                              "const": "warming_baseline",
                              "type": "string"
                            }
                          },
                          "required": [
                            "requiredBaselineSamples",
                            "requiredResidualSamples",
                            "baselineSamples",
                            "residualSamples",
                            "state"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "baselineSamples": {
                              "maximum": 128,
                              "minimum": 16,
                              "type": "integer"
                            },
                            "requiredBaselineSamples": {
                              "const": 16,
                              "type": "number"
                            },
                            "requiredResidualSamples": {
                              "const": 32,
                              "type": "number"
                            },
                            "residualSamples": {
                              "maximum": 31,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "state": {
                              "const": "warming_residuals",
                              "type": "string"
                            }
                          },
                          "required": [
                            "requiredBaselineSamples",
                            "requiredResidualSamples",
                            "baselineSamples",
                            "residualSamples",
                            "state"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "baselineSamples": {
                              "maximum": 128,
                              "minimum": 16,
                              "type": "integer"
                            },
                            "requiredBaselineSamples": {
                              "const": 16,
                              "type": "number"
                            },
                            "requiredResidualSamples": {
                              "const": 32,
                              "type": "number"
                            },
                            "residualSamples": {
                              "maximum": 128,
                              "minimum": 32,
                              "type": "integer"
                            },
                            "state": { "const": "ready", "type": "string" }
                          },
                          "required": [
                            "requiredBaselineSamples",
                            "requiredResidualSamples",
                            "baselineSamples",
                            "residualSamples",
                            "state"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "residualModel": {
                      "enum": ["robust_z", "count"],
                      "type": "string"
                    },
                    "residualModelReadiness": {
                      "additionalProperties": false,
                      "properties": {
                        "candidate": {
                          "enum": ["robust_z", "count"],
                          "type": "string"
                        },
                        "holdoutSamples": {
                          "maximum": 32,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "meanLogLikelihoodGain": { "type": "number" },
                        "minimumMeanLogLikelihoodGain": {
                          "const": 0.1,
                          "type": "number"
                        },
                        "requiredHoldoutSamples": {
                          "const": 32,
                          "type": "number"
                        },
                        "state": {
                          "enum": [
                            "ineligible",
                            "warming_holdout",
                            "insufficient_improvement",
                            "validated"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "candidate",
                        "holdoutSamples",
                        "minimumMeanLogLikelihoodGain",
                        "requiredHoldoutSamples",
                        "state"
                      ],
                      "type": "object"
                    },
                    "residualModelSelectionReason": {
                      "enum": [
                        "count_improved",
                        "distribution_ineligible",
                        "holdout_warming",
                        "insufficient_improvement"
                      ],
                      "type": "string"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "sensitivity": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.01,
                              "type": "number"
                            },
                            "name": { "const": "low", "type": "string" },
                            "residualQuantile": {
                              "const": 0.99,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.03,
                              "type": "number"
                            },
                            "name": { "const": "medium", "type": "string" },
                            "residualQuantile": {
                              "const": 0.97,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.05,
                              "type": "number"
                            },
                            "name": { "const": "high", "type": "string" },
                            "residualQuantile": {
                              "const": 0.95,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "warming",
                        "normal",
                        "suspected_anomaly",
                        "not_evaluated"
                      ],
                      "type": "string"
                    },
                    "threshold": { "exclusiveMinimum": 0, "type": "number" },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "transformedExpectedValue": { "type": "number" },
                    "transformedLowerBound": { "type": "number" },
                    "transformedMad": { "minimum": 0, "type": "number" },
                    "transformedObservedValue": { "type": "number" },
                    "transformedScale": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "transformedUpperBound": { "type": "number" },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "updateDisposition": {
                      "enum": ["full", "winsorized", "skipped"],
                      "type": "string"
                    }
                  },
                  "required": [
                    "configurationVersion",
                    "engineVersion",
                    "explanation",
                    "measurementKey",
                    "normalizationStatus",
                    "normalizationVersion",
                    "originalScaleBasis",
                    "policyInput",
                    "readiness",
                    "residualModel",
                    "residualModelReadiness",
                    "residualModelSelectionReason",
                    "sensitivity",
                    "status",
                    "transform",
                    "updateDisposition"
                  ],
                  "type": "object"
                },
                "maxItems": 16,
                "type": "array"
              },
              "configurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "incidentPolicyDecision": {
                "additionalProperties": false,
                "properties": {
                  "configurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "confirmation": {
                    "additionalProperties": false,
                    "properties": {
                      "confirmed": { "type": "boolean" },
                      "observedInWindow": {
                        "maximum": 6,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "required": {
                        "maximum": 6,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "window": {
                        "maximum": 6,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "confirmed",
                      "observedInWindow",
                      "required",
                      "window"
                    ],
                    "type": "object"
                  },
                  "contributions": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "breach": {
                          "additionalProperties": false,
                          "properties": {
                            "consequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "justBecameSustained": { "type": "boolean" },
                            "phase": {
                              "enum": ["clear", "transient", "sustained"],
                              "type": "string"
                            },
                            "progress": {
                              "additionalProperties": false,
                              "properties": {
                                "elapsedSeconds": {
                                  "maximum": 604800,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "qualifyingObservations": {
                                  "maximum": 10,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "remaining": {
                                  "maximum": 604800,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "startedAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "elapsedSeconds",
                                "qualifyingObservations",
                                "remaining"
                              ],
                              "type": "object"
                            },
                            "sustainedConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "sustainedCriterion": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "observations",
                                      "type": "string"
                                    },
                                    "observations": {
                                      "maximum": 10,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "observations"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "elapsed_time",
                                      "type": "string"
                                    },
                                    "seconds": {
                                      "maximum": 604800,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "seconds"],
                                  "type": "object"
                                }
                              ]
                            },
                            "transientConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "consequence",
                            "justBecameSustained",
                            "phase",
                            "progress",
                            "sustainedConsequence",
                            "sustainedCriterion",
                            "transientConsequence"
                          ],
                          "type": "object"
                        },
                        "detector": {
                          "enum": [
                            "explicit_rule",
                            "adaptive_baseline",
                            "seasonal_baseline",
                            "persistent_shift"
                          ],
                          "type": "string"
                        },
                        "durationSamples": {
                          "maximum": 1000000,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "residualScore": { "minimum": 0, "type": "number" },
                        "ruleId": {
                          "maxLength": 160,
                          "minLength": 3,
                          "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                          "type": "string"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        },
                        "trigger": {
                          "enum": [
                            "explicit_rule",
                            "extreme_deviation",
                            "moderate_confirmation",
                            "persistent_shift"
                          ],
                          "type": "string"
                        }
                      },
                      "required": ["detector", "measurementKey", "severity"],
                      "type": "object"
                    },
                    "maxItems": 80,
                    "type": "array"
                  },
                  "engineVersion": { "const": 1, "type": "number" },
                  "evaluation": {
                    "additionalProperties": false,
                    "properties": {
                      "evaluatedMeasurementKeys": {
                        "items": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "policyActive": { "type": "boolean" },
                      "publishedMeasurementKeys": {
                        "items": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maxItems": 32,
                        "type": "array"
                      }
                    },
                    "required": [
                      "evaluatedMeasurementKeys",
                      "policyActive",
                      "publishedMeasurementKeys"
                    ],
                    "type": "object"
                  },
                  "explanation": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "notifiable": { "type": "boolean" },
                  "outcome": {
                    "enum": [
                      "none",
                      "recorded",
                      "confirming",
                      "incident_opened",
                      "incident_sustained",
                      "recovery_pending",
                      "recovery_confirmed"
                    ],
                    "type": "string"
                  },
                  "profile": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "configured": {
                            "maximum": 1,
                            "minimum": 0,
                            "type": "number"
                          },
                          "confirmationRequired": {
                            "const": 4,
                            "type": "number"
                          },
                          "confirmationWindow": {
                            "const": 6,
                            "type": "number"
                          },
                          "extremeResidualMultiple": {
                            "const": 4,
                            "type": "number"
                          },
                          "name": { "const": "low", "type": "string" },
                          "recoveryConfirmationObservations": {
                            "const": 4,
                            "type": "number"
                          },
                          "regimeChangeObservations": {
                            "const": 96,
                            "type": "number"
                          }
                        },
                        "required": [
                          "configured",
                          "confirmationRequired",
                          "confirmationWindow",
                          "extremeResidualMultiple",
                          "name",
                          "recoveryConfirmationObservations",
                          "regimeChangeObservations"
                        ],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "configured": {
                            "maximum": 1,
                            "minimum": 0,
                            "type": "number"
                          },
                          "confirmationRequired": {
                            "const": 3,
                            "type": "number"
                          },
                          "confirmationWindow": {
                            "const": 5,
                            "type": "number"
                          },
                          "extremeResidualMultiple": {
                            "const": 3,
                            "type": "number"
                          },
                          "name": { "const": "medium", "type": "string" },
                          "recoveryConfirmationObservations": {
                            "const": 3,
                            "type": "number"
                          },
                          "regimeChangeObservations": {
                            "const": 48,
                            "type": "number"
                          }
                        },
                        "required": [
                          "configured",
                          "confirmationRequired",
                          "confirmationWindow",
                          "extremeResidualMultiple",
                          "name",
                          "recoveryConfirmationObservations",
                          "regimeChangeObservations"
                        ],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "configured": {
                            "maximum": 1,
                            "minimum": 0,
                            "type": "number"
                          },
                          "confirmationRequired": {
                            "const": 2,
                            "type": "number"
                          },
                          "confirmationWindow": {
                            "const": 4,
                            "type": "number"
                          },
                          "extremeResidualMultiple": {
                            "const": 2.5,
                            "type": "number"
                          },
                          "name": { "const": "high", "type": "string" },
                          "recoveryConfirmationObservations": {
                            "const": 3,
                            "type": "number"
                          },
                          "regimeChangeObservations": {
                            "const": 24,
                            "type": "number"
                          }
                        },
                        "required": [
                          "configured",
                          "confirmationRequired",
                          "confirmationWindow",
                          "extremeResidualMultiple",
                          "name",
                          "recoveryConfirmationObservations",
                          "regimeChangeObservations"
                        ],
                        "type": "object"
                      }
                    ]
                  },
                  "recovery": {
                    "additionalProperties": false,
                    "properties": {
                      "confirmedObservations": {
                        "maximum": 10,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "requiredObservations": {
                        "maximum": 10,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "confirmedObservations",
                      "requiredObservations"
                    ],
                    "type": "object"
                  },
                  "regimeChange": {
                    "additionalProperties": false,
                    "properties": {
                      "measurementKeys": {
                        "items": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maxItems": 16,
                        "type": "array"
                      },
                      "mode": {
                        "enum": ["manual", "automatic"],
                        "type": "string"
                      },
                      "requiredObservations": {
                        "maximum": 1000000,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "state": {
                        "enum": ["none", "watching", "available", "applied"],
                        "type": "string"
                      },
                      "sustainedObservations": {
                        "maximum": 1000000,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "measurementKeys",
                      "mode",
                      "requiredObservations",
                      "state",
                      "sustainedObservations"
                    ],
                    "type": "object"
                  },
                  "severity": {
                    "enum": ["info", "warning", "critical"],
                    "type": "string"
                  },
                  "suppression": {
                    "enum": [
                      "detector_unconfirmed",
                      "detector_warming",
                      "detector_shadow_mode",
                      "open_incident"
                    ],
                    "type": "string"
                  },
                  "triggers": {
                    "items": {
                      "enum": [
                        "explicit_rule",
                        "extreme_deviation",
                        "moderate_confirmation",
                        "persistent_shift"
                      ],
                      "type": "string"
                    },
                    "maxItems": 4,
                    "type": "array"
                  }
                },
                "required": [
                  "configurationVersion",
                  "confirmation",
                  "contributions",
                  "engineVersion",
                  "explanation",
                  "notifiable",
                  "outcome",
                  "profile",
                  "recovery",
                  "regimeChange",
                  "severity",
                  "triggers"
                ],
                "type": "object"
              },
              "normalizedMeasurements": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "definition": {
                      "additionalProperties": false,
                      "properties": {
                        "disabledRules": {
                          "items": {
                            "enum": [
                              "minimum",
                              "maximum",
                              "zero",
                              "nonzero",
                              "absolute_delta",
                              "percentage_delta",
                              "ratio_minimum",
                              "ratio_maximum"
                            ],
                            "type": "string"
                          },
                          "maxItems": 8,
                          "type": "array"
                        },
                        "maximum": { "type": "number" },
                        "maximumAbsoluteDelta": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "maximumPercentageDelta": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "metricType": {
                          "default": "gauge",
                          "enum": [
                            "gauge",
                            "count",
                            "rate",
                            "duration",
                            "counter",
                            "size"
                          ],
                          "type": "string"
                        },
                        "minimum": { "type": "number" },
                        "missingPolicy": {
                          "default": "skip",
                          "enum": ["skip", "zero", "reject"],
                          "type": "string"
                        },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        },
                        "ratio": {
                          "additionalProperties": false,
                          "properties": {
                            "denominator": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maximum": { "type": "number" },
                            "minimum": { "type": "number" }
                          },
                          "required": ["denominator"],
                          "type": "object"
                        },
                        "ruleAction": {
                          "additionalProperties": false,
                          "properties": {
                            "mode": {
                              "enum": ["inactive", "active"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["mode", "version"],
                          "type": "object"
                        },
                        "rulePolicy": {
                          "anyOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "consecutiveObservations": {
                                  "default": 1,
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "severity": {
                                  "default": "critical",
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "sustainedConsequence": {
                                  "default": "critical",
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "sustainedCriterion": {
                                  "default": {
                                    "kind": "observations",
                                    "observations": 1
                                  },
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "observations",
                                          "type": "string"
                                        },
                                        "observations": {
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "observations"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "elapsed_time",
                                          "type": "string"
                                        },
                                        "seconds": {
                                          "maximum": 604800,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "seconds"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "transientConsequence": {
                                  "default": "none",
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "version": { "const": 1, "type": "number" }
                              },
                              "required": ["version"],
                              "type": "object"
                            }
                          ]
                        },
                        "sensitivity": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "transform": {
                          "default": "none",
                          "enum": ["none", "log1p"],
                          "type": "string"
                        },
                        "unit": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "zeroExpectation": {
                          "enum": ["zero", "nonzero"],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "definitionVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "key": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "normalizedValue": { "type": "number" },
                    "originalValue": { "type": "number" },
                    "previousOriginalValue": { "type": "number" },
                    "status": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "definition",
                    "definitionVersion",
                    "key",
                    "normalizationVersion",
                    "status"
                  ],
                  "type": "object"
                },
                "maxItems": 32,
                "type": "array"
              },
              "observedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "omittedDetail": {
                "items": {
                  "anyOf": [
                    {
                      "enum": [
                        "normalized_measurements",
                        "adaptive_baseline",
                        "explicit_rule",
                        "incident_policy",
                        "persistent_shift",
                        "seasonal_baseline"
                      ],
                      "type": "string"
                    },
                    {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    }
                  ]
                },
                "maxItems": 16,
                "minItems": 1,
                "type": "array"
              },
              "payload": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "empty", "type": "string" }
                    },
                    "required": ["kind"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "number", "type": "string" },
                      "value": { "type": "number" }
                    },
                    "required": ["kind", "value"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "measurements", "type": "string" },
                      "values": {
                        "additionalProperties": {
                          "anyOf": [
                            { "type": "number" },
                            {
                              "anyOf": [
                                { "type": "boolean" },
                                { "type": "null" },
                                {
                                  "maxLength": 256,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                }
                              ]
                            }
                          ]
                        },
                        "propertyNames": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "type": "object"
                      }
                    },
                    "required": ["kind", "values"],
                    "type": "object"
                  }
                ]
              },
              "provenance": {
                "anyOf": [
                  { "enum": ["live", "historical_import"], "type": "string" },
                  {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                ]
              },
              "requestId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                "type": "string"
              },
              "ruleEvaluations": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "breach": {
                      "additionalProperties": false,
                      "properties": {
                        "consequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "justBecameSustained": { "type": "boolean" },
                        "phase": {
                          "enum": ["clear", "transient", "sustained"],
                          "type": "string"
                        },
                        "progress": {
                          "additionalProperties": false,
                          "properties": {
                            "elapsedSeconds": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "qualifyingObservations": {
                              "maximum": 10,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "remaining": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "startedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "elapsedSeconds",
                            "qualifyingObservations",
                            "remaining"
                          ],
                          "type": "object"
                        },
                        "sustainedConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "sustainedCriterion": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "observations",
                                  "type": "string"
                                },
                                "observations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "observations"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "elapsed_time",
                                  "type": "string"
                                },
                                "seconds": {
                                  "maximum": 604800,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "seconds"],
                              "type": "object"
                            }
                          ]
                        },
                        "transientConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "consequence",
                        "justBecameSustained",
                        "phase",
                        "progress",
                        "sustainedConsequence",
                        "sustainedCriterion",
                        "transientConsequence"
                      ],
                      "type": "object"
                    },
                    "comparison": {
                      "enum": ["at_least", "at_most", "equal", "not_equal"],
                      "type": "string"
                    },
                    "computedValue": { "type": "number" },
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "confirmation": {
                      "additionalProperties": false,
                      "properties": {
                        "confirmed": { "type": "boolean" },
                        "consecutiveViolations": {
                          "maximum": 10,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "required": {
                          "maximum": 10,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "confirmed",
                        "consecutiveViolations",
                        "required"
                      ],
                      "type": "object"
                    },
                    "denominatorMeasurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "engineVersion": {
                      "anyOf": [
                        { "const": 1, "type": "number" },
                        { "const": 2, "type": "number" }
                      ]
                    },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "previous_value_missing",
                        "previous_value_zero",
                        "ratio_denominator_missing",
                        "ratio_denominator_zero",
                        "numeric_overflow"
                      ],
                      "type": "string"
                    },
                    "observedValue": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode", "severity"],
                      "type": "object"
                    },
                    "referenceValue": { "type": "number" },
                    "ruleId": {
                      "maxLength": 160,
                      "minLength": 3,
                      "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                      "type": "string"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "status": {
                      "enum": ["passed", "violated", "not_evaluated"],
                      "type": "string"
                    },
                    "threshold": { "type": "number" },
                    "transform": { "enum": ["none", "log1p"], "type": "string" }
                  },
                  "required": [
                    "comparison",
                    "configurationVersion",
                    "confirmation",
                    "engineVersion",
                    "explanation",
                    "kind",
                    "measurementKey",
                    "normalizationStatus",
                    "policyInput",
                    "ruleId",
                    "severity",
                    "status",
                    "threshold",
                    "transform"
                  ],
                  "type": "object"
                },
                "maxItems": 32,
                "type": "array"
              },
              "seasonalEvaluations": {
                "items": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "dailyBucketSamples": {
                          "maximum": 24,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "dailyReadiness": {
                          "allOf": [
                            {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 7,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 7,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 4,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "additionalProperties": {},
                              "properties": {
                                "model": { "const": "daily", "type": "string" }
                              },
                              "required": ["model"],
                              "type": "object"
                            }
                          ]
                        },
                        "engineVersion": { "const": 1, "type": "number" },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "localBucket": {
                          "additionalProperties": false,
                          "properties": {
                            "dailyHour": {
                              "maximum": 23,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "offsetMinutes": {
                              "maximum": 1440,
                              "minimum": -1440,
                              "type": "integer"
                            },
                            "weeklyHour": {
                              "maximum": 167,
                              "minimum": 0,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "dailyHour",
                            "offsetMinutes",
                            "weeklyHour"
                          ],
                          "type": "object"
                        },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "neighborToleranceHours": {
                          "const": 1,
                          "type": "number"
                        },
                        "normalizationStatus": {
                          "enum": [
                            "value",
                            "counter_baseline",
                            "counter_reset",
                            "missing_skipped",
                            "missing_zero"
                          ],
                          "type": "string"
                        },
                        "normalizationVersion": {
                          "const": 1,
                          "type": "number"
                        },
                        "notEvaluatedReason": {
                          "enum": [
                            "measurement_missing",
                            "counter_baseline",
                            "counter_reset",
                            "numeric_overflow",
                            "heartbeat_expectation_disabled"
                          ],
                          "type": "string"
                        },
                        "originalExpectedValue": { "type": "number" },
                        "originalLowerBound": { "type": "number" },
                        "originalObservedValue": { "type": "number" },
                        "originalScaleBasis": {
                          "enum": ["measurement", "counter_delta"],
                          "type": "string"
                        },
                        "originalUpperBound": { "type": "number" },
                        "policyInput": {
                          "additionalProperties": false,
                          "properties": {
                            "actionable": { "type": "boolean" },
                            "mode": {
                              "enum": ["heartbeat", "shadow", "active"],
                              "type": "string"
                            }
                          },
                          "required": ["actionable", "mode"],
                          "type": "object"
                        },
                        "residualScore": { "minimum": 0, "type": "number" },
                        "selectedModel": {
                          "const": "global",
                          "type": "string"
                        },
                        "selectionReason": {
                          "enum": [
                            "global_baseline_warming",
                            "insufficient_improvement",
                            "not_evaluated",
                            "seasonality_warming",
                            "sparse_bucket"
                          ],
                          "type": "string"
                        },
                        "sensitivity": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.01,
                                  "type": "number"
                                },
                                "name": { "const": "low", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.99,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.03,
                                  "type": "number"
                                },
                                "name": { "const": "medium", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.97,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.05,
                                  "type": "number"
                                },
                                "name": { "const": "high", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.95,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "warming",
                            "normal",
                            "suspected_anomaly",
                            "not_evaluated"
                          ],
                          "type": "string"
                        },
                        "threshold": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "timeZone": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "transform": {
                          "enum": ["none", "log1p"],
                          "type": "string"
                        },
                        "transformedExpectedValue": { "type": "number" },
                        "transformedLowerBound": { "type": "number" },
                        "transformedMad": { "minimum": 0, "type": "number" },
                        "transformedObservedValue": { "type": "number" },
                        "transformedScale": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "transformedUpperBound": { "type": "number" },
                        "unit": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "updateDisposition": {
                          "enum": ["full", "skipped"],
                          "type": "string"
                        },
                        "weeklyBucketSamples": {
                          "maximum": 12,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "weeklyReadiness": {
                          "allOf": [
                            {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 7,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 7,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 4,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "additionalProperties": {},
                              "properties": {
                                "model": { "const": "weekly", "type": "string" }
                              },
                              "required": ["model"],
                              "type": "object"
                            }
                          ]
                        }
                      },
                      "required": [
                        "configurationVersion",
                        "dailyBucketSamples",
                        "dailyReadiness",
                        "engineVersion",
                        "explanation",
                        "localBucket",
                        "measurementKey",
                        "neighborToleranceHours",
                        "normalizationStatus",
                        "normalizationVersion",
                        "originalScaleBasis",
                        "policyInput",
                        "sensitivity",
                        "status",
                        "timeZone",
                        "transform",
                        "updateDisposition",
                        "weeklyBucketSamples",
                        "weeklyReadiness",
                        "selectedModel",
                        "selectionReason"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "dailyBucketSamples": {
                          "maximum": 24,
                          "minimum": 3,
                          "type": "integer"
                        },
                        "dailyReadiness": {
                          "allOf": [
                            {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 7,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 7,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 4,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "additionalProperties": {},
                              "properties": {
                                "model": { "const": "daily", "type": "string" }
                              },
                              "required": ["model"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": {},
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 4,
                                  "type": "integer"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": 0.1,
                                  "type": "number"
                                },
                                "state": {
                                  "const": "validated",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "candidateWinsorizedMeanAbsoluteError",
                                "cyclesObserved",
                                "globalWinsorizedMeanAbsoluteError",
                                "holdoutSamples",
                                "relativeImprovement",
                                "state"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "engineVersion": { "const": 1, "type": "number" },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "localBucket": {
                          "additionalProperties": false,
                          "properties": {
                            "dailyHour": {
                              "maximum": 23,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "offsetMinutes": {
                              "maximum": 1440,
                              "minimum": -1440,
                              "type": "integer"
                            },
                            "weeklyHour": {
                              "maximum": 167,
                              "minimum": 0,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "dailyHour",
                            "offsetMinutes",
                            "weeklyHour"
                          ],
                          "type": "object"
                        },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "neighborToleranceHours": {
                          "const": 1,
                          "type": "number"
                        },
                        "normalizationStatus": {
                          "enum": [
                            "value",
                            "counter_baseline",
                            "counter_reset",
                            "missing_skipped",
                            "missing_zero"
                          ],
                          "type": "string"
                        },
                        "normalizationVersion": {
                          "const": 1,
                          "type": "number"
                        },
                        "notEvaluatedReason": {
                          "enum": [
                            "measurement_missing",
                            "counter_baseline",
                            "counter_reset",
                            "numeric_overflow",
                            "heartbeat_expectation_disabled"
                          ],
                          "type": "string"
                        },
                        "originalExpectedValue": { "type": "number" },
                        "originalLowerBound": { "type": "number" },
                        "originalObservedValue": { "type": "number" },
                        "originalScaleBasis": {
                          "enum": ["measurement", "counter_delta"],
                          "type": "string"
                        },
                        "originalUpperBound": { "type": "number" },
                        "policyInput": {
                          "additionalProperties": false,
                          "properties": {
                            "actionable": { "type": "boolean" },
                            "mode": {
                              "enum": ["heartbeat", "shadow", "active"],
                              "type": "string"
                            }
                          },
                          "required": ["actionable", "mode"],
                          "type": "object"
                        },
                        "residualScore": { "minimum": 0, "type": "number" },
                        "selectedModel": { "const": "daily", "type": "string" },
                        "selectionReason": {
                          "const": "daily_improved",
                          "type": "string"
                        },
                        "sensitivity": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.01,
                                  "type": "number"
                                },
                                "name": { "const": "low", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.99,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.03,
                                  "type": "number"
                                },
                                "name": { "const": "medium", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.97,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.05,
                                  "type": "number"
                                },
                                "name": { "const": "high", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.95,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "warming",
                            "normal",
                            "suspected_anomaly",
                            "not_evaluated"
                          ],
                          "type": "string"
                        },
                        "threshold": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "timeZone": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "transform": {
                          "enum": ["none", "log1p"],
                          "type": "string"
                        },
                        "transformedExpectedValue": { "type": "number" },
                        "transformedLowerBound": { "type": "number" },
                        "transformedMad": { "minimum": 0, "type": "number" },
                        "transformedObservedValue": { "type": "number" },
                        "transformedScale": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "transformedUpperBound": { "type": "number" },
                        "unit": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "updateDisposition": {
                          "enum": ["full", "skipped"],
                          "type": "string"
                        },
                        "weeklyBucketSamples": {
                          "maximum": 12,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "weeklyReadiness": {
                          "allOf": [
                            {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 7,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 7,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 4,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "additionalProperties": {},
                              "properties": {
                                "model": { "const": "weekly", "type": "string" }
                              },
                              "required": ["model"],
                              "type": "object"
                            }
                          ]
                        }
                      },
                      "required": [
                        "configurationVersion",
                        "dailyBucketSamples",
                        "dailyReadiness",
                        "engineVersion",
                        "explanation",
                        "localBucket",
                        "measurementKey",
                        "neighborToleranceHours",
                        "normalizationStatus",
                        "normalizationVersion",
                        "originalScaleBasis",
                        "policyInput",
                        "sensitivity",
                        "status",
                        "timeZone",
                        "transform",
                        "updateDisposition",
                        "weeklyBucketSamples",
                        "weeklyReadiness",
                        "selectedModel",
                        "selectionReason"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "dailyBucketSamples": {
                          "maximum": 24,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "dailyReadiness": {
                          "allOf": [
                            {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 7,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 7,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 4,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "additionalProperties": {},
                              "properties": {
                                "model": { "const": "daily", "type": "string" }
                              },
                              "required": ["model"],
                              "type": "object"
                            }
                          ]
                        },
                        "engineVersion": { "const": 1, "type": "number" },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "localBucket": {
                          "additionalProperties": false,
                          "properties": {
                            "dailyHour": {
                              "maximum": 23,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "offsetMinutes": {
                              "maximum": 1440,
                              "minimum": -1440,
                              "type": "integer"
                            },
                            "weeklyHour": {
                              "maximum": 167,
                              "minimum": 0,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "dailyHour",
                            "offsetMinutes",
                            "weeklyHour"
                          ],
                          "type": "object"
                        },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "neighborToleranceHours": {
                          "const": 1,
                          "type": "number"
                        },
                        "normalizationStatus": {
                          "enum": [
                            "value",
                            "counter_baseline",
                            "counter_reset",
                            "missing_skipped",
                            "missing_zero"
                          ],
                          "type": "string"
                        },
                        "normalizationVersion": {
                          "const": 1,
                          "type": "number"
                        },
                        "notEvaluatedReason": {
                          "enum": [
                            "measurement_missing",
                            "counter_baseline",
                            "counter_reset",
                            "numeric_overflow",
                            "heartbeat_expectation_disabled"
                          ],
                          "type": "string"
                        },
                        "originalExpectedValue": { "type": "number" },
                        "originalLowerBound": { "type": "number" },
                        "originalObservedValue": { "type": "number" },
                        "originalScaleBasis": {
                          "enum": ["measurement", "counter_delta"],
                          "type": "string"
                        },
                        "originalUpperBound": { "type": "number" },
                        "policyInput": {
                          "additionalProperties": false,
                          "properties": {
                            "actionable": { "type": "boolean" },
                            "mode": {
                              "enum": ["heartbeat", "shadow", "active"],
                              "type": "string"
                            }
                          },
                          "required": ["actionable", "mode"],
                          "type": "object"
                        },
                        "residualScore": { "minimum": 0, "type": "number" },
                        "selectedModel": {
                          "const": "weekly",
                          "type": "string"
                        },
                        "selectionReason": {
                          "const": "weekly_improved",
                          "type": "string"
                        },
                        "sensitivity": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.01,
                                  "type": "number"
                                },
                                "name": { "const": "low", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.99,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.03,
                                  "type": "number"
                                },
                                "name": { "const": "medium", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.97,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.05,
                                  "type": "number"
                                },
                                "name": { "const": "high", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.95,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "warming",
                            "normal",
                            "suspected_anomaly",
                            "not_evaluated"
                          ],
                          "type": "string"
                        },
                        "threshold": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "timeZone": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "transform": {
                          "enum": ["none", "log1p"],
                          "type": "string"
                        },
                        "transformedExpectedValue": { "type": "number" },
                        "transformedLowerBound": { "type": "number" },
                        "transformedMad": { "minimum": 0, "type": "number" },
                        "transformedObservedValue": { "type": "number" },
                        "transformedScale": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "transformedUpperBound": { "type": "number" },
                        "unit": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "updateDisposition": {
                          "enum": ["full", "skipped"],
                          "type": "string"
                        },
                        "weeklyBucketSamples": {
                          "maximum": 12,
                          "minimum": 3,
                          "type": "integer"
                        },
                        "weeklyReadiness": {
                          "allOf": [
                            {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 7,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 7,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "maximum": 4,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "minimumRelativeImprovement": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": -1,
                                      "type": "number"
                                    },
                                    "requiredCycles": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "requiredHoldoutSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "state": {
                                      "enum": [
                                        "warming_cycles",
                                        "warming_holdout",
                                        "insufficient_improvement",
                                        "validated"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "cyclesObserved",
                                    "holdoutSamples",
                                    "minimumRelativeImprovement",
                                    "requiredHoldoutSamples",
                                    "state",
                                    "model",
                                    "requiredCycles"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "additionalProperties": {},
                              "properties": {
                                "model": { "const": "weekly", "type": "string" }
                              },
                              "required": ["model"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": {},
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 4,
                                  "type": "integer"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": 0.1,
                                  "type": "number"
                                },
                                "state": {
                                  "const": "validated",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "candidateWinsorizedMeanAbsoluteError",
                                "cyclesObserved",
                                "globalWinsorizedMeanAbsoluteError",
                                "holdoutSamples",
                                "relativeImprovement",
                                "state"
                              ],
                              "type": "object"
                            }
                          ]
                        }
                      },
                      "required": [
                        "configurationVersion",
                        "dailyBucketSamples",
                        "dailyReadiness",
                        "engineVersion",
                        "explanation",
                        "localBucket",
                        "measurementKey",
                        "neighborToleranceHours",
                        "normalizationStatus",
                        "normalizationVersion",
                        "originalScaleBasis",
                        "policyInput",
                        "sensitivity",
                        "status",
                        "timeZone",
                        "transform",
                        "updateDisposition",
                        "weeklyBucketSamples",
                        "weeklyReadiness",
                        "selectedModel",
                        "selectionReason"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "maxItems": 16,
                "type": "array"
              },
              "sequence": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "shiftEvaluations": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "accumulatedMagnitude": {
                      "maximum": 64,
                      "minimum": 0,
                      "type": "number"
                    },
                    "baselineScale": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "boundedResidualContribution": {
                      "maximum": 3,
                      "minimum": -3,
                      "type": "number"
                    },
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "direction": {
                      "enum": ["positive", "negative"],
                      "type": "string"
                    },
                    "durationSamples": {
                      "maximum": 1000000,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "engineVersion": { "const": 3, "type": "number" },
                    "ewma": { "maximum": 3, "minimum": -3, "type": "number" },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "negativeCusum": {
                      "maximum": 64,
                      "minimum": 0,
                      "type": "number"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "normalizedResidual": { "type": "number" },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "numeric_overflow",
                        "heartbeat_expectation_disabled"
                      ],
                      "type": "string"
                    },
                    "pointAnomaly": { "type": "boolean" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode"],
                      "type": "object"
                    },
                    "positiveCusum": {
                      "maximum": 64,
                      "minimum": 0,
                      "type": "number"
                    },
                    "preset": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "cusumAllowance": {
                              "const": 0.75,
                              "type": "number"
                            },
                            "cusumThreshold": { "const": 12, "type": "number" },
                            "ewmaAlpha": { "const": 0.1, "type": "number" },
                            "ewmaRecoveryThreshold": {
                              "const": 0.3,
                              "type": "number"
                            },
                            "ewmaThreshold": { "const": 0.9, "type": "number" },
                            "maximumGapIntervals": {
                              "const": 4,
                              "type": "number"
                            },
                            "minimumDurationSamples": {
                              "const": 4,
                              "type": "number"
                            },
                            "name": { "const": "low", "type": "string" },
                            "recoveryConfirmationSamples": {
                              "const": 4,
                              "type": "number"
                            },
                            "residualClip": { "const": 3, "type": "number" }
                          },
                          "required": [
                            "configured",
                            "maximumGapIntervals",
                            "residualClip",
                            "cusumAllowance",
                            "cusumThreshold",
                            "ewmaAlpha",
                            "ewmaRecoveryThreshold",
                            "ewmaThreshold",
                            "minimumDurationSamples",
                            "name",
                            "recoveryConfirmationSamples"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "cusumAllowance": {
                              "const": 0.5,
                              "type": "number"
                            },
                            "cusumThreshold": { "const": 8, "type": "number" },
                            "ewmaAlpha": { "const": 0.2, "type": "number" },
                            "ewmaRecoveryThreshold": {
                              "const": 0.25,
                              "type": "number"
                            },
                            "ewmaThreshold": {
                              "const": 0.65,
                              "type": "number"
                            },
                            "maximumGapIntervals": {
                              "const": 4,
                              "type": "number"
                            },
                            "minimumDurationSamples": {
                              "const": 3,
                              "type": "number"
                            },
                            "name": { "const": "medium", "type": "string" },
                            "recoveryConfirmationSamples": {
                              "const": 3,
                              "type": "number"
                            },
                            "residualClip": { "const": 3, "type": "number" }
                          },
                          "required": [
                            "configured",
                            "maximumGapIntervals",
                            "residualClip",
                            "cusumAllowance",
                            "cusumThreshold",
                            "ewmaAlpha",
                            "ewmaRecoveryThreshold",
                            "ewmaThreshold",
                            "minimumDurationSamples",
                            "name",
                            "recoveryConfirmationSamples"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "cusumAllowance": {
                              "const": 0.35,
                              "type": "number"
                            },
                            "cusumThreshold": { "const": 6, "type": "number" },
                            "ewmaAlpha": { "const": 0.3, "type": "number" },
                            "ewmaRecoveryThreshold": {
                              "const": 0.2,
                              "type": "number"
                            },
                            "ewmaThreshold": {
                              "const": 0.45,
                              "type": "number"
                            },
                            "maximumGapIntervals": {
                              "const": 4,
                              "type": "number"
                            },
                            "minimumDurationSamples": {
                              "const": 3,
                              "type": "number"
                            },
                            "name": { "const": "high", "type": "string" },
                            "recoveryConfirmationSamples": {
                              "const": 3,
                              "type": "number"
                            },
                            "residualClip": { "const": 3, "type": "number" }
                          },
                          "required": [
                            "configured",
                            "maximumGapIntervals",
                            "residualClip",
                            "cusumAllowance",
                            "cusumThreshold",
                            "ewmaAlpha",
                            "ewmaRecoveryThreshold",
                            "ewmaThreshold",
                            "minimumDurationSamples",
                            "name",
                            "recoveryConfirmationSamples"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "resetReason": {
                      "enum": [
                        "accepted_regime_change",
                        "baseline_model_changed",
                        "configuration_changed",
                        "counter_baseline",
                        "counter_reset",
                        "lifecycle_suspended",
                        "long_gap",
                        "maintenance"
                      ],
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "warming",
                        "normal",
                        "accumulating",
                        "persistent_shift",
                        "recovering",
                        "reset",
                        "not_evaluated"
                      ],
                      "type": "string"
                    },
                    "wanderCalibration": {
                      "additionalProperties": false,
                      "properties": {
                        "cusumAllowance": {
                          "exclusiveMinimum": 0,
                          "maximum": 64,
                          "type": "number"
                        },
                        "cusumThreshold": {
                          "exclusiveMinimum": 0,
                          "maximum": 64,
                          "type": "number"
                        },
                        "holdoutSamples": {
                          "maximum": 1000000,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "minimumInflation": { "const": 1.2, "type": "number" },
                        "requiredHoldoutSamples": {
                          "const": 32,
                          "type": "number"
                        },
                        "runningMeanInflation": {
                          "maximum": 4.358898943540674,
                          "minimum": 1,
                          "type": "number"
                        },
                        "state": {
                          "enum": [
                            "warming_holdout",
                            "independent",
                            "calibrated"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "cusumAllowance",
                        "cusumThreshold",
                        "holdoutSamples",
                        "minimumInflation",
                        "requiredHoldoutSamples",
                        "state"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "configurationVersion",
                    "engineVersion",
                    "explanation",
                    "measurementKey",
                    "normalizationVersion",
                    "pointAnomaly",
                    "policyInput",
                    "preset",
                    "status"
                  ],
                  "type": "object"
                },
                "maxItems": 16,
                "type": "array"
              },
              "status": {
                "anyOf": [
                  {
                    "enum": ["on_time", "late", "not_expected", "learning"],
                    "type": "string"
                  },
                  {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                ]
              },
              "unavailableEvidence": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "evidence": {
                      "enum": [
                        "adaptive_baseline",
                        "explicit_rule",
                        "incident_policy",
                        "persistent_shift",
                        "seasonal_baseline"
                      ],
                      "type": "string"
                    },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "reason": {
                      "enum": ["engine_version", "unreadable"],
                      "type": "string"
                    },
                    "recordedEngineVersion": {
                      "maximum": 999,
                      "minimum": 1,
                      "type": "integer"
                    }
                  },
                  "required": ["evidence", "explanation", "reason"],
                  "type": "object"
                },
                "maxItems": 5,
                "minItems": 1,
                "type": "array"
              }
            },
            "required": [
              "acceptedAt",
              "configurationVersion",
              "id",
              "payload",
              "requestId",
              "sequence",
              "status"
            ],
            "type": "object"
          },
          "lifecycle": {
            "enum": ["active", "paused", "archived"],
            "type": "string"
          },
          "lifecycleChangedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "maintenance": {
            "additionalProperties": false,
            "properties": {
              "endsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "reason": {
                "maxLength": 256,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "startsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              }
            },
            "required": ["endsAt", "startsAt"],
            "type": "object"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "nextDeadline": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "reconciliation": {
            "additionalProperties": false,
            "properties": {
              "directory": {
                "enum": ["pending", "synchronized"],
                "type": "string"
              },
              "usage": { "enum": ["pending", "synchronized"], "type": "string" }
            },
            "required": ["directory", "usage"],
            "type": "object"
          },
          "restorableUntil": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "retainedHistory": {
            "additionalProperties": false,
            "properties": {
              "coverage": {
                "additionalProperties": false,
                "properties": {
                  "availableFrom": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "availableThrough": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "truncated": { "const": true, "type": "boolean" }
                },
                "type": "object"
              },
              "datapoints": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "observedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "values": {
                      "additionalProperties": { "type": "number" },
                      "propertyNames": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "type": "object"
                    }
                  },
                  "required": ["observedAt", "values"],
                  "type": "object"
                },
                "maxItems": 500,
                "type": "array"
              },
              "measurementKeys": {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "maxItems": 4,
                "minItems": 1,
                "type": "array"
              },
              "truncated": { "type": "boolean" }
            },
            "required": ["datapoints", "measurementKeys", "truncated"],
            "type": "object"
          }
        },
        "required": [
          "configuration",
          "initializedAt",
          "jurisdiction",
          "lifecycle",
          "monitorKey",
          "reconciliation"
        ],
        "title": "MonitorDetail",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#CanonicalMonitorDetailSchema",
        "x-signalsitter-source-only-refinements": [
          "Evidence reported as unavailable is never also returned on the same observation.",
          "Unavailable-evidence entries name each stored record at most once, carry this contract's own explanation for their reason, and state a recorded engine version exactly when the engine version is the reason and never the version this build runs.",
          "Latest observation configuration cannot exceed the current configuration, and an active monitor's deadlines follow its latest accepted observation.",
          "A restorable-until timestamp is present exactly for an archived monitor.",
          "Compact retained history, when present, names each selected measurement once, carries exactly that selection on every datapoint, and stays strictly chronological.",
          "Normalized observation outcomes consistently identify observed, normalized, missing, counter-baseline, and counter-reset values.",
          "Explicit numeric-rule evidence consistently identifies evaluated values, skipped reasons, breach phase, count-or-time progress, effective consequence, ratio denominators, and actionable incident-policy inputs."
        ]
      },
      "MonitorEnforcement": {
        "additionalProperties": false,
        "properties": {
          "entitlementSuspended": { "type": "boolean" },
          "intervalSeconds": {
            "maximum": 31536000,
            "minimum": 60,
            "type": "integer"
          }
        },
        "required": ["entitlementSuspended"],
        "title": "MonitorEnforcement",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorEnforcementSchema"
      },
      "MonitorId": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
        "title": "MonitorId",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#MonitorIdSchema"
      },
      "MonitorJurisdiction": {
        "enum": ["unrestricted", "eu", "us", "fedramp"],
        "title": "MonitorJurisdiction",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#MonitorJurisdictionSchema"
      },
      "MonitorKey": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
        "title": "MonitorKey",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#MonitorKeySchema"
      },
      "MonitorLatestObservation": {
        "additionalProperties": false,
        "properties": {
          "acceptedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "baselineEvaluations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "configurationVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "engineVersion": { "const": 2, "type": "number" },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "normalizationStatus": {
                  "enum": [
                    "value",
                    "counter_baseline",
                    "counter_reset",
                    "missing_skipped",
                    "missing_zero"
                  ],
                  "type": "string"
                },
                "normalizationVersion": { "const": 1, "type": "number" },
                "notActionableReason": {
                  "enum": ["baseline_below_minimum_level"],
                  "type": "string"
                },
                "notEvaluatedReason": {
                  "enum": [
                    "measurement_missing",
                    "counter_baseline",
                    "counter_reset",
                    "numeric_overflow",
                    "heartbeat_expectation_disabled"
                  ],
                  "type": "string"
                },
                "originalExpectedValue": { "type": "number" },
                "originalLowerBound": { "type": "number" },
                "originalObservedValue": { "type": "number" },
                "originalScaleBasis": {
                  "enum": ["measurement", "counter_delta"],
                  "type": "string"
                },
                "originalUpperBound": { "type": "number" },
                "policyInput": {
                  "additionalProperties": false,
                  "properties": {
                    "actionable": { "type": "boolean" },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    }
                  },
                  "required": ["actionable", "mode"],
                  "type": "object"
                },
                "readiness": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "baselineSamples": {
                          "maximum": 15,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "requiredBaselineSamples": {
                          "const": 16,
                          "type": "number"
                        },
                        "requiredResidualSamples": {
                          "const": 32,
                          "type": "number"
                        },
                        "residualSamples": { "const": 0, "type": "number" },
                        "state": {
                          "const": "warming_baseline",
                          "type": "string"
                        }
                      },
                      "required": [
                        "requiredBaselineSamples",
                        "requiredResidualSamples",
                        "baselineSamples",
                        "residualSamples",
                        "state"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "baselineSamples": {
                          "maximum": 128,
                          "minimum": 16,
                          "type": "integer"
                        },
                        "requiredBaselineSamples": {
                          "const": 16,
                          "type": "number"
                        },
                        "requiredResidualSamples": {
                          "const": 32,
                          "type": "number"
                        },
                        "residualSamples": {
                          "maximum": 31,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "state": {
                          "const": "warming_residuals",
                          "type": "string"
                        }
                      },
                      "required": [
                        "requiredBaselineSamples",
                        "requiredResidualSamples",
                        "baselineSamples",
                        "residualSamples",
                        "state"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "baselineSamples": {
                          "maximum": 128,
                          "minimum": 16,
                          "type": "integer"
                        },
                        "requiredBaselineSamples": {
                          "const": 16,
                          "type": "number"
                        },
                        "requiredResidualSamples": {
                          "const": 32,
                          "type": "number"
                        },
                        "residualSamples": {
                          "maximum": 128,
                          "minimum": 32,
                          "type": "integer"
                        },
                        "state": { "const": "ready", "type": "string" }
                      },
                      "required": [
                        "requiredBaselineSamples",
                        "requiredResidualSamples",
                        "baselineSamples",
                        "residualSamples",
                        "state"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "residualModel": {
                  "enum": ["robust_z", "count"],
                  "type": "string"
                },
                "residualModelReadiness": {
                  "additionalProperties": false,
                  "properties": {
                    "candidate": {
                      "enum": ["robust_z", "count"],
                      "type": "string"
                    },
                    "holdoutSamples": {
                      "maximum": 32,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "meanLogLikelihoodGain": { "type": "number" },
                    "minimumMeanLogLikelihoodGain": {
                      "const": 0.1,
                      "type": "number"
                    },
                    "requiredHoldoutSamples": { "const": 32, "type": "number" },
                    "state": {
                      "enum": [
                        "ineligible",
                        "warming_holdout",
                        "insufficient_improvement",
                        "validated"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "candidate",
                    "holdoutSamples",
                    "minimumMeanLogLikelihoodGain",
                    "requiredHoldoutSamples",
                    "state"
                  ],
                  "type": "object"
                },
                "residualModelSelectionReason": {
                  "enum": [
                    "count_improved",
                    "distribution_ineligible",
                    "holdout_warming",
                    "insufficient_improvement"
                  ],
                  "type": "string"
                },
                "residualScore": { "minimum": 0, "type": "number" },
                "sensitivity": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "expectedAlertRate": {
                          "const": 0.01,
                          "type": "number"
                        },
                        "name": { "const": "low", "type": "string" },
                        "residualQuantile": { "const": 0.99, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "expectedAlertRate",
                        "name",
                        "residualQuantile"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "expectedAlertRate": {
                          "const": 0.03,
                          "type": "number"
                        },
                        "name": { "const": "medium", "type": "string" },
                        "residualQuantile": { "const": 0.97, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "expectedAlertRate",
                        "name",
                        "residualQuantile"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "expectedAlertRate": {
                          "const": 0.05,
                          "type": "number"
                        },
                        "name": { "const": "high", "type": "string" },
                        "residualQuantile": { "const": 0.95, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "expectedAlertRate",
                        "name",
                        "residualQuantile"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "status": {
                  "enum": [
                    "warming",
                    "normal",
                    "suspected_anomaly",
                    "not_evaluated"
                  ],
                  "type": "string"
                },
                "threshold": { "exclusiveMinimum": 0, "type": "number" },
                "transform": { "enum": ["none", "log1p"], "type": "string" },
                "transformedExpectedValue": { "type": "number" },
                "transformedLowerBound": { "type": "number" },
                "transformedMad": { "minimum": 0, "type": "number" },
                "transformedObservedValue": { "type": "number" },
                "transformedScale": { "exclusiveMinimum": 0, "type": "number" },
                "transformedUpperBound": { "type": "number" },
                "unit": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "updateDisposition": {
                  "enum": ["full", "winsorized", "skipped"],
                  "type": "string"
                }
              },
              "required": [
                "configurationVersion",
                "engineVersion",
                "explanation",
                "measurementKey",
                "normalizationStatus",
                "normalizationVersion",
                "originalScaleBasis",
                "policyInput",
                "readiness",
                "residualModel",
                "residualModelReadiness",
                "residualModelSelectionReason",
                "sensitivity",
                "status",
                "transform",
                "updateDisposition"
              ],
              "type": "object"
            },
            "maxItems": 16,
            "type": "array"
          },
          "configurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "incidentPolicyDecision": {
            "additionalProperties": false,
            "properties": {
              "configurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "confirmation": {
                "additionalProperties": false,
                "properties": {
                  "confirmed": { "type": "boolean" },
                  "observedInWindow": {
                    "maximum": 6,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "required": { "maximum": 6, "minimum": 1, "type": "integer" },
                  "window": { "maximum": 6, "minimum": 1, "type": "integer" }
                },
                "required": [
                  "confirmed",
                  "observedInWindow",
                  "required",
                  "window"
                ],
                "type": "object"
              },
              "contributions": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "breach": {
                      "additionalProperties": false,
                      "properties": {
                        "consequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "justBecameSustained": { "type": "boolean" },
                        "phase": {
                          "enum": ["clear", "transient", "sustained"],
                          "type": "string"
                        },
                        "progress": {
                          "additionalProperties": false,
                          "properties": {
                            "elapsedSeconds": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "qualifyingObservations": {
                              "maximum": 10,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "remaining": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "startedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "elapsedSeconds",
                            "qualifyingObservations",
                            "remaining"
                          ],
                          "type": "object"
                        },
                        "sustainedConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "sustainedCriterion": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "observations",
                                  "type": "string"
                                },
                                "observations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "observations"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "elapsed_time",
                                  "type": "string"
                                },
                                "seconds": {
                                  "maximum": 604800,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "seconds"],
                              "type": "object"
                            }
                          ]
                        },
                        "transientConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "consequence",
                        "justBecameSustained",
                        "phase",
                        "progress",
                        "sustainedConsequence",
                        "sustainedCriterion",
                        "transientConsequence"
                      ],
                      "type": "object"
                    },
                    "detector": {
                      "enum": [
                        "explicit_rule",
                        "adaptive_baseline",
                        "seasonal_baseline",
                        "persistent_shift"
                      ],
                      "type": "string"
                    },
                    "durationSamples": {
                      "maximum": 1000000,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "ruleId": {
                      "maxLength": 160,
                      "minLength": 3,
                      "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                      "type": "string"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "trigger": {
                      "enum": [
                        "explicit_rule",
                        "extreme_deviation",
                        "moderate_confirmation",
                        "persistent_shift"
                      ],
                      "type": "string"
                    }
                  },
                  "required": ["detector", "measurementKey", "severity"],
                  "type": "object"
                },
                "maxItems": 80,
                "type": "array"
              },
              "engineVersion": { "const": 1, "type": "number" },
              "evaluation": {
                "additionalProperties": false,
                "properties": {
                  "evaluatedMeasurementKeys": {
                    "items": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "policyActive": { "type": "boolean" },
                  "publishedMeasurementKeys": {
                    "items": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maxItems": 32,
                    "type": "array"
                  }
                },
                "required": [
                  "evaluatedMeasurementKeys",
                  "policyActive",
                  "publishedMeasurementKeys"
                ],
                "type": "object"
              },
              "explanation": {
                "maxLength": 512,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "notifiable": { "type": "boolean" },
              "outcome": {
                "enum": [
                  "none",
                  "recorded",
                  "confirming",
                  "incident_opened",
                  "incident_sustained",
                  "recovery_pending",
                  "recovery_confirmed"
                ],
                "type": "string"
              },
              "profile": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "configured": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "confirmationRequired": { "const": 4, "type": "number" },
                      "confirmationWindow": { "const": 6, "type": "number" },
                      "extremeResidualMultiple": {
                        "const": 4,
                        "type": "number"
                      },
                      "name": { "const": "low", "type": "string" },
                      "recoveryConfirmationObservations": {
                        "const": 4,
                        "type": "number"
                      },
                      "regimeChangeObservations": {
                        "const": 96,
                        "type": "number"
                      }
                    },
                    "required": [
                      "configured",
                      "confirmationRequired",
                      "confirmationWindow",
                      "extremeResidualMultiple",
                      "name",
                      "recoveryConfirmationObservations",
                      "regimeChangeObservations"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "configured": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "confirmationRequired": { "const": 3, "type": "number" },
                      "confirmationWindow": { "const": 5, "type": "number" },
                      "extremeResidualMultiple": {
                        "const": 3,
                        "type": "number"
                      },
                      "name": { "const": "medium", "type": "string" },
                      "recoveryConfirmationObservations": {
                        "const": 3,
                        "type": "number"
                      },
                      "regimeChangeObservations": {
                        "const": 48,
                        "type": "number"
                      }
                    },
                    "required": [
                      "configured",
                      "confirmationRequired",
                      "confirmationWindow",
                      "extremeResidualMultiple",
                      "name",
                      "recoveryConfirmationObservations",
                      "regimeChangeObservations"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "configured": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "confirmationRequired": { "const": 2, "type": "number" },
                      "confirmationWindow": { "const": 4, "type": "number" },
                      "extremeResidualMultiple": {
                        "const": 2.5,
                        "type": "number"
                      },
                      "name": { "const": "high", "type": "string" },
                      "recoveryConfirmationObservations": {
                        "const": 3,
                        "type": "number"
                      },
                      "regimeChangeObservations": {
                        "const": 24,
                        "type": "number"
                      }
                    },
                    "required": [
                      "configured",
                      "confirmationRequired",
                      "confirmationWindow",
                      "extremeResidualMultiple",
                      "name",
                      "recoveryConfirmationObservations",
                      "regimeChangeObservations"
                    ],
                    "type": "object"
                  }
                ]
              },
              "recovery": {
                "additionalProperties": false,
                "properties": {
                  "confirmedObservations": {
                    "maximum": 10,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "requiredObservations": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": ["confirmedObservations", "requiredObservations"],
                "type": "object"
              },
              "regimeChange": {
                "additionalProperties": false,
                "properties": {
                  "measurementKeys": {
                    "items": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "mode": { "enum": ["manual", "automatic"], "type": "string" },
                  "requiredObservations": {
                    "maximum": 1000000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "state": {
                    "enum": ["none", "watching", "available", "applied"],
                    "type": "string"
                  },
                  "sustainedObservations": {
                    "maximum": 1000000,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "measurementKeys",
                  "mode",
                  "requiredObservations",
                  "state",
                  "sustainedObservations"
                ],
                "type": "object"
              },
              "severity": {
                "enum": ["info", "warning", "critical"],
                "type": "string"
              },
              "suppression": {
                "enum": [
                  "detector_unconfirmed",
                  "detector_warming",
                  "detector_shadow_mode",
                  "open_incident"
                ],
                "type": "string"
              },
              "triggers": {
                "items": {
                  "enum": [
                    "explicit_rule",
                    "extreme_deviation",
                    "moderate_confirmation",
                    "persistent_shift"
                  ],
                  "type": "string"
                },
                "maxItems": 4,
                "type": "array"
              }
            },
            "required": [
              "configurationVersion",
              "confirmation",
              "contributions",
              "engineVersion",
              "explanation",
              "notifiable",
              "outcome",
              "profile",
              "recovery",
              "regimeChange",
              "severity",
              "triggers"
            ],
            "type": "object"
          },
          "normalizedMeasurements": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "definition": {
                  "additionalProperties": false,
                  "properties": {
                    "disabledRules": {
                      "items": {
                        "enum": [
                          "minimum",
                          "maximum",
                          "zero",
                          "nonzero",
                          "absolute_delta",
                          "percentage_delta",
                          "ratio_minimum",
                          "ratio_maximum"
                        ],
                        "type": "string"
                      },
                      "maxItems": 8,
                      "type": "array"
                    },
                    "maximum": { "type": "number" },
                    "maximumAbsoluteDelta": { "minimum": 0, "type": "number" },
                    "maximumPercentageDelta": {
                      "minimum": 0,
                      "type": "number"
                    },
                    "metricType": {
                      "default": "gauge",
                      "enum": [
                        "gauge",
                        "count",
                        "rate",
                        "duration",
                        "counter",
                        "size"
                      ],
                      "type": "string"
                    },
                    "minimum": { "type": "number" },
                    "missingPolicy": {
                      "default": "skip",
                      "enum": ["skip", "zero", "reject"],
                      "type": "string"
                    },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    },
                    "ratio": {
                      "additionalProperties": false,
                      "properties": {
                        "denominator": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maximum": { "type": "number" },
                        "minimum": { "type": "number" }
                      },
                      "required": ["denominator"],
                      "type": "object"
                    },
                    "ruleAction": {
                      "additionalProperties": false,
                      "properties": {
                        "mode": {
                          "enum": ["inactive", "active"],
                          "type": "string"
                        },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["mode", "version"],
                      "type": "object"
                    },
                    "rulePolicy": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "consecutiveObservations": {
                              "default": 1,
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "severity": {
                              "default": "critical",
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "sustainedConsequence": {
                              "default": "critical",
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "sustainedCriterion": {
                              "default": {
                                "kind": "observations",
                                "observations": 1
                              },
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "observations",
                                      "type": "string"
                                    },
                                    "observations": {
                                      "maximum": 10,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "observations"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "elapsed_time",
                                      "type": "string"
                                    },
                                    "seconds": {
                                      "maximum": 604800,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "seconds"],
                                  "type": "object"
                                }
                              ]
                            },
                            "transientConsequence": {
                              "default": "none",
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["version"],
                          "type": "object"
                        }
                      ]
                    },
                    "sensitivity": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    },
                    "transform": {
                      "default": "none",
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "zeroExpectation": {
                      "enum": ["zero", "nonzero"],
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "definitionVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "key": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "normalizationVersion": { "const": 1, "type": "number" },
                "normalizedValue": { "type": "number" },
                "originalValue": { "type": "number" },
                "previousOriginalValue": { "type": "number" },
                "status": {
                  "enum": [
                    "value",
                    "counter_baseline",
                    "counter_reset",
                    "missing_skipped",
                    "missing_zero"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "definition",
                "definitionVersion",
                "key",
                "normalizationVersion",
                "status"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "observedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "omittedDetail": {
            "items": {
              "anyOf": [
                {
                  "enum": [
                    "normalized_measurements",
                    "adaptive_baseline",
                    "explicit_rule",
                    "incident_policy",
                    "persistent_shift",
                    "seasonal_baseline"
                  ],
                  "type": "string"
                },
                {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                }
              ]
            },
            "maxItems": 16,
            "minItems": 1,
            "type": "array"
          },
          "payload": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "empty", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "number", "type": "string" },
                  "value": { "type": "number" }
                },
                "required": ["kind", "value"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "measurements", "type": "string" },
                  "values": {
                    "additionalProperties": {
                      "anyOf": [
                        { "type": "number" },
                        {
                          "anyOf": [
                            { "type": "boolean" },
                            { "type": "null" },
                            {
                              "maxLength": 256,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            }
                          ]
                        }
                      ]
                    },
                    "propertyNames": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "type": "object"
                  }
                },
                "required": ["kind", "values"],
                "type": "object"
              }
            ]
          },
          "provenance": {
            "anyOf": [
              { "enum": ["live", "historical_import"], "type": "string" },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "requestId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "ruleEvaluations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "breach": {
                  "additionalProperties": false,
                  "properties": {
                    "consequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    },
                    "justBecameSustained": { "type": "boolean" },
                    "phase": {
                      "enum": ["clear", "transient", "sustained"],
                      "type": "string"
                    },
                    "progress": {
                      "additionalProperties": false,
                      "properties": {
                        "elapsedSeconds": {
                          "maximum": 604800,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "qualifyingObservations": {
                          "maximum": 10,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "remaining": {
                          "maximum": 604800,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "startedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "elapsedSeconds",
                        "qualifyingObservations",
                        "remaining"
                      ],
                      "type": "object"
                    },
                    "sustainedConsequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    },
                    "sustainedCriterion": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "kind": {
                              "const": "observations",
                              "type": "string"
                            },
                            "observations": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": ["kind", "observations"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "kind": {
                              "const": "elapsed_time",
                              "type": "string"
                            },
                            "seconds": {
                              "maximum": 604800,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": ["kind", "seconds"],
                          "type": "object"
                        }
                      ]
                    },
                    "transientConsequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    }
                  },
                  "required": [
                    "consequence",
                    "justBecameSustained",
                    "phase",
                    "progress",
                    "sustainedConsequence",
                    "sustainedCriterion",
                    "transientConsequence"
                  ],
                  "type": "object"
                },
                "comparison": {
                  "enum": ["at_least", "at_most", "equal", "not_equal"],
                  "type": "string"
                },
                "computedValue": { "type": "number" },
                "configurationVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "confirmation": {
                  "additionalProperties": false,
                  "properties": {
                    "confirmed": { "type": "boolean" },
                    "consecutiveViolations": {
                      "maximum": 10,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "required": {
                      "maximum": 10,
                      "minimum": 1,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "confirmed",
                    "consecutiveViolations",
                    "required"
                  ],
                  "type": "object"
                },
                "denominatorMeasurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "engineVersion": {
                  "anyOf": [
                    { "const": 1, "type": "number" },
                    { "const": 2, "type": "number" }
                  ]
                },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "minimum",
                    "maximum",
                    "zero",
                    "nonzero",
                    "absolute_delta",
                    "percentage_delta",
                    "ratio_minimum",
                    "ratio_maximum"
                  ],
                  "type": "string"
                },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "normalizationStatus": {
                  "enum": [
                    "value",
                    "counter_baseline",
                    "counter_reset",
                    "missing_skipped",
                    "missing_zero"
                  ],
                  "type": "string"
                },
                "notEvaluatedReason": {
                  "enum": [
                    "measurement_missing",
                    "counter_baseline",
                    "counter_reset",
                    "previous_value_missing",
                    "previous_value_zero",
                    "ratio_denominator_missing",
                    "ratio_denominator_zero",
                    "numeric_overflow"
                  ],
                  "type": "string"
                },
                "observedValue": { "type": "number" },
                "policyInput": {
                  "additionalProperties": false,
                  "properties": {
                    "actionable": { "type": "boolean" },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    }
                  },
                  "required": ["actionable", "mode", "severity"],
                  "type": "object"
                },
                "referenceValue": { "type": "number" },
                "ruleId": {
                  "maxLength": 160,
                  "minLength": 3,
                  "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                  "type": "string"
                },
                "severity": {
                  "enum": ["info", "warning", "critical"],
                  "type": "string"
                },
                "status": {
                  "enum": ["passed", "violated", "not_evaluated"],
                  "type": "string"
                },
                "threshold": { "type": "number" },
                "transform": { "enum": ["none", "log1p"], "type": "string" }
              },
              "required": [
                "comparison",
                "configurationVersion",
                "confirmation",
                "engineVersion",
                "explanation",
                "kind",
                "measurementKey",
                "normalizationStatus",
                "policyInput",
                "ruleId",
                "severity",
                "status",
                "threshold",
                "transform"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "seasonalEvaluations": {
            "items": {
              "oneOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyBucketSamples": {
                      "maximum": 24,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "daily", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    },
                    "engineVersion": { "const": 1, "type": "number" },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "localBucket": {
                      "additionalProperties": false,
                      "properties": {
                        "dailyHour": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "offsetMinutes": {
                          "maximum": 1440,
                          "minimum": -1440,
                          "type": "integer"
                        },
                        "weeklyHour": {
                          "maximum": 167,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": ["dailyHour", "offsetMinutes", "weeklyHour"],
                      "type": "object"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "neighborToleranceHours": { "const": 1, "type": "number" },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "numeric_overflow",
                        "heartbeat_expectation_disabled"
                      ],
                      "type": "string"
                    },
                    "originalExpectedValue": { "type": "number" },
                    "originalLowerBound": { "type": "number" },
                    "originalObservedValue": { "type": "number" },
                    "originalScaleBasis": {
                      "enum": ["measurement", "counter_delta"],
                      "type": "string"
                    },
                    "originalUpperBound": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode"],
                      "type": "object"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "selectedModel": { "const": "global", "type": "string" },
                    "selectionReason": {
                      "enum": [
                        "global_baseline_warming",
                        "insufficient_improvement",
                        "not_evaluated",
                        "seasonality_warming",
                        "sparse_bucket"
                      ],
                      "type": "string"
                    },
                    "sensitivity": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.01,
                              "type": "number"
                            },
                            "name": { "const": "low", "type": "string" },
                            "residualQuantile": {
                              "const": 0.99,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.03,
                              "type": "number"
                            },
                            "name": { "const": "medium", "type": "string" },
                            "residualQuantile": {
                              "const": 0.97,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.05,
                              "type": "number"
                            },
                            "name": { "const": "high", "type": "string" },
                            "residualQuantile": {
                              "const": 0.95,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "warming",
                        "normal",
                        "suspected_anomaly",
                        "not_evaluated"
                      ],
                      "type": "string"
                    },
                    "threshold": { "exclusiveMinimum": 0, "type": "number" },
                    "timeZone": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "transformedExpectedValue": { "type": "number" },
                    "transformedLowerBound": { "type": "number" },
                    "transformedMad": { "minimum": 0, "type": "number" },
                    "transformedObservedValue": { "type": "number" },
                    "transformedScale": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "transformedUpperBound": { "type": "number" },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "updateDisposition": {
                      "enum": ["full", "skipped"],
                      "type": "string"
                    },
                    "weeklyBucketSamples": {
                      "maximum": 12,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "weeklyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "weekly", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "configurationVersion",
                    "dailyBucketSamples",
                    "dailyReadiness",
                    "engineVersion",
                    "explanation",
                    "localBucket",
                    "measurementKey",
                    "neighborToleranceHours",
                    "normalizationStatus",
                    "normalizationVersion",
                    "originalScaleBasis",
                    "policyInput",
                    "sensitivity",
                    "status",
                    "timeZone",
                    "transform",
                    "updateDisposition",
                    "weeklyBucketSamples",
                    "weeklyReadiness",
                    "selectedModel",
                    "selectionReason"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyBucketSamples": {
                      "maximum": 24,
                      "minimum": 3,
                      "type": "integer"
                    },
                    "dailyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "daily", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "candidateWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "cyclesObserved": { "const": 7, "type": "number" },
                            "globalWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "holdoutSamples": {
                              "maximum": 32,
                              "minimum": 4,
                              "type": "integer"
                            },
                            "relativeImprovement": {
                              "maximum": 1,
                              "minimum": 0.1,
                              "type": "number"
                            },
                            "state": { "const": "validated", "type": "string" }
                          },
                          "required": [
                            "candidateWinsorizedMeanAbsoluteError",
                            "cyclesObserved",
                            "globalWinsorizedMeanAbsoluteError",
                            "holdoutSamples",
                            "relativeImprovement",
                            "state"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "engineVersion": { "const": 1, "type": "number" },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "localBucket": {
                      "additionalProperties": false,
                      "properties": {
                        "dailyHour": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "offsetMinutes": {
                          "maximum": 1440,
                          "minimum": -1440,
                          "type": "integer"
                        },
                        "weeklyHour": {
                          "maximum": 167,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": ["dailyHour", "offsetMinutes", "weeklyHour"],
                      "type": "object"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "neighborToleranceHours": { "const": 1, "type": "number" },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "numeric_overflow",
                        "heartbeat_expectation_disabled"
                      ],
                      "type": "string"
                    },
                    "originalExpectedValue": { "type": "number" },
                    "originalLowerBound": { "type": "number" },
                    "originalObservedValue": { "type": "number" },
                    "originalScaleBasis": {
                      "enum": ["measurement", "counter_delta"],
                      "type": "string"
                    },
                    "originalUpperBound": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode"],
                      "type": "object"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "selectedModel": { "const": "daily", "type": "string" },
                    "selectionReason": {
                      "const": "daily_improved",
                      "type": "string"
                    },
                    "sensitivity": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.01,
                              "type": "number"
                            },
                            "name": { "const": "low", "type": "string" },
                            "residualQuantile": {
                              "const": 0.99,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.03,
                              "type": "number"
                            },
                            "name": { "const": "medium", "type": "string" },
                            "residualQuantile": {
                              "const": 0.97,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.05,
                              "type": "number"
                            },
                            "name": { "const": "high", "type": "string" },
                            "residualQuantile": {
                              "const": 0.95,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "warming",
                        "normal",
                        "suspected_anomaly",
                        "not_evaluated"
                      ],
                      "type": "string"
                    },
                    "threshold": { "exclusiveMinimum": 0, "type": "number" },
                    "timeZone": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "transformedExpectedValue": { "type": "number" },
                    "transformedLowerBound": { "type": "number" },
                    "transformedMad": { "minimum": 0, "type": "number" },
                    "transformedObservedValue": { "type": "number" },
                    "transformedScale": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "transformedUpperBound": { "type": "number" },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "updateDisposition": {
                      "enum": ["full", "skipped"],
                      "type": "string"
                    },
                    "weeklyBucketSamples": {
                      "maximum": 12,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "weeklyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "weekly", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "configurationVersion",
                    "dailyBucketSamples",
                    "dailyReadiness",
                    "engineVersion",
                    "explanation",
                    "localBucket",
                    "measurementKey",
                    "neighborToleranceHours",
                    "normalizationStatus",
                    "normalizationVersion",
                    "originalScaleBasis",
                    "policyInput",
                    "sensitivity",
                    "status",
                    "timeZone",
                    "transform",
                    "updateDisposition",
                    "weeklyBucketSamples",
                    "weeklyReadiness",
                    "selectedModel",
                    "selectionReason"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyBucketSamples": {
                      "maximum": 24,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "daily", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    },
                    "engineVersion": { "const": 1, "type": "number" },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "localBucket": {
                      "additionalProperties": false,
                      "properties": {
                        "dailyHour": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "offsetMinutes": {
                          "maximum": 1440,
                          "minimum": -1440,
                          "type": "integer"
                        },
                        "weeklyHour": {
                          "maximum": 167,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": ["dailyHour", "offsetMinutes", "weeklyHour"],
                      "type": "object"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "neighborToleranceHours": { "const": 1, "type": "number" },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "numeric_overflow",
                        "heartbeat_expectation_disabled"
                      ],
                      "type": "string"
                    },
                    "originalExpectedValue": { "type": "number" },
                    "originalLowerBound": { "type": "number" },
                    "originalObservedValue": { "type": "number" },
                    "originalScaleBasis": {
                      "enum": ["measurement", "counter_delta"],
                      "type": "string"
                    },
                    "originalUpperBound": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode"],
                      "type": "object"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "selectedModel": { "const": "weekly", "type": "string" },
                    "selectionReason": {
                      "const": "weekly_improved",
                      "type": "string"
                    },
                    "sensitivity": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.01,
                              "type": "number"
                            },
                            "name": { "const": "low", "type": "string" },
                            "residualQuantile": {
                              "const": 0.99,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.03,
                              "type": "number"
                            },
                            "name": { "const": "medium", "type": "string" },
                            "residualQuantile": {
                              "const": 0.97,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.05,
                              "type": "number"
                            },
                            "name": { "const": "high", "type": "string" },
                            "residualQuantile": {
                              "const": 0.95,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "warming",
                        "normal",
                        "suspected_anomaly",
                        "not_evaluated"
                      ],
                      "type": "string"
                    },
                    "threshold": { "exclusiveMinimum": 0, "type": "number" },
                    "timeZone": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "transformedExpectedValue": { "type": "number" },
                    "transformedLowerBound": { "type": "number" },
                    "transformedMad": { "minimum": 0, "type": "number" },
                    "transformedObservedValue": { "type": "number" },
                    "transformedScale": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "transformedUpperBound": { "type": "number" },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "updateDisposition": {
                      "enum": ["full", "skipped"],
                      "type": "string"
                    },
                    "weeklyBucketSamples": {
                      "maximum": 12,
                      "minimum": 3,
                      "type": "integer"
                    },
                    "weeklyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "weekly", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "candidateWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "cyclesObserved": { "const": 4, "type": "number" },
                            "globalWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "holdoutSamples": {
                              "maximum": 32,
                              "minimum": 4,
                              "type": "integer"
                            },
                            "relativeImprovement": {
                              "maximum": 1,
                              "minimum": 0.1,
                              "type": "number"
                            },
                            "state": { "const": "validated", "type": "string" }
                          },
                          "required": [
                            "candidateWinsorizedMeanAbsoluteError",
                            "cyclesObserved",
                            "globalWinsorizedMeanAbsoluteError",
                            "holdoutSamples",
                            "relativeImprovement",
                            "state"
                          ],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "configurationVersion",
                    "dailyBucketSamples",
                    "dailyReadiness",
                    "engineVersion",
                    "explanation",
                    "localBucket",
                    "measurementKey",
                    "neighborToleranceHours",
                    "normalizationStatus",
                    "normalizationVersion",
                    "originalScaleBasis",
                    "policyInput",
                    "sensitivity",
                    "status",
                    "timeZone",
                    "transform",
                    "updateDisposition",
                    "weeklyBucketSamples",
                    "weeklyReadiness",
                    "selectedModel",
                    "selectionReason"
                  ],
                  "type": "object"
                }
              ]
            },
            "maxItems": 16,
            "type": "array"
          },
          "sequence": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "shiftEvaluations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "accumulatedMagnitude": {
                  "maximum": 64,
                  "minimum": 0,
                  "type": "number"
                },
                "baselineScale": { "exclusiveMinimum": 0, "type": "number" },
                "boundedResidualContribution": {
                  "maximum": 3,
                  "minimum": -3,
                  "type": "number"
                },
                "configurationVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "direction": {
                  "enum": ["positive", "negative"],
                  "type": "string"
                },
                "durationSamples": {
                  "maximum": 1000000,
                  "minimum": 0,
                  "type": "integer"
                },
                "engineVersion": { "const": 3, "type": "number" },
                "ewma": { "maximum": 3, "minimum": -3, "type": "number" },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "negativeCusum": {
                  "maximum": 64,
                  "minimum": 0,
                  "type": "number"
                },
                "normalizationVersion": { "const": 1, "type": "number" },
                "normalizedResidual": { "type": "number" },
                "notEvaluatedReason": {
                  "enum": [
                    "measurement_missing",
                    "counter_baseline",
                    "counter_reset",
                    "numeric_overflow",
                    "heartbeat_expectation_disabled"
                  ],
                  "type": "string"
                },
                "pointAnomaly": { "type": "boolean" },
                "policyInput": {
                  "additionalProperties": false,
                  "properties": {
                    "actionable": { "type": "boolean" },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    }
                  },
                  "required": ["actionable", "mode"],
                  "type": "object"
                },
                "positiveCusum": {
                  "maximum": 64,
                  "minimum": 0,
                  "type": "number"
                },
                "preset": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "cusumAllowance": { "const": 0.75, "type": "number" },
                        "cusumThreshold": { "const": 12, "type": "number" },
                        "ewmaAlpha": { "const": 0.1, "type": "number" },
                        "ewmaRecoveryThreshold": {
                          "const": 0.3,
                          "type": "number"
                        },
                        "ewmaThreshold": { "const": 0.9, "type": "number" },
                        "maximumGapIntervals": { "const": 4, "type": "number" },
                        "minimumDurationSamples": {
                          "const": 4,
                          "type": "number"
                        },
                        "name": { "const": "low", "type": "string" },
                        "recoveryConfirmationSamples": {
                          "const": 4,
                          "type": "number"
                        },
                        "residualClip": { "const": 3, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "maximumGapIntervals",
                        "residualClip",
                        "cusumAllowance",
                        "cusumThreshold",
                        "ewmaAlpha",
                        "ewmaRecoveryThreshold",
                        "ewmaThreshold",
                        "minimumDurationSamples",
                        "name",
                        "recoveryConfirmationSamples"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "cusumAllowance": { "const": 0.5, "type": "number" },
                        "cusumThreshold": { "const": 8, "type": "number" },
                        "ewmaAlpha": { "const": 0.2, "type": "number" },
                        "ewmaRecoveryThreshold": {
                          "const": 0.25,
                          "type": "number"
                        },
                        "ewmaThreshold": { "const": 0.65, "type": "number" },
                        "maximumGapIntervals": { "const": 4, "type": "number" },
                        "minimumDurationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "name": { "const": "medium", "type": "string" },
                        "recoveryConfirmationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "residualClip": { "const": 3, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "maximumGapIntervals",
                        "residualClip",
                        "cusumAllowance",
                        "cusumThreshold",
                        "ewmaAlpha",
                        "ewmaRecoveryThreshold",
                        "ewmaThreshold",
                        "minimumDurationSamples",
                        "name",
                        "recoveryConfirmationSamples"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "cusumAllowance": { "const": 0.35, "type": "number" },
                        "cusumThreshold": { "const": 6, "type": "number" },
                        "ewmaAlpha": { "const": 0.3, "type": "number" },
                        "ewmaRecoveryThreshold": {
                          "const": 0.2,
                          "type": "number"
                        },
                        "ewmaThreshold": { "const": 0.45, "type": "number" },
                        "maximumGapIntervals": { "const": 4, "type": "number" },
                        "minimumDurationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "name": { "const": "high", "type": "string" },
                        "recoveryConfirmationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "residualClip": { "const": 3, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "maximumGapIntervals",
                        "residualClip",
                        "cusumAllowance",
                        "cusumThreshold",
                        "ewmaAlpha",
                        "ewmaRecoveryThreshold",
                        "ewmaThreshold",
                        "minimumDurationSamples",
                        "name",
                        "recoveryConfirmationSamples"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "resetReason": {
                  "enum": [
                    "accepted_regime_change",
                    "baseline_model_changed",
                    "configuration_changed",
                    "counter_baseline",
                    "counter_reset",
                    "lifecycle_suspended",
                    "long_gap",
                    "maintenance"
                  ],
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "warming",
                    "normal",
                    "accumulating",
                    "persistent_shift",
                    "recovering",
                    "reset",
                    "not_evaluated"
                  ],
                  "type": "string"
                },
                "wanderCalibration": {
                  "additionalProperties": false,
                  "properties": {
                    "cusumAllowance": {
                      "exclusiveMinimum": 0,
                      "maximum": 64,
                      "type": "number"
                    },
                    "cusumThreshold": {
                      "exclusiveMinimum": 0,
                      "maximum": 64,
                      "type": "number"
                    },
                    "holdoutSamples": {
                      "maximum": 1000000,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "minimumInflation": { "const": 1.2, "type": "number" },
                    "requiredHoldoutSamples": { "const": 32, "type": "number" },
                    "runningMeanInflation": {
                      "maximum": 4.358898943540674,
                      "minimum": 1,
                      "type": "number"
                    },
                    "state": {
                      "enum": ["warming_holdout", "independent", "calibrated"],
                      "type": "string"
                    }
                  },
                  "required": [
                    "cusumAllowance",
                    "cusumThreshold",
                    "holdoutSamples",
                    "minimumInflation",
                    "requiredHoldoutSamples",
                    "state"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "configurationVersion",
                "engineVersion",
                "explanation",
                "measurementKey",
                "normalizationVersion",
                "pointAnomaly",
                "policyInput",
                "preset",
                "status"
              ],
              "type": "object"
            },
            "maxItems": 16,
            "type": "array"
          },
          "status": {
            "anyOf": [
              {
                "enum": ["on_time", "late", "not_expected", "learning"],
                "type": "string"
              },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "unavailableEvidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "evidence": {
                  "enum": [
                    "adaptive_baseline",
                    "explicit_rule",
                    "incident_policy",
                    "persistent_shift",
                    "seasonal_baseline"
                  ],
                  "type": "string"
                },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "reason": {
                  "enum": ["engine_version", "unreadable"],
                  "type": "string"
                },
                "recordedEngineVersion": {
                  "maximum": 999,
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": ["evidence", "explanation", "reason"],
              "type": "object"
            },
            "maxItems": 5,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "acceptedAt",
          "configurationVersion",
          "id",
          "payload",
          "requestId",
          "sequence",
          "status"
        ],
        "title": "MonitorLatestObservation",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorLatestObservationSchema",
        "x-signalsitter-source-only-refinements": [
          "Evidence reported as unavailable is never also returned on the same observation.",
          "Unavailable-evidence entries name each stored record at most once, carry this contract's own explanation for their reason, and state a recorded engine version exactly when the engine version is the reason and never the version this build runs.",
          "Adaptive numeric-baseline evidence keeps readiness, finite prediction groups, original-scale bounds, update disposition, and actionable policy input mutually consistent.",
          "Normalized observation outcomes consistently identify observed, normalized, missing, counter-baseline, and counter-reset values.",
          "Explicit numeric-rule evidence consistently identifies evaluated values, skipped reasons, breach phase, count-or-time progress, effective consequence, ratio denominators, and actionable incident-policy inputs."
        ]
      },
      "MonitorLifecycleAction": {
        "enum": [
          "pause",
          "resume",
          "archive",
          "restore",
          "enter_maintenance",
          "exit_maintenance"
        ],
        "title": "MonitorLifecycleAction",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorLifecycleActionSchema"
      },
      "MonitorLifecycleRequest": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "enum": [
              "pause",
              "resume",
              "archive",
              "restore",
              "enter_maintenance",
              "exit_maintenance"
            ],
            "type": "string"
          },
          "window": {
            "additionalProperties": false,
            "properties": {
              "endsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "reason": {
                "maxLength": 256,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "startsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              }
            },
            "required": ["endsAt", "startsAt"],
            "type": "object"
          }
        },
        "required": ["action"],
        "title": "MonitorLifecycleRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorLifecycleRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "A maintenance window is required exactly for the enter_maintenance action."
        ]
      },
      "MonitorMaintenanceWindow": {
        "additionalProperties": false,
        "properties": {
          "endsAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "reason": {
            "maxLength": 256,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "startsAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": ["endsAt", "startsAt"],
        "title": "MonitorMaintenanceWindow",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorMaintenanceWindowSchema",
        "x-signalsitter-source-only-refinements": [
          "A maintenance window ends after it starts and spans at most thirty days."
        ]
      },
      "MonitorObservation": {
        "additionalProperties": false,
        "properties": {
          "acceptedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "baselineEvaluations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "configurationVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "engineVersion": { "const": 2, "type": "number" },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "normalizationStatus": {
                  "enum": [
                    "value",
                    "counter_baseline",
                    "counter_reset",
                    "missing_skipped",
                    "missing_zero"
                  ],
                  "type": "string"
                },
                "normalizationVersion": { "const": 1, "type": "number" },
                "notActionableReason": {
                  "enum": ["baseline_below_minimum_level"],
                  "type": "string"
                },
                "notEvaluatedReason": {
                  "enum": [
                    "measurement_missing",
                    "counter_baseline",
                    "counter_reset",
                    "numeric_overflow",
                    "heartbeat_expectation_disabled"
                  ],
                  "type": "string"
                },
                "originalExpectedValue": { "type": "number" },
                "originalLowerBound": { "type": "number" },
                "originalObservedValue": { "type": "number" },
                "originalScaleBasis": {
                  "enum": ["measurement", "counter_delta"],
                  "type": "string"
                },
                "originalUpperBound": { "type": "number" },
                "policyInput": {
                  "additionalProperties": false,
                  "properties": {
                    "actionable": { "type": "boolean" },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    }
                  },
                  "required": ["actionable", "mode"],
                  "type": "object"
                },
                "readiness": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "baselineSamples": {
                          "maximum": 15,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "requiredBaselineSamples": {
                          "const": 16,
                          "type": "number"
                        },
                        "requiredResidualSamples": {
                          "const": 32,
                          "type": "number"
                        },
                        "residualSamples": { "const": 0, "type": "number" },
                        "state": {
                          "const": "warming_baseline",
                          "type": "string"
                        }
                      },
                      "required": [
                        "requiredBaselineSamples",
                        "requiredResidualSamples",
                        "baselineSamples",
                        "residualSamples",
                        "state"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "baselineSamples": {
                          "maximum": 128,
                          "minimum": 16,
                          "type": "integer"
                        },
                        "requiredBaselineSamples": {
                          "const": 16,
                          "type": "number"
                        },
                        "requiredResidualSamples": {
                          "const": 32,
                          "type": "number"
                        },
                        "residualSamples": {
                          "maximum": 31,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "state": {
                          "const": "warming_residuals",
                          "type": "string"
                        }
                      },
                      "required": [
                        "requiredBaselineSamples",
                        "requiredResidualSamples",
                        "baselineSamples",
                        "residualSamples",
                        "state"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "baselineSamples": {
                          "maximum": 128,
                          "minimum": 16,
                          "type": "integer"
                        },
                        "requiredBaselineSamples": {
                          "const": 16,
                          "type": "number"
                        },
                        "requiredResidualSamples": {
                          "const": 32,
                          "type": "number"
                        },
                        "residualSamples": {
                          "maximum": 128,
                          "minimum": 32,
                          "type": "integer"
                        },
                        "state": { "const": "ready", "type": "string" }
                      },
                      "required": [
                        "requiredBaselineSamples",
                        "requiredResidualSamples",
                        "baselineSamples",
                        "residualSamples",
                        "state"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "residualModel": {
                  "enum": ["robust_z", "count"],
                  "type": "string"
                },
                "residualModelReadiness": {
                  "additionalProperties": false,
                  "properties": {
                    "candidate": {
                      "enum": ["robust_z", "count"],
                      "type": "string"
                    },
                    "holdoutSamples": {
                      "maximum": 32,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "meanLogLikelihoodGain": { "type": "number" },
                    "minimumMeanLogLikelihoodGain": {
                      "const": 0.1,
                      "type": "number"
                    },
                    "requiredHoldoutSamples": { "const": 32, "type": "number" },
                    "state": {
                      "enum": [
                        "ineligible",
                        "warming_holdout",
                        "insufficient_improvement",
                        "validated"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "candidate",
                    "holdoutSamples",
                    "minimumMeanLogLikelihoodGain",
                    "requiredHoldoutSamples",
                    "state"
                  ],
                  "type": "object"
                },
                "residualModelSelectionReason": {
                  "enum": [
                    "count_improved",
                    "distribution_ineligible",
                    "holdout_warming",
                    "insufficient_improvement"
                  ],
                  "type": "string"
                },
                "residualScore": { "minimum": 0, "type": "number" },
                "sensitivity": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "expectedAlertRate": {
                          "const": 0.01,
                          "type": "number"
                        },
                        "name": { "const": "low", "type": "string" },
                        "residualQuantile": { "const": 0.99, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "expectedAlertRate",
                        "name",
                        "residualQuantile"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "expectedAlertRate": {
                          "const": 0.03,
                          "type": "number"
                        },
                        "name": { "const": "medium", "type": "string" },
                        "residualQuantile": { "const": 0.97, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "expectedAlertRate",
                        "name",
                        "residualQuantile"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "expectedAlertRate": {
                          "const": 0.05,
                          "type": "number"
                        },
                        "name": { "const": "high", "type": "string" },
                        "residualQuantile": { "const": 0.95, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "expectedAlertRate",
                        "name",
                        "residualQuantile"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "status": {
                  "enum": [
                    "warming",
                    "normal",
                    "suspected_anomaly",
                    "not_evaluated"
                  ],
                  "type": "string"
                },
                "threshold": { "exclusiveMinimum": 0, "type": "number" },
                "transform": { "enum": ["none", "log1p"], "type": "string" },
                "transformedExpectedValue": { "type": "number" },
                "transformedLowerBound": { "type": "number" },
                "transformedMad": { "minimum": 0, "type": "number" },
                "transformedObservedValue": { "type": "number" },
                "transformedScale": { "exclusiveMinimum": 0, "type": "number" },
                "transformedUpperBound": { "type": "number" },
                "unit": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "updateDisposition": {
                  "enum": ["full", "winsorized", "skipped"],
                  "type": "string"
                }
              },
              "required": [
                "configurationVersion",
                "engineVersion",
                "explanation",
                "measurementKey",
                "normalizationStatus",
                "normalizationVersion",
                "originalScaleBasis",
                "policyInput",
                "readiness",
                "residualModel",
                "residualModelReadiness",
                "residualModelSelectionReason",
                "sensitivity",
                "status",
                "transform",
                "updateDisposition"
              ],
              "type": "object"
            },
            "maxItems": 16,
            "type": "array"
          },
          "configurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "incidentPolicyDecision": {
            "additionalProperties": false,
            "properties": {
              "configurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "confirmation": {
                "additionalProperties": false,
                "properties": {
                  "confirmed": { "type": "boolean" },
                  "observedInWindow": {
                    "maximum": 6,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "required": { "maximum": 6, "minimum": 1, "type": "integer" },
                  "window": { "maximum": 6, "minimum": 1, "type": "integer" }
                },
                "required": [
                  "confirmed",
                  "observedInWindow",
                  "required",
                  "window"
                ],
                "type": "object"
              },
              "contributions": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "breach": {
                      "additionalProperties": false,
                      "properties": {
                        "consequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "justBecameSustained": { "type": "boolean" },
                        "phase": {
                          "enum": ["clear", "transient", "sustained"],
                          "type": "string"
                        },
                        "progress": {
                          "additionalProperties": false,
                          "properties": {
                            "elapsedSeconds": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "qualifyingObservations": {
                              "maximum": 10,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "remaining": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "startedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "elapsedSeconds",
                            "qualifyingObservations",
                            "remaining"
                          ],
                          "type": "object"
                        },
                        "sustainedConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "sustainedCriterion": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "observations",
                                  "type": "string"
                                },
                                "observations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "observations"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "elapsed_time",
                                  "type": "string"
                                },
                                "seconds": {
                                  "maximum": 604800,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "seconds"],
                              "type": "object"
                            }
                          ]
                        },
                        "transientConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "consequence",
                        "justBecameSustained",
                        "phase",
                        "progress",
                        "sustainedConsequence",
                        "sustainedCriterion",
                        "transientConsequence"
                      ],
                      "type": "object"
                    },
                    "detector": {
                      "enum": [
                        "explicit_rule",
                        "adaptive_baseline",
                        "seasonal_baseline",
                        "persistent_shift"
                      ],
                      "type": "string"
                    },
                    "durationSamples": {
                      "maximum": 1000000,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "ruleId": {
                      "maxLength": 160,
                      "minLength": 3,
                      "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                      "type": "string"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "trigger": {
                      "enum": [
                        "explicit_rule",
                        "extreme_deviation",
                        "moderate_confirmation",
                        "persistent_shift"
                      ],
                      "type": "string"
                    }
                  },
                  "required": ["detector", "measurementKey", "severity"],
                  "type": "object"
                },
                "maxItems": 80,
                "type": "array"
              },
              "engineVersion": { "const": 1, "type": "number" },
              "evaluation": {
                "additionalProperties": false,
                "properties": {
                  "evaluatedMeasurementKeys": {
                    "items": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "policyActive": { "type": "boolean" },
                  "publishedMeasurementKeys": {
                    "items": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maxItems": 32,
                    "type": "array"
                  }
                },
                "required": [
                  "evaluatedMeasurementKeys",
                  "policyActive",
                  "publishedMeasurementKeys"
                ],
                "type": "object"
              },
              "explanation": {
                "maxLength": 512,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "notifiable": { "type": "boolean" },
              "outcome": {
                "enum": [
                  "none",
                  "recorded",
                  "confirming",
                  "incident_opened",
                  "incident_sustained",
                  "recovery_pending",
                  "recovery_confirmed"
                ],
                "type": "string"
              },
              "profile": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "configured": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "confirmationRequired": { "const": 4, "type": "number" },
                      "confirmationWindow": { "const": 6, "type": "number" },
                      "extremeResidualMultiple": {
                        "const": 4,
                        "type": "number"
                      },
                      "name": { "const": "low", "type": "string" },
                      "recoveryConfirmationObservations": {
                        "const": 4,
                        "type": "number"
                      },
                      "regimeChangeObservations": {
                        "const": 96,
                        "type": "number"
                      }
                    },
                    "required": [
                      "configured",
                      "confirmationRequired",
                      "confirmationWindow",
                      "extremeResidualMultiple",
                      "name",
                      "recoveryConfirmationObservations",
                      "regimeChangeObservations"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "configured": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "confirmationRequired": { "const": 3, "type": "number" },
                      "confirmationWindow": { "const": 5, "type": "number" },
                      "extremeResidualMultiple": {
                        "const": 3,
                        "type": "number"
                      },
                      "name": { "const": "medium", "type": "string" },
                      "recoveryConfirmationObservations": {
                        "const": 3,
                        "type": "number"
                      },
                      "regimeChangeObservations": {
                        "const": 48,
                        "type": "number"
                      }
                    },
                    "required": [
                      "configured",
                      "confirmationRequired",
                      "confirmationWindow",
                      "extremeResidualMultiple",
                      "name",
                      "recoveryConfirmationObservations",
                      "regimeChangeObservations"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "configured": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "confirmationRequired": { "const": 2, "type": "number" },
                      "confirmationWindow": { "const": 4, "type": "number" },
                      "extremeResidualMultiple": {
                        "const": 2.5,
                        "type": "number"
                      },
                      "name": { "const": "high", "type": "string" },
                      "recoveryConfirmationObservations": {
                        "const": 3,
                        "type": "number"
                      },
                      "regimeChangeObservations": {
                        "const": 24,
                        "type": "number"
                      }
                    },
                    "required": [
                      "configured",
                      "confirmationRequired",
                      "confirmationWindow",
                      "extremeResidualMultiple",
                      "name",
                      "recoveryConfirmationObservations",
                      "regimeChangeObservations"
                    ],
                    "type": "object"
                  }
                ]
              },
              "recovery": {
                "additionalProperties": false,
                "properties": {
                  "confirmedObservations": {
                    "maximum": 10,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "requiredObservations": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": ["confirmedObservations", "requiredObservations"],
                "type": "object"
              },
              "regimeChange": {
                "additionalProperties": false,
                "properties": {
                  "measurementKeys": {
                    "items": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "mode": { "enum": ["manual", "automatic"], "type": "string" },
                  "requiredObservations": {
                    "maximum": 1000000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "state": {
                    "enum": ["none", "watching", "available", "applied"],
                    "type": "string"
                  },
                  "sustainedObservations": {
                    "maximum": 1000000,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "measurementKeys",
                  "mode",
                  "requiredObservations",
                  "state",
                  "sustainedObservations"
                ],
                "type": "object"
              },
              "severity": {
                "enum": ["info", "warning", "critical"],
                "type": "string"
              },
              "suppression": {
                "enum": [
                  "detector_unconfirmed",
                  "detector_warming",
                  "detector_shadow_mode",
                  "open_incident"
                ],
                "type": "string"
              },
              "triggers": {
                "items": {
                  "enum": [
                    "explicit_rule",
                    "extreme_deviation",
                    "moderate_confirmation",
                    "persistent_shift"
                  ],
                  "type": "string"
                },
                "maxItems": 4,
                "type": "array"
              }
            },
            "required": [
              "configurationVersion",
              "confirmation",
              "contributions",
              "engineVersion",
              "explanation",
              "notifiable",
              "outcome",
              "profile",
              "recovery",
              "regimeChange",
              "severity",
              "triggers"
            ],
            "type": "object"
          },
          "normalizedMeasurements": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "definition": {
                  "additionalProperties": false,
                  "properties": {
                    "disabledRules": {
                      "items": {
                        "enum": [
                          "minimum",
                          "maximum",
                          "zero",
                          "nonzero",
                          "absolute_delta",
                          "percentage_delta",
                          "ratio_minimum",
                          "ratio_maximum"
                        ],
                        "type": "string"
                      },
                      "maxItems": 8,
                      "type": "array"
                    },
                    "maximum": { "type": "number" },
                    "maximumAbsoluteDelta": { "minimum": 0, "type": "number" },
                    "maximumPercentageDelta": {
                      "minimum": 0,
                      "type": "number"
                    },
                    "metricType": {
                      "default": "gauge",
                      "enum": [
                        "gauge",
                        "count",
                        "rate",
                        "duration",
                        "counter",
                        "size"
                      ],
                      "type": "string"
                    },
                    "minimum": { "type": "number" },
                    "missingPolicy": {
                      "default": "skip",
                      "enum": ["skip", "zero", "reject"],
                      "type": "string"
                    },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    },
                    "ratio": {
                      "additionalProperties": false,
                      "properties": {
                        "denominator": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maximum": { "type": "number" },
                        "minimum": { "type": "number" }
                      },
                      "required": ["denominator"],
                      "type": "object"
                    },
                    "ruleAction": {
                      "additionalProperties": false,
                      "properties": {
                        "mode": {
                          "enum": ["inactive", "active"],
                          "type": "string"
                        },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["mode", "version"],
                      "type": "object"
                    },
                    "rulePolicy": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "consecutiveObservations": {
                              "default": 1,
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "severity": {
                              "default": "critical",
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "sustainedConsequence": {
                              "default": "critical",
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "sustainedCriterion": {
                              "default": {
                                "kind": "observations",
                                "observations": 1
                              },
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "observations",
                                      "type": "string"
                                    },
                                    "observations": {
                                      "maximum": 10,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "observations"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "elapsed_time",
                                      "type": "string"
                                    },
                                    "seconds": {
                                      "maximum": 604800,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "seconds"],
                                  "type": "object"
                                }
                              ]
                            },
                            "transientConsequence": {
                              "default": "none",
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["version"],
                          "type": "object"
                        }
                      ]
                    },
                    "sensitivity": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    },
                    "transform": {
                      "default": "none",
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "zeroExpectation": {
                      "enum": ["zero", "nonzero"],
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "definitionVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "key": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "normalizationVersion": { "const": 1, "type": "number" },
                "normalizedValue": { "type": "number" },
                "originalValue": { "type": "number" },
                "previousOriginalValue": { "type": "number" },
                "status": {
                  "enum": [
                    "value",
                    "counter_baseline",
                    "counter_reset",
                    "missing_skipped",
                    "missing_zero"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "definition",
                "definitionVersion",
                "key",
                "normalizationVersion",
                "status"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "observedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "omittedDetail": {
            "items": {
              "anyOf": [
                {
                  "enum": [
                    "normalized_measurements",
                    "adaptive_baseline",
                    "explicit_rule",
                    "incident_policy",
                    "persistent_shift",
                    "seasonal_baseline"
                  ],
                  "type": "string"
                },
                {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                }
              ]
            },
            "maxItems": 16,
            "minItems": 1,
            "type": "array"
          },
          "payload": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "empty", "type": "string" }
                },
                "required": ["kind"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "number", "type": "string" },
                  "value": { "type": "number" }
                },
                "required": ["kind", "value"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": { "const": "measurements", "type": "string" },
                  "values": {
                    "additionalProperties": {
                      "anyOf": [
                        { "type": "number" },
                        {
                          "anyOf": [
                            { "type": "boolean" },
                            { "type": "null" },
                            {
                              "maxLength": 256,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            }
                          ]
                        }
                      ]
                    },
                    "propertyNames": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "type": "object"
                  }
                },
                "required": ["kind", "values"],
                "type": "object"
              }
            ]
          },
          "provenance": {
            "anyOf": [
              { "enum": ["live", "historical_import"], "type": "string" },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "requestId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "ruleEvaluations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "breach": {
                  "additionalProperties": false,
                  "properties": {
                    "consequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    },
                    "justBecameSustained": { "type": "boolean" },
                    "phase": {
                      "enum": ["clear", "transient", "sustained"],
                      "type": "string"
                    },
                    "progress": {
                      "additionalProperties": false,
                      "properties": {
                        "elapsedSeconds": {
                          "maximum": 604800,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "qualifyingObservations": {
                          "maximum": 10,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "remaining": {
                          "maximum": 604800,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "startedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "elapsedSeconds",
                        "qualifyingObservations",
                        "remaining"
                      ],
                      "type": "object"
                    },
                    "sustainedConsequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    },
                    "sustainedCriterion": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "kind": {
                              "const": "observations",
                              "type": "string"
                            },
                            "observations": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": ["kind", "observations"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "kind": {
                              "const": "elapsed_time",
                              "type": "string"
                            },
                            "seconds": {
                              "maximum": 604800,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": ["kind", "seconds"],
                          "type": "object"
                        }
                      ]
                    },
                    "transientConsequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    }
                  },
                  "required": [
                    "consequence",
                    "justBecameSustained",
                    "phase",
                    "progress",
                    "sustainedConsequence",
                    "sustainedCriterion",
                    "transientConsequence"
                  ],
                  "type": "object"
                },
                "comparison": {
                  "enum": ["at_least", "at_most", "equal", "not_equal"],
                  "type": "string"
                },
                "computedValue": { "type": "number" },
                "configurationVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "confirmation": {
                  "additionalProperties": false,
                  "properties": {
                    "confirmed": { "type": "boolean" },
                    "consecutiveViolations": {
                      "maximum": 10,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "required": {
                      "maximum": 10,
                      "minimum": 1,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "confirmed",
                    "consecutiveViolations",
                    "required"
                  ],
                  "type": "object"
                },
                "denominatorMeasurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "engineVersion": {
                  "anyOf": [
                    { "const": 1, "type": "number" },
                    { "const": 2, "type": "number" }
                  ]
                },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "minimum",
                    "maximum",
                    "zero",
                    "nonzero",
                    "absolute_delta",
                    "percentage_delta",
                    "ratio_minimum",
                    "ratio_maximum"
                  ],
                  "type": "string"
                },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "normalizationStatus": {
                  "enum": [
                    "value",
                    "counter_baseline",
                    "counter_reset",
                    "missing_skipped",
                    "missing_zero"
                  ],
                  "type": "string"
                },
                "notEvaluatedReason": {
                  "enum": [
                    "measurement_missing",
                    "counter_baseline",
                    "counter_reset",
                    "previous_value_missing",
                    "previous_value_zero",
                    "ratio_denominator_missing",
                    "ratio_denominator_zero",
                    "numeric_overflow"
                  ],
                  "type": "string"
                },
                "observedValue": { "type": "number" },
                "policyInput": {
                  "additionalProperties": false,
                  "properties": {
                    "actionable": { "type": "boolean" },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    }
                  },
                  "required": ["actionable", "mode", "severity"],
                  "type": "object"
                },
                "referenceValue": { "type": "number" },
                "ruleId": {
                  "maxLength": 160,
                  "minLength": 3,
                  "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                  "type": "string"
                },
                "severity": {
                  "enum": ["info", "warning", "critical"],
                  "type": "string"
                },
                "status": {
                  "enum": ["passed", "violated", "not_evaluated"],
                  "type": "string"
                },
                "threshold": { "type": "number" },
                "transform": { "enum": ["none", "log1p"], "type": "string" }
              },
              "required": [
                "comparison",
                "configurationVersion",
                "confirmation",
                "engineVersion",
                "explanation",
                "kind",
                "measurementKey",
                "normalizationStatus",
                "policyInput",
                "ruleId",
                "severity",
                "status",
                "threshold",
                "transform"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "seasonalEvaluations": {
            "items": {
              "oneOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyBucketSamples": {
                      "maximum": 24,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "daily", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    },
                    "engineVersion": { "const": 1, "type": "number" },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "localBucket": {
                      "additionalProperties": false,
                      "properties": {
                        "dailyHour": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "offsetMinutes": {
                          "maximum": 1440,
                          "minimum": -1440,
                          "type": "integer"
                        },
                        "weeklyHour": {
                          "maximum": 167,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": ["dailyHour", "offsetMinutes", "weeklyHour"],
                      "type": "object"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "neighborToleranceHours": { "const": 1, "type": "number" },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "numeric_overflow",
                        "heartbeat_expectation_disabled"
                      ],
                      "type": "string"
                    },
                    "originalExpectedValue": { "type": "number" },
                    "originalLowerBound": { "type": "number" },
                    "originalObservedValue": { "type": "number" },
                    "originalScaleBasis": {
                      "enum": ["measurement", "counter_delta"],
                      "type": "string"
                    },
                    "originalUpperBound": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode"],
                      "type": "object"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "selectedModel": { "const": "global", "type": "string" },
                    "selectionReason": {
                      "enum": [
                        "global_baseline_warming",
                        "insufficient_improvement",
                        "not_evaluated",
                        "seasonality_warming",
                        "sparse_bucket"
                      ],
                      "type": "string"
                    },
                    "sensitivity": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.01,
                              "type": "number"
                            },
                            "name": { "const": "low", "type": "string" },
                            "residualQuantile": {
                              "const": 0.99,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.03,
                              "type": "number"
                            },
                            "name": { "const": "medium", "type": "string" },
                            "residualQuantile": {
                              "const": 0.97,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.05,
                              "type": "number"
                            },
                            "name": { "const": "high", "type": "string" },
                            "residualQuantile": {
                              "const": 0.95,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "warming",
                        "normal",
                        "suspected_anomaly",
                        "not_evaluated"
                      ],
                      "type": "string"
                    },
                    "threshold": { "exclusiveMinimum": 0, "type": "number" },
                    "timeZone": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "transformedExpectedValue": { "type": "number" },
                    "transformedLowerBound": { "type": "number" },
                    "transformedMad": { "minimum": 0, "type": "number" },
                    "transformedObservedValue": { "type": "number" },
                    "transformedScale": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "transformedUpperBound": { "type": "number" },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "updateDisposition": {
                      "enum": ["full", "skipped"],
                      "type": "string"
                    },
                    "weeklyBucketSamples": {
                      "maximum": 12,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "weeklyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "weekly", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "configurationVersion",
                    "dailyBucketSamples",
                    "dailyReadiness",
                    "engineVersion",
                    "explanation",
                    "localBucket",
                    "measurementKey",
                    "neighborToleranceHours",
                    "normalizationStatus",
                    "normalizationVersion",
                    "originalScaleBasis",
                    "policyInput",
                    "sensitivity",
                    "status",
                    "timeZone",
                    "transform",
                    "updateDisposition",
                    "weeklyBucketSamples",
                    "weeklyReadiness",
                    "selectedModel",
                    "selectionReason"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyBucketSamples": {
                      "maximum": 24,
                      "minimum": 3,
                      "type": "integer"
                    },
                    "dailyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "daily", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "candidateWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "cyclesObserved": { "const": 7, "type": "number" },
                            "globalWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "holdoutSamples": {
                              "maximum": 32,
                              "minimum": 4,
                              "type": "integer"
                            },
                            "relativeImprovement": {
                              "maximum": 1,
                              "minimum": 0.1,
                              "type": "number"
                            },
                            "state": { "const": "validated", "type": "string" }
                          },
                          "required": [
                            "candidateWinsorizedMeanAbsoluteError",
                            "cyclesObserved",
                            "globalWinsorizedMeanAbsoluteError",
                            "holdoutSamples",
                            "relativeImprovement",
                            "state"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "engineVersion": { "const": 1, "type": "number" },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "localBucket": {
                      "additionalProperties": false,
                      "properties": {
                        "dailyHour": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "offsetMinutes": {
                          "maximum": 1440,
                          "minimum": -1440,
                          "type": "integer"
                        },
                        "weeklyHour": {
                          "maximum": 167,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": ["dailyHour", "offsetMinutes", "weeklyHour"],
                      "type": "object"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "neighborToleranceHours": { "const": 1, "type": "number" },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "numeric_overflow",
                        "heartbeat_expectation_disabled"
                      ],
                      "type": "string"
                    },
                    "originalExpectedValue": { "type": "number" },
                    "originalLowerBound": { "type": "number" },
                    "originalObservedValue": { "type": "number" },
                    "originalScaleBasis": {
                      "enum": ["measurement", "counter_delta"],
                      "type": "string"
                    },
                    "originalUpperBound": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode"],
                      "type": "object"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "selectedModel": { "const": "daily", "type": "string" },
                    "selectionReason": {
                      "const": "daily_improved",
                      "type": "string"
                    },
                    "sensitivity": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.01,
                              "type": "number"
                            },
                            "name": { "const": "low", "type": "string" },
                            "residualQuantile": {
                              "const": 0.99,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.03,
                              "type": "number"
                            },
                            "name": { "const": "medium", "type": "string" },
                            "residualQuantile": {
                              "const": 0.97,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.05,
                              "type": "number"
                            },
                            "name": { "const": "high", "type": "string" },
                            "residualQuantile": {
                              "const": 0.95,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "warming",
                        "normal",
                        "suspected_anomaly",
                        "not_evaluated"
                      ],
                      "type": "string"
                    },
                    "threshold": { "exclusiveMinimum": 0, "type": "number" },
                    "timeZone": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "transformedExpectedValue": { "type": "number" },
                    "transformedLowerBound": { "type": "number" },
                    "transformedMad": { "minimum": 0, "type": "number" },
                    "transformedObservedValue": { "type": "number" },
                    "transformedScale": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "transformedUpperBound": { "type": "number" },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "updateDisposition": {
                      "enum": ["full", "skipped"],
                      "type": "string"
                    },
                    "weeklyBucketSamples": {
                      "maximum": 12,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "weeklyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "weekly", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "configurationVersion",
                    "dailyBucketSamples",
                    "dailyReadiness",
                    "engineVersion",
                    "explanation",
                    "localBucket",
                    "measurementKey",
                    "neighborToleranceHours",
                    "normalizationStatus",
                    "normalizationVersion",
                    "originalScaleBasis",
                    "policyInput",
                    "sensitivity",
                    "status",
                    "timeZone",
                    "transform",
                    "updateDisposition",
                    "weeklyBucketSamples",
                    "weeklyReadiness",
                    "selectedModel",
                    "selectionReason"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyBucketSamples": {
                      "maximum": 24,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "daily", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    },
                    "engineVersion": { "const": 1, "type": "number" },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "localBucket": {
                      "additionalProperties": false,
                      "properties": {
                        "dailyHour": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "offsetMinutes": {
                          "maximum": 1440,
                          "minimum": -1440,
                          "type": "integer"
                        },
                        "weeklyHour": {
                          "maximum": 167,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": ["dailyHour", "offsetMinutes", "weeklyHour"],
                      "type": "object"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "neighborToleranceHours": { "const": 1, "type": "number" },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "numeric_overflow",
                        "heartbeat_expectation_disabled"
                      ],
                      "type": "string"
                    },
                    "originalExpectedValue": { "type": "number" },
                    "originalLowerBound": { "type": "number" },
                    "originalObservedValue": { "type": "number" },
                    "originalScaleBasis": {
                      "enum": ["measurement", "counter_delta"],
                      "type": "string"
                    },
                    "originalUpperBound": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode"],
                      "type": "object"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "selectedModel": { "const": "weekly", "type": "string" },
                    "selectionReason": {
                      "const": "weekly_improved",
                      "type": "string"
                    },
                    "sensitivity": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.01,
                              "type": "number"
                            },
                            "name": { "const": "low", "type": "string" },
                            "residualQuantile": {
                              "const": 0.99,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.03,
                              "type": "number"
                            },
                            "name": { "const": "medium", "type": "string" },
                            "residualQuantile": {
                              "const": 0.97,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.05,
                              "type": "number"
                            },
                            "name": { "const": "high", "type": "string" },
                            "residualQuantile": {
                              "const": 0.95,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "warming",
                        "normal",
                        "suspected_anomaly",
                        "not_evaluated"
                      ],
                      "type": "string"
                    },
                    "threshold": { "exclusiveMinimum": 0, "type": "number" },
                    "timeZone": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "transformedExpectedValue": { "type": "number" },
                    "transformedLowerBound": { "type": "number" },
                    "transformedMad": { "minimum": 0, "type": "number" },
                    "transformedObservedValue": { "type": "number" },
                    "transformedScale": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "transformedUpperBound": { "type": "number" },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "updateDisposition": {
                      "enum": ["full", "skipped"],
                      "type": "string"
                    },
                    "weeklyBucketSamples": {
                      "maximum": 12,
                      "minimum": 3,
                      "type": "integer"
                    },
                    "weeklyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "weekly", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "candidateWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "cyclesObserved": { "const": 4, "type": "number" },
                            "globalWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "holdoutSamples": {
                              "maximum": 32,
                              "minimum": 4,
                              "type": "integer"
                            },
                            "relativeImprovement": {
                              "maximum": 1,
                              "minimum": 0.1,
                              "type": "number"
                            },
                            "state": { "const": "validated", "type": "string" }
                          },
                          "required": [
                            "candidateWinsorizedMeanAbsoluteError",
                            "cyclesObserved",
                            "globalWinsorizedMeanAbsoluteError",
                            "holdoutSamples",
                            "relativeImprovement",
                            "state"
                          ],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "configurationVersion",
                    "dailyBucketSamples",
                    "dailyReadiness",
                    "engineVersion",
                    "explanation",
                    "localBucket",
                    "measurementKey",
                    "neighborToleranceHours",
                    "normalizationStatus",
                    "normalizationVersion",
                    "originalScaleBasis",
                    "policyInput",
                    "sensitivity",
                    "status",
                    "timeZone",
                    "transform",
                    "updateDisposition",
                    "weeklyBucketSamples",
                    "weeklyReadiness",
                    "selectedModel",
                    "selectionReason"
                  ],
                  "type": "object"
                }
              ]
            },
            "maxItems": 16,
            "type": "array"
          },
          "sequence": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "shiftEvaluations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "accumulatedMagnitude": {
                  "maximum": 64,
                  "minimum": 0,
                  "type": "number"
                },
                "baselineScale": { "exclusiveMinimum": 0, "type": "number" },
                "boundedResidualContribution": {
                  "maximum": 3,
                  "minimum": -3,
                  "type": "number"
                },
                "configurationVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "direction": {
                  "enum": ["positive", "negative"],
                  "type": "string"
                },
                "durationSamples": {
                  "maximum": 1000000,
                  "minimum": 0,
                  "type": "integer"
                },
                "engineVersion": { "const": 3, "type": "number" },
                "ewma": { "maximum": 3, "minimum": -3, "type": "number" },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "negativeCusum": {
                  "maximum": 64,
                  "minimum": 0,
                  "type": "number"
                },
                "normalizationVersion": { "const": 1, "type": "number" },
                "normalizedResidual": { "type": "number" },
                "notEvaluatedReason": {
                  "enum": [
                    "measurement_missing",
                    "counter_baseline",
                    "counter_reset",
                    "numeric_overflow",
                    "heartbeat_expectation_disabled"
                  ],
                  "type": "string"
                },
                "pointAnomaly": { "type": "boolean" },
                "policyInput": {
                  "additionalProperties": false,
                  "properties": {
                    "actionable": { "type": "boolean" },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    }
                  },
                  "required": ["actionable", "mode"],
                  "type": "object"
                },
                "positiveCusum": {
                  "maximum": 64,
                  "minimum": 0,
                  "type": "number"
                },
                "preset": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "cusumAllowance": { "const": 0.75, "type": "number" },
                        "cusumThreshold": { "const": 12, "type": "number" },
                        "ewmaAlpha": { "const": 0.1, "type": "number" },
                        "ewmaRecoveryThreshold": {
                          "const": 0.3,
                          "type": "number"
                        },
                        "ewmaThreshold": { "const": 0.9, "type": "number" },
                        "maximumGapIntervals": { "const": 4, "type": "number" },
                        "minimumDurationSamples": {
                          "const": 4,
                          "type": "number"
                        },
                        "name": { "const": "low", "type": "string" },
                        "recoveryConfirmationSamples": {
                          "const": 4,
                          "type": "number"
                        },
                        "residualClip": { "const": 3, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "maximumGapIntervals",
                        "residualClip",
                        "cusumAllowance",
                        "cusumThreshold",
                        "ewmaAlpha",
                        "ewmaRecoveryThreshold",
                        "ewmaThreshold",
                        "minimumDurationSamples",
                        "name",
                        "recoveryConfirmationSamples"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "cusumAllowance": { "const": 0.5, "type": "number" },
                        "cusumThreshold": { "const": 8, "type": "number" },
                        "ewmaAlpha": { "const": 0.2, "type": "number" },
                        "ewmaRecoveryThreshold": {
                          "const": 0.25,
                          "type": "number"
                        },
                        "ewmaThreshold": { "const": 0.65, "type": "number" },
                        "maximumGapIntervals": { "const": 4, "type": "number" },
                        "minimumDurationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "name": { "const": "medium", "type": "string" },
                        "recoveryConfirmationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "residualClip": { "const": 3, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "maximumGapIntervals",
                        "residualClip",
                        "cusumAllowance",
                        "cusumThreshold",
                        "ewmaAlpha",
                        "ewmaRecoveryThreshold",
                        "ewmaThreshold",
                        "minimumDurationSamples",
                        "name",
                        "recoveryConfirmationSamples"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "cusumAllowance": { "const": 0.35, "type": "number" },
                        "cusumThreshold": { "const": 6, "type": "number" },
                        "ewmaAlpha": { "const": 0.3, "type": "number" },
                        "ewmaRecoveryThreshold": {
                          "const": 0.2,
                          "type": "number"
                        },
                        "ewmaThreshold": { "const": 0.45, "type": "number" },
                        "maximumGapIntervals": { "const": 4, "type": "number" },
                        "minimumDurationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "name": { "const": "high", "type": "string" },
                        "recoveryConfirmationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "residualClip": { "const": 3, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "maximumGapIntervals",
                        "residualClip",
                        "cusumAllowance",
                        "cusumThreshold",
                        "ewmaAlpha",
                        "ewmaRecoveryThreshold",
                        "ewmaThreshold",
                        "minimumDurationSamples",
                        "name",
                        "recoveryConfirmationSamples"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "resetReason": {
                  "enum": [
                    "accepted_regime_change",
                    "baseline_model_changed",
                    "configuration_changed",
                    "counter_baseline",
                    "counter_reset",
                    "lifecycle_suspended",
                    "long_gap",
                    "maintenance"
                  ],
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "warming",
                    "normal",
                    "accumulating",
                    "persistent_shift",
                    "recovering",
                    "reset",
                    "not_evaluated"
                  ],
                  "type": "string"
                },
                "wanderCalibration": {
                  "additionalProperties": false,
                  "properties": {
                    "cusumAllowance": {
                      "exclusiveMinimum": 0,
                      "maximum": 64,
                      "type": "number"
                    },
                    "cusumThreshold": {
                      "exclusiveMinimum": 0,
                      "maximum": 64,
                      "type": "number"
                    },
                    "holdoutSamples": {
                      "maximum": 1000000,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "minimumInflation": { "const": 1.2, "type": "number" },
                    "requiredHoldoutSamples": { "const": 32, "type": "number" },
                    "runningMeanInflation": {
                      "maximum": 4.358898943540674,
                      "minimum": 1,
                      "type": "number"
                    },
                    "state": {
                      "enum": ["warming_holdout", "independent", "calibrated"],
                      "type": "string"
                    }
                  },
                  "required": [
                    "cusumAllowance",
                    "cusumThreshold",
                    "holdoutSamples",
                    "minimumInflation",
                    "requiredHoldoutSamples",
                    "state"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "configurationVersion",
                "engineVersion",
                "explanation",
                "measurementKey",
                "normalizationVersion",
                "pointAnomaly",
                "policyInput",
                "preset",
                "status"
              ],
              "type": "object"
            },
            "maxItems": 16,
            "type": "array"
          },
          "status": {
            "anyOf": [
              {
                "enum": ["on_time", "late", "not_expected", "learning"],
                "type": "string"
              },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "unavailableEvidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "evidence": {
                  "enum": [
                    "adaptive_baseline",
                    "explicit_rule",
                    "incident_policy",
                    "persistent_shift",
                    "seasonal_baseline"
                  ],
                  "type": "string"
                },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "reason": {
                  "enum": ["engine_version", "unreadable"],
                  "type": "string"
                },
                "recordedEngineVersion": {
                  "maximum": 999,
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": ["evidence", "explanation", "reason"],
              "type": "object"
            },
            "maxItems": 5,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "acceptedAt",
          "configurationVersion",
          "id",
          "payload",
          "requestId",
          "sequence",
          "status"
        ],
        "title": "MonitorObservation",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorObservationSchema",
        "x-signalsitter-source-only-refinements": [
          "Evidence reported as unavailable is never also returned on the same observation.",
          "Unavailable-evidence entries name each stored record at most once, carry this contract's own explanation for their reason, and state a recorded engine version exactly when the engine version is the reason and never the version this build runs.",
          "Normalized observation outcomes consistently identify observed, normalized, missing, counter-baseline, and counter-reset values.",
          "Explicit numeric-rule evidence consistently identifies evaluated values, skipped reasons, breach phase, count-or-time progress, effective consequence, ratio denominators, and actionable incident-policy inputs."
        ]
      },
      "MonitorObservationPage": {
        "properties": {
          "coverage": {
            "additionalProperties": false,
            "properties": {
              "availableFrom": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "availableThrough": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "truncated": { "const": true, "type": "boolean" }
            },
            "type": "object"
          },
          "items": {
            "items": {
              "anyOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "acceptedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "baselineEvaluations": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "configurationVersion": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "engineVersion": { "const": 2, "type": "number" },
                          "explanation": {
                            "maxLength": 512,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "measurementKey": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "normalizationStatus": {
                            "enum": [
                              "value",
                              "counter_baseline",
                              "counter_reset",
                              "missing_skipped",
                              "missing_zero"
                            ],
                            "type": "string"
                          },
                          "normalizationVersion": {
                            "const": 1,
                            "type": "number"
                          },
                          "notActionableReason": {
                            "enum": ["baseline_below_minimum_level"],
                            "type": "string"
                          },
                          "notEvaluatedReason": {
                            "enum": [
                              "measurement_missing",
                              "counter_baseline",
                              "counter_reset",
                              "numeric_overflow",
                              "heartbeat_expectation_disabled"
                            ],
                            "type": "string"
                          },
                          "originalExpectedValue": { "type": "number" },
                          "originalLowerBound": { "type": "number" },
                          "originalObservedValue": { "type": "number" },
                          "originalScaleBasis": {
                            "enum": ["measurement", "counter_delta"],
                            "type": "string"
                          },
                          "originalUpperBound": { "type": "number" },
                          "policyInput": {
                            "additionalProperties": false,
                            "properties": {
                              "actionable": { "type": "boolean" },
                              "mode": {
                                "enum": ["heartbeat", "shadow", "active"],
                                "type": "string"
                              }
                            },
                            "required": ["actionable", "mode"],
                            "type": "object"
                          },
                          "readiness": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "baselineSamples": {
                                    "maximum": 15,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "requiredBaselineSamples": {
                                    "const": 16,
                                    "type": "number"
                                  },
                                  "requiredResidualSamples": {
                                    "const": 32,
                                    "type": "number"
                                  },
                                  "residualSamples": {
                                    "const": 0,
                                    "type": "number"
                                  },
                                  "state": {
                                    "const": "warming_baseline",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "requiredBaselineSamples",
                                  "requiredResidualSamples",
                                  "baselineSamples",
                                  "residualSamples",
                                  "state"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "baselineSamples": {
                                    "maximum": 128,
                                    "minimum": 16,
                                    "type": "integer"
                                  },
                                  "requiredBaselineSamples": {
                                    "const": 16,
                                    "type": "number"
                                  },
                                  "requiredResidualSamples": {
                                    "const": 32,
                                    "type": "number"
                                  },
                                  "residualSamples": {
                                    "maximum": 31,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "state": {
                                    "const": "warming_residuals",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "requiredBaselineSamples",
                                  "requiredResidualSamples",
                                  "baselineSamples",
                                  "residualSamples",
                                  "state"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "baselineSamples": {
                                    "maximum": 128,
                                    "minimum": 16,
                                    "type": "integer"
                                  },
                                  "requiredBaselineSamples": {
                                    "const": 16,
                                    "type": "number"
                                  },
                                  "requiredResidualSamples": {
                                    "const": 32,
                                    "type": "number"
                                  },
                                  "residualSamples": {
                                    "maximum": 128,
                                    "minimum": 32,
                                    "type": "integer"
                                  },
                                  "state": {
                                    "const": "ready",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "requiredBaselineSamples",
                                  "requiredResidualSamples",
                                  "baselineSamples",
                                  "residualSamples",
                                  "state"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "residualModel": {
                            "enum": ["robust_z", "count"],
                            "type": "string"
                          },
                          "residualModelReadiness": {
                            "additionalProperties": false,
                            "properties": {
                              "candidate": {
                                "enum": ["robust_z", "count"],
                                "type": "string"
                              },
                              "holdoutSamples": {
                                "maximum": 32,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "meanLogLikelihoodGain": { "type": "number" },
                              "minimumMeanLogLikelihoodGain": {
                                "const": 0.1,
                                "type": "number"
                              },
                              "requiredHoldoutSamples": {
                                "const": 32,
                                "type": "number"
                              },
                              "state": {
                                "enum": [
                                  "ineligible",
                                  "warming_holdout",
                                  "insufficient_improvement",
                                  "validated"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "candidate",
                              "holdoutSamples",
                              "minimumMeanLogLikelihoodGain",
                              "requiredHoldoutSamples",
                              "state"
                            ],
                            "type": "object"
                          },
                          "residualModelSelectionReason": {
                            "enum": [
                              "count_improved",
                              "distribution_ineligible",
                              "holdout_warming",
                              "insufficient_improvement"
                            ],
                            "type": "string"
                          },
                          "residualScore": { "minimum": 0, "type": "number" },
                          "sensitivity": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "expectedAlertRate": {
                                    "const": 0.01,
                                    "type": "number"
                                  },
                                  "name": { "const": "low", "type": "string" },
                                  "residualQuantile": {
                                    "const": 0.99,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "expectedAlertRate",
                                  "name",
                                  "residualQuantile"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "expectedAlertRate": {
                                    "const": 0.03,
                                    "type": "number"
                                  },
                                  "name": {
                                    "const": "medium",
                                    "type": "string"
                                  },
                                  "residualQuantile": {
                                    "const": 0.97,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "expectedAlertRate",
                                  "name",
                                  "residualQuantile"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "expectedAlertRate": {
                                    "const": 0.05,
                                    "type": "number"
                                  },
                                  "name": { "const": "high", "type": "string" },
                                  "residualQuantile": {
                                    "const": 0.95,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "expectedAlertRate",
                                  "name",
                                  "residualQuantile"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "status": {
                            "enum": [
                              "warming",
                              "normal",
                              "suspected_anomaly",
                              "not_evaluated"
                            ],
                            "type": "string"
                          },
                          "threshold": {
                            "exclusiveMinimum": 0,
                            "type": "number"
                          },
                          "transform": {
                            "enum": ["none", "log1p"],
                            "type": "string"
                          },
                          "transformedExpectedValue": { "type": "number" },
                          "transformedLowerBound": { "type": "number" },
                          "transformedMad": { "minimum": 0, "type": "number" },
                          "transformedObservedValue": { "type": "number" },
                          "transformedScale": {
                            "exclusiveMinimum": 0,
                            "type": "number"
                          },
                          "transformedUpperBound": { "type": "number" },
                          "unit": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "updateDisposition": {
                            "enum": ["full", "winsorized", "skipped"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "configurationVersion",
                          "engineVersion",
                          "explanation",
                          "measurementKey",
                          "normalizationStatus",
                          "normalizationVersion",
                          "originalScaleBasis",
                          "policyInput",
                          "readiness",
                          "residualModel",
                          "residualModelReadiness",
                          "residualModelSelectionReason",
                          "sensitivity",
                          "status",
                          "transform",
                          "updateDisposition"
                        ],
                        "type": "object"
                      },
                      "maxItems": 16,
                      "type": "array"
                    },
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "id": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                      "type": "string"
                    },
                    "incidentPolicyDecision": {
                      "additionalProperties": false,
                      "properties": {
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "confirmation": {
                          "additionalProperties": false,
                          "properties": {
                            "confirmed": { "type": "boolean" },
                            "observedInWindow": {
                              "maximum": 6,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "required": {
                              "maximum": 6,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "window": {
                              "maximum": 6,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "confirmed",
                            "observedInWindow",
                            "required",
                            "window"
                          ],
                          "type": "object"
                        },
                        "contributions": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "breach": {
                                "additionalProperties": false,
                                "properties": {
                                  "consequence": {
                                    "enum": [
                                      "none",
                                      "info",
                                      "warning",
                                      "critical"
                                    ],
                                    "type": "string"
                                  },
                                  "justBecameSustained": { "type": "boolean" },
                                  "phase": {
                                    "enum": ["clear", "transient", "sustained"],
                                    "type": "string"
                                  },
                                  "progress": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "elapsedSeconds": {
                                        "maximum": 604800,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "qualifyingObservations": {
                                        "maximum": 10,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "remaining": {
                                        "maximum": 604800,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "startedAt": {
                                        "format": "date-time",
                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "elapsedSeconds",
                                      "qualifyingObservations",
                                      "remaining"
                                    ],
                                    "type": "object"
                                  },
                                  "sustainedConsequence": {
                                    "enum": [
                                      "none",
                                      "info",
                                      "warning",
                                      "critical"
                                    ],
                                    "type": "string"
                                  },
                                  "sustainedCriterion": {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "kind": {
                                            "const": "observations",
                                            "type": "string"
                                          },
                                          "observations": {
                                            "maximum": 10,
                                            "minimum": 1,
                                            "type": "integer"
                                          }
                                        },
                                        "required": ["kind", "observations"],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "kind": {
                                            "const": "elapsed_time",
                                            "type": "string"
                                          },
                                          "seconds": {
                                            "maximum": 604800,
                                            "minimum": 1,
                                            "type": "integer"
                                          }
                                        },
                                        "required": ["kind", "seconds"],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  "transientConsequence": {
                                    "enum": [
                                      "none",
                                      "info",
                                      "warning",
                                      "critical"
                                    ],
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "consequence",
                                  "justBecameSustained",
                                  "phase",
                                  "progress",
                                  "sustainedConsequence",
                                  "sustainedCriterion",
                                  "transientConsequence"
                                ],
                                "type": "object"
                              },
                              "detector": {
                                "enum": [
                                  "explicit_rule",
                                  "adaptive_baseline",
                                  "seasonal_baseline",
                                  "persistent_shift"
                                ],
                                "type": "string"
                              },
                              "durationSamples": {
                                "maximum": 1000000,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "measurementKey": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "residualScore": {
                                "minimum": 0,
                                "type": "number"
                              },
                              "ruleId": {
                                "maxLength": 160,
                                "minLength": 3,
                                "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                                "type": "string"
                              },
                              "severity": {
                                "enum": ["info", "warning", "critical"],
                                "type": "string"
                              },
                              "trigger": {
                                "enum": [
                                  "explicit_rule",
                                  "extreme_deviation",
                                  "moderate_confirmation",
                                  "persistent_shift"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "detector",
                              "measurementKey",
                              "severity"
                            ],
                            "type": "object"
                          },
                          "maxItems": 80,
                          "type": "array"
                        },
                        "engineVersion": { "const": 1, "type": "number" },
                        "evaluation": {
                          "additionalProperties": false,
                          "properties": {
                            "evaluatedMeasurementKeys": {
                              "items": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "maxItems": 32,
                              "type": "array"
                            },
                            "policyActive": { "type": "boolean" },
                            "publishedMeasurementKeys": {
                              "items": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "maxItems": 32,
                              "type": "array"
                            }
                          },
                          "required": [
                            "evaluatedMeasurementKeys",
                            "policyActive",
                            "publishedMeasurementKeys"
                          ],
                          "type": "object"
                        },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "notifiable": { "type": "boolean" },
                        "outcome": {
                          "enum": [
                            "none",
                            "recorded",
                            "confirming",
                            "incident_opened",
                            "incident_sustained",
                            "recovery_pending",
                            "recovery_confirmed"
                          ],
                          "type": "string"
                        },
                        "profile": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "confirmationRequired": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "confirmationWindow": {
                                  "const": 6,
                                  "type": "number"
                                },
                                "extremeResidualMultiple": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "name": { "const": "low", "type": "string" },
                                "recoveryConfirmationObservations": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "regimeChangeObservations": {
                                  "const": 96,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "confirmationRequired",
                                "confirmationWindow",
                                "extremeResidualMultiple",
                                "name",
                                "recoveryConfirmationObservations",
                                "regimeChangeObservations"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "confirmationRequired": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "confirmationWindow": {
                                  "const": 5,
                                  "type": "number"
                                },
                                "extremeResidualMultiple": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "name": { "const": "medium", "type": "string" },
                                "recoveryConfirmationObservations": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "regimeChangeObservations": {
                                  "const": 48,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "confirmationRequired",
                                "confirmationWindow",
                                "extremeResidualMultiple",
                                "name",
                                "recoveryConfirmationObservations",
                                "regimeChangeObservations"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "confirmationRequired": {
                                  "const": 2,
                                  "type": "number"
                                },
                                "confirmationWindow": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "extremeResidualMultiple": {
                                  "const": 2.5,
                                  "type": "number"
                                },
                                "name": { "const": "high", "type": "string" },
                                "recoveryConfirmationObservations": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "regimeChangeObservations": {
                                  "const": 24,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "confirmationRequired",
                                "confirmationWindow",
                                "extremeResidualMultiple",
                                "name",
                                "recoveryConfirmationObservations",
                                "regimeChangeObservations"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "recovery": {
                          "additionalProperties": false,
                          "properties": {
                            "confirmedObservations": {
                              "maximum": 10,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "requiredObservations": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "confirmedObservations",
                            "requiredObservations"
                          ],
                          "type": "object"
                        },
                        "regimeChange": {
                          "additionalProperties": false,
                          "properties": {
                            "measurementKeys": {
                              "items": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "maxItems": 16,
                              "type": "array"
                            },
                            "mode": {
                              "enum": ["manual", "automatic"],
                              "type": "string"
                            },
                            "requiredObservations": {
                              "maximum": 1000000,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "state": {
                              "enum": [
                                "none",
                                "watching",
                                "available",
                                "applied"
                              ],
                              "type": "string"
                            },
                            "sustainedObservations": {
                              "maximum": 1000000,
                              "minimum": 0,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "measurementKeys",
                            "mode",
                            "requiredObservations",
                            "state",
                            "sustainedObservations"
                          ],
                          "type": "object"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        },
                        "suppression": {
                          "enum": [
                            "detector_unconfirmed",
                            "detector_warming",
                            "detector_shadow_mode",
                            "open_incident"
                          ],
                          "type": "string"
                        },
                        "triggers": {
                          "items": {
                            "enum": [
                              "explicit_rule",
                              "extreme_deviation",
                              "moderate_confirmation",
                              "persistent_shift"
                            ],
                            "type": "string"
                          },
                          "maxItems": 4,
                          "type": "array"
                        }
                      },
                      "required": [
                        "configurationVersion",
                        "confirmation",
                        "contributions",
                        "engineVersion",
                        "explanation",
                        "notifiable",
                        "outcome",
                        "profile",
                        "recovery",
                        "regimeChange",
                        "severity",
                        "triggers"
                      ],
                      "type": "object"
                    },
                    "normalizedMeasurements": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "definition": {
                            "additionalProperties": false,
                            "properties": {
                              "disabledRules": {
                                "items": {
                                  "enum": [
                                    "minimum",
                                    "maximum",
                                    "zero",
                                    "nonzero",
                                    "absolute_delta",
                                    "percentage_delta",
                                    "ratio_minimum",
                                    "ratio_maximum"
                                  ],
                                  "type": "string"
                                },
                                "maxItems": 8,
                                "type": "array"
                              },
                              "maximum": { "type": "number" },
                              "maximumAbsoluteDelta": {
                                "minimum": 0,
                                "type": "number"
                              },
                              "maximumPercentageDelta": {
                                "minimum": 0,
                                "type": "number"
                              },
                              "metricType": {
                                "default": "gauge",
                                "enum": [
                                  "gauge",
                                  "count",
                                  "rate",
                                  "duration",
                                  "counter",
                                  "size"
                                ],
                                "type": "string"
                              },
                              "minimum": { "type": "number" },
                              "missingPolicy": {
                                "default": "skip",
                                "enum": ["skip", "zero", "reject"],
                                "type": "string"
                              },
                              "mode": {
                                "enum": ["heartbeat", "shadow", "active"],
                                "type": "string"
                              },
                              "ratio": {
                                "additionalProperties": false,
                                "properties": {
                                  "denominator": {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  },
                                  "maximum": { "type": "number" },
                                  "minimum": { "type": "number" }
                                },
                                "required": ["denominator"],
                                "type": "object"
                              },
                              "ruleAction": {
                                "additionalProperties": false,
                                "properties": {
                                  "mode": {
                                    "enum": ["inactive", "active"],
                                    "type": "string"
                                  },
                                  "version": { "const": 1, "type": "number" }
                                },
                                "required": ["mode", "version"],
                                "type": "object"
                              },
                              "rulePolicy": {
                                "anyOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "consecutiveObservations": {
                                        "default": 1,
                                        "maximum": 10,
                                        "minimum": 1,
                                        "type": "integer"
                                      },
                                      "severity": {
                                        "default": "critical",
                                        "enum": ["info", "warning", "critical"],
                                        "type": "string"
                                      }
                                    },
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "sustainedConsequence": {
                                        "default": "critical",
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      },
                                      "sustainedCriterion": {
                                        "default": {
                                          "kind": "observations",
                                          "observations": 1
                                        },
                                        "oneOf": [
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "kind": {
                                                "const": "observations",
                                                "type": "string"
                                              },
                                              "observations": {
                                                "maximum": 10,
                                                "minimum": 1,
                                                "type": "integer"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "observations"
                                            ],
                                            "type": "object"
                                          },
                                          {
                                            "additionalProperties": false,
                                            "properties": {
                                              "kind": {
                                                "const": "elapsed_time",
                                                "type": "string"
                                              },
                                              "seconds": {
                                                "maximum": 604800,
                                                "minimum": 1,
                                                "type": "integer"
                                              }
                                            },
                                            "required": ["kind", "seconds"],
                                            "type": "object"
                                          }
                                        ]
                                      },
                                      "transientConsequence": {
                                        "default": "none",
                                        "enum": [
                                          "none",
                                          "info",
                                          "warning",
                                          "critical"
                                        ],
                                        "type": "string"
                                      },
                                      "version": {
                                        "const": 1,
                                        "type": "number"
                                      }
                                    },
                                    "required": ["version"],
                                    "type": "object"
                                  }
                                ]
                              },
                              "sensitivity": {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "transform": {
                                "default": "none",
                                "enum": ["none", "log1p"],
                                "type": "string"
                              },
                              "unit": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "zeroExpectation": {
                                "enum": ["zero", "nonzero"],
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "definitionVersion": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "key": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "normalizationVersion": {
                            "const": 1,
                            "type": "number"
                          },
                          "normalizedValue": { "type": "number" },
                          "originalValue": { "type": "number" },
                          "previousOriginalValue": { "type": "number" },
                          "status": {
                            "enum": [
                              "value",
                              "counter_baseline",
                              "counter_reset",
                              "missing_skipped",
                              "missing_zero"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "definition",
                          "definitionVersion",
                          "key",
                          "normalizationVersion",
                          "status"
                        ],
                        "type": "object"
                      },
                      "maxItems": 32,
                      "type": "array"
                    },
                    "observedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "omittedDetail": {
                      "items": {
                        "anyOf": [
                          {
                            "enum": [
                              "normalized_measurements",
                              "adaptive_baseline",
                              "explicit_rule",
                              "incident_policy",
                              "persistent_shift",
                              "seasonal_baseline"
                            ],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      },
                      "maxItems": 16,
                      "minItems": 1,
                      "type": "array"
                    },
                    "payload": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "kind": { "const": "empty", "type": "string" }
                          },
                          "required": ["kind"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "kind": { "const": "number", "type": "string" },
                            "value": { "type": "number" }
                          },
                          "required": ["kind", "value"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "kind": {
                              "const": "measurements",
                              "type": "string"
                            },
                            "values": {
                              "additionalProperties": {
                                "anyOf": [
                                  { "type": "number" },
                                  {
                                    "anyOf": [
                                      { "type": "boolean" },
                                      { "type": "null" },
                                      {
                                        "maxLength": 256,
                                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                        "type": "string"
                                      }
                                    ]
                                  }
                                ]
                              },
                              "propertyNames": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "type": "object"
                            }
                          },
                          "required": ["kind", "values"],
                          "type": "object"
                        }
                      ]
                    },
                    "provenance": {
                      "anyOf": [
                        {
                          "enum": ["live", "historical_import"],
                          "type": "string"
                        },
                        {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        }
                      ]
                    },
                    "requestId": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                      "type": "string"
                    },
                    "ruleEvaluations": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "breach": {
                            "additionalProperties": false,
                            "properties": {
                              "consequence": {
                                "enum": ["none", "info", "warning", "critical"],
                                "type": "string"
                              },
                              "justBecameSustained": { "type": "boolean" },
                              "phase": {
                                "enum": ["clear", "transient", "sustained"],
                                "type": "string"
                              },
                              "progress": {
                                "additionalProperties": false,
                                "properties": {
                                  "elapsedSeconds": {
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "qualifyingObservations": {
                                    "maximum": 10,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "remaining": {
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "startedAt": {
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "elapsedSeconds",
                                  "qualifyingObservations",
                                  "remaining"
                                ],
                                "type": "object"
                              },
                              "sustainedConsequence": {
                                "enum": ["none", "info", "warning", "critical"],
                                "type": "string"
                              },
                              "sustainedCriterion": {
                                "oneOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "observations",
                                        "type": "string"
                                      },
                                      "observations": {
                                        "maximum": 10,
                                        "minimum": 1,
                                        "type": "integer"
                                      }
                                    },
                                    "required": ["kind", "observations"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "elapsed_time",
                                        "type": "string"
                                      },
                                      "seconds": {
                                        "maximum": 604800,
                                        "minimum": 1,
                                        "type": "integer"
                                      }
                                    },
                                    "required": ["kind", "seconds"],
                                    "type": "object"
                                  }
                                ]
                              },
                              "transientConsequence": {
                                "enum": ["none", "info", "warning", "critical"],
                                "type": "string"
                              }
                            },
                            "required": [
                              "consequence",
                              "justBecameSustained",
                              "phase",
                              "progress",
                              "sustainedConsequence",
                              "sustainedCriterion",
                              "transientConsequence"
                            ],
                            "type": "object"
                          },
                          "comparison": {
                            "enum": [
                              "at_least",
                              "at_most",
                              "equal",
                              "not_equal"
                            ],
                            "type": "string"
                          },
                          "computedValue": { "type": "number" },
                          "configurationVersion": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "confirmation": {
                            "additionalProperties": false,
                            "properties": {
                              "confirmed": { "type": "boolean" },
                              "consecutiveViolations": {
                                "maximum": 10,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "required": {
                                "maximum": 10,
                                "minimum": 1,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "confirmed",
                              "consecutiveViolations",
                              "required"
                            ],
                            "type": "object"
                          },
                          "denominatorMeasurementKey": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "engineVersion": {
                            "anyOf": [
                              { "const": 1, "type": "number" },
                              { "const": 2, "type": "number" }
                            ]
                          },
                          "explanation": {
                            "maxLength": 512,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "kind": {
                            "enum": [
                              "minimum",
                              "maximum",
                              "zero",
                              "nonzero",
                              "absolute_delta",
                              "percentage_delta",
                              "ratio_minimum",
                              "ratio_maximum"
                            ],
                            "type": "string"
                          },
                          "measurementKey": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "normalizationStatus": {
                            "enum": [
                              "value",
                              "counter_baseline",
                              "counter_reset",
                              "missing_skipped",
                              "missing_zero"
                            ],
                            "type": "string"
                          },
                          "notEvaluatedReason": {
                            "enum": [
                              "measurement_missing",
                              "counter_baseline",
                              "counter_reset",
                              "previous_value_missing",
                              "previous_value_zero",
                              "ratio_denominator_missing",
                              "ratio_denominator_zero",
                              "numeric_overflow"
                            ],
                            "type": "string"
                          },
                          "observedValue": { "type": "number" },
                          "policyInput": {
                            "additionalProperties": false,
                            "properties": {
                              "actionable": { "type": "boolean" },
                              "mode": {
                                "enum": ["heartbeat", "shadow", "active"],
                                "type": "string"
                              },
                              "severity": {
                                "enum": ["info", "warning", "critical"],
                                "type": "string"
                              }
                            },
                            "required": ["actionable", "mode", "severity"],
                            "type": "object"
                          },
                          "referenceValue": { "type": "number" },
                          "ruleId": {
                            "maxLength": 160,
                            "minLength": 3,
                            "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                            "type": "string"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          },
                          "status": {
                            "enum": ["passed", "violated", "not_evaluated"],
                            "type": "string"
                          },
                          "threshold": { "type": "number" },
                          "transform": {
                            "enum": ["none", "log1p"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "comparison",
                          "configurationVersion",
                          "confirmation",
                          "engineVersion",
                          "explanation",
                          "kind",
                          "measurementKey",
                          "normalizationStatus",
                          "policyInput",
                          "ruleId",
                          "severity",
                          "status",
                          "threshold",
                          "transform"
                        ],
                        "type": "object"
                      },
                      "maxItems": 32,
                      "type": "array"
                    },
                    "seasonalEvaluations": {
                      "items": {
                        "oneOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "configurationVersion": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "dailyBucketSamples": {
                                "maximum": 24,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "dailyReadiness": {
                                "allOf": [
                                  {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 7,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "daily",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 7,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 4,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "weekly",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  {
                                    "additionalProperties": {},
                                    "properties": {
                                      "model": {
                                        "const": "daily",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["model"],
                                    "type": "object"
                                  }
                                ]
                              },
                              "engineVersion": { "const": 1, "type": "number" },
                              "explanation": {
                                "maxLength": 512,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "localBucket": {
                                "additionalProperties": false,
                                "properties": {
                                  "dailyHour": {
                                    "maximum": 23,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "offsetMinutes": {
                                    "maximum": 1440,
                                    "minimum": -1440,
                                    "type": "integer"
                                  },
                                  "weeklyHour": {
                                    "maximum": 167,
                                    "minimum": 0,
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "dailyHour",
                                  "offsetMinutes",
                                  "weeklyHour"
                                ],
                                "type": "object"
                              },
                              "measurementKey": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "neighborToleranceHours": {
                                "const": 1,
                                "type": "number"
                              },
                              "normalizationStatus": {
                                "enum": [
                                  "value",
                                  "counter_baseline",
                                  "counter_reset",
                                  "missing_skipped",
                                  "missing_zero"
                                ],
                                "type": "string"
                              },
                              "normalizationVersion": {
                                "const": 1,
                                "type": "number"
                              },
                              "notEvaluatedReason": {
                                "enum": [
                                  "measurement_missing",
                                  "counter_baseline",
                                  "counter_reset",
                                  "numeric_overflow",
                                  "heartbeat_expectation_disabled"
                                ],
                                "type": "string"
                              },
                              "originalExpectedValue": { "type": "number" },
                              "originalLowerBound": { "type": "number" },
                              "originalObservedValue": { "type": "number" },
                              "originalScaleBasis": {
                                "enum": ["measurement", "counter_delta"],
                                "type": "string"
                              },
                              "originalUpperBound": { "type": "number" },
                              "policyInput": {
                                "additionalProperties": false,
                                "properties": {
                                  "actionable": { "type": "boolean" },
                                  "mode": {
                                    "enum": ["heartbeat", "shadow", "active"],
                                    "type": "string"
                                  }
                                },
                                "required": ["actionable", "mode"],
                                "type": "object"
                              },
                              "residualScore": {
                                "minimum": 0,
                                "type": "number"
                              },
                              "selectedModel": {
                                "const": "global",
                                "type": "string"
                              },
                              "selectionReason": {
                                "enum": [
                                  "global_baseline_warming",
                                  "insufficient_improvement",
                                  "not_evaluated",
                                  "seasonality_warming",
                                  "sparse_bucket"
                                ],
                                "type": "string"
                              },
                              "sensitivity": {
                                "oneOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configured": {
                                        "maximum": 1,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "expectedAlertRate": {
                                        "const": 0.01,
                                        "type": "number"
                                      },
                                      "name": {
                                        "const": "low",
                                        "type": "string"
                                      },
                                      "residualQuantile": {
                                        "const": 0.99,
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "configured",
                                      "expectedAlertRate",
                                      "name",
                                      "residualQuantile"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configured": {
                                        "maximum": 1,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "expectedAlertRate": {
                                        "const": 0.03,
                                        "type": "number"
                                      },
                                      "name": {
                                        "const": "medium",
                                        "type": "string"
                                      },
                                      "residualQuantile": {
                                        "const": 0.97,
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "configured",
                                      "expectedAlertRate",
                                      "name",
                                      "residualQuantile"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configured": {
                                        "maximum": 1,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "expectedAlertRate": {
                                        "const": 0.05,
                                        "type": "number"
                                      },
                                      "name": {
                                        "const": "high",
                                        "type": "string"
                                      },
                                      "residualQuantile": {
                                        "const": 0.95,
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "configured",
                                      "expectedAlertRate",
                                      "name",
                                      "residualQuantile"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "status": {
                                "enum": [
                                  "warming",
                                  "normal",
                                  "suspected_anomaly",
                                  "not_evaluated"
                                ],
                                "type": "string"
                              },
                              "threshold": {
                                "exclusiveMinimum": 0,
                                "type": "number"
                              },
                              "timeZone": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "transform": {
                                "enum": ["none", "log1p"],
                                "type": "string"
                              },
                              "transformedExpectedValue": { "type": "number" },
                              "transformedLowerBound": { "type": "number" },
                              "transformedMad": {
                                "minimum": 0,
                                "type": "number"
                              },
                              "transformedObservedValue": { "type": "number" },
                              "transformedScale": {
                                "exclusiveMinimum": 0,
                                "type": "number"
                              },
                              "transformedUpperBound": { "type": "number" },
                              "unit": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "updateDisposition": {
                                "enum": ["full", "skipped"],
                                "type": "string"
                              },
                              "weeklyBucketSamples": {
                                "maximum": 12,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "weeklyReadiness": {
                                "allOf": [
                                  {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 7,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "daily",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 7,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 4,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "weekly",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  {
                                    "additionalProperties": {},
                                    "properties": {
                                      "model": {
                                        "const": "weekly",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["model"],
                                    "type": "object"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "configurationVersion",
                              "dailyBucketSamples",
                              "dailyReadiness",
                              "engineVersion",
                              "explanation",
                              "localBucket",
                              "measurementKey",
                              "neighborToleranceHours",
                              "normalizationStatus",
                              "normalizationVersion",
                              "originalScaleBasis",
                              "policyInput",
                              "sensitivity",
                              "status",
                              "timeZone",
                              "transform",
                              "updateDisposition",
                              "weeklyBucketSamples",
                              "weeklyReadiness",
                              "selectedModel",
                              "selectionReason"
                            ],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "configurationVersion": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "dailyBucketSamples": {
                                "maximum": 24,
                                "minimum": 3,
                                "type": "integer"
                              },
                              "dailyReadiness": {
                                "allOf": [
                                  {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 7,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "daily",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 7,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 4,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "weekly",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  {
                                    "additionalProperties": {},
                                    "properties": {
                                      "model": {
                                        "const": "daily",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["model"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": {},
                                    "properties": {
                                      "candidateWinsorizedMeanAbsoluteError": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "cyclesObserved": {
                                        "const": 7,
                                        "type": "number"
                                      },
                                      "globalWinsorizedMeanAbsoluteError": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "holdoutSamples": {
                                        "maximum": 32,
                                        "minimum": 4,
                                        "type": "integer"
                                      },
                                      "relativeImprovement": {
                                        "maximum": 1,
                                        "minimum": 0.1,
                                        "type": "number"
                                      },
                                      "state": {
                                        "const": "validated",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "candidateWinsorizedMeanAbsoluteError",
                                      "cyclesObserved",
                                      "globalWinsorizedMeanAbsoluteError",
                                      "holdoutSamples",
                                      "relativeImprovement",
                                      "state"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "engineVersion": { "const": 1, "type": "number" },
                              "explanation": {
                                "maxLength": 512,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "localBucket": {
                                "additionalProperties": false,
                                "properties": {
                                  "dailyHour": {
                                    "maximum": 23,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "offsetMinutes": {
                                    "maximum": 1440,
                                    "minimum": -1440,
                                    "type": "integer"
                                  },
                                  "weeklyHour": {
                                    "maximum": 167,
                                    "minimum": 0,
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "dailyHour",
                                  "offsetMinutes",
                                  "weeklyHour"
                                ],
                                "type": "object"
                              },
                              "measurementKey": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "neighborToleranceHours": {
                                "const": 1,
                                "type": "number"
                              },
                              "normalizationStatus": {
                                "enum": [
                                  "value",
                                  "counter_baseline",
                                  "counter_reset",
                                  "missing_skipped",
                                  "missing_zero"
                                ],
                                "type": "string"
                              },
                              "normalizationVersion": {
                                "const": 1,
                                "type": "number"
                              },
                              "notEvaluatedReason": {
                                "enum": [
                                  "measurement_missing",
                                  "counter_baseline",
                                  "counter_reset",
                                  "numeric_overflow",
                                  "heartbeat_expectation_disabled"
                                ],
                                "type": "string"
                              },
                              "originalExpectedValue": { "type": "number" },
                              "originalLowerBound": { "type": "number" },
                              "originalObservedValue": { "type": "number" },
                              "originalScaleBasis": {
                                "enum": ["measurement", "counter_delta"],
                                "type": "string"
                              },
                              "originalUpperBound": { "type": "number" },
                              "policyInput": {
                                "additionalProperties": false,
                                "properties": {
                                  "actionable": { "type": "boolean" },
                                  "mode": {
                                    "enum": ["heartbeat", "shadow", "active"],
                                    "type": "string"
                                  }
                                },
                                "required": ["actionable", "mode"],
                                "type": "object"
                              },
                              "residualScore": {
                                "minimum": 0,
                                "type": "number"
                              },
                              "selectedModel": {
                                "const": "daily",
                                "type": "string"
                              },
                              "selectionReason": {
                                "const": "daily_improved",
                                "type": "string"
                              },
                              "sensitivity": {
                                "oneOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configured": {
                                        "maximum": 1,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "expectedAlertRate": {
                                        "const": 0.01,
                                        "type": "number"
                                      },
                                      "name": {
                                        "const": "low",
                                        "type": "string"
                                      },
                                      "residualQuantile": {
                                        "const": 0.99,
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "configured",
                                      "expectedAlertRate",
                                      "name",
                                      "residualQuantile"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configured": {
                                        "maximum": 1,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "expectedAlertRate": {
                                        "const": 0.03,
                                        "type": "number"
                                      },
                                      "name": {
                                        "const": "medium",
                                        "type": "string"
                                      },
                                      "residualQuantile": {
                                        "const": 0.97,
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "configured",
                                      "expectedAlertRate",
                                      "name",
                                      "residualQuantile"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configured": {
                                        "maximum": 1,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "expectedAlertRate": {
                                        "const": 0.05,
                                        "type": "number"
                                      },
                                      "name": {
                                        "const": "high",
                                        "type": "string"
                                      },
                                      "residualQuantile": {
                                        "const": 0.95,
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "configured",
                                      "expectedAlertRate",
                                      "name",
                                      "residualQuantile"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "status": {
                                "enum": [
                                  "warming",
                                  "normal",
                                  "suspected_anomaly",
                                  "not_evaluated"
                                ],
                                "type": "string"
                              },
                              "threshold": {
                                "exclusiveMinimum": 0,
                                "type": "number"
                              },
                              "timeZone": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "transform": {
                                "enum": ["none", "log1p"],
                                "type": "string"
                              },
                              "transformedExpectedValue": { "type": "number" },
                              "transformedLowerBound": { "type": "number" },
                              "transformedMad": {
                                "minimum": 0,
                                "type": "number"
                              },
                              "transformedObservedValue": { "type": "number" },
                              "transformedScale": {
                                "exclusiveMinimum": 0,
                                "type": "number"
                              },
                              "transformedUpperBound": { "type": "number" },
                              "unit": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "updateDisposition": {
                                "enum": ["full", "skipped"],
                                "type": "string"
                              },
                              "weeklyBucketSamples": {
                                "maximum": 12,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "weeklyReadiness": {
                                "allOf": [
                                  {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 7,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "daily",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 7,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 4,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "weekly",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  {
                                    "additionalProperties": {},
                                    "properties": {
                                      "model": {
                                        "const": "weekly",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["model"],
                                    "type": "object"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "configurationVersion",
                              "dailyBucketSamples",
                              "dailyReadiness",
                              "engineVersion",
                              "explanation",
                              "localBucket",
                              "measurementKey",
                              "neighborToleranceHours",
                              "normalizationStatus",
                              "normalizationVersion",
                              "originalScaleBasis",
                              "policyInput",
                              "sensitivity",
                              "status",
                              "timeZone",
                              "transform",
                              "updateDisposition",
                              "weeklyBucketSamples",
                              "weeklyReadiness",
                              "selectedModel",
                              "selectionReason"
                            ],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "configurationVersion": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "dailyBucketSamples": {
                                "maximum": 24,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "dailyReadiness": {
                                "allOf": [
                                  {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 7,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "daily",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 7,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 4,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "weekly",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  {
                                    "additionalProperties": {},
                                    "properties": {
                                      "model": {
                                        "const": "daily",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["model"],
                                    "type": "object"
                                  }
                                ]
                              },
                              "engineVersion": { "const": 1, "type": "number" },
                              "explanation": {
                                "maxLength": 512,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "localBucket": {
                                "additionalProperties": false,
                                "properties": {
                                  "dailyHour": {
                                    "maximum": 23,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "offsetMinutes": {
                                    "maximum": 1440,
                                    "minimum": -1440,
                                    "type": "integer"
                                  },
                                  "weeklyHour": {
                                    "maximum": 167,
                                    "minimum": 0,
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "dailyHour",
                                  "offsetMinutes",
                                  "weeklyHour"
                                ],
                                "type": "object"
                              },
                              "measurementKey": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "neighborToleranceHours": {
                                "const": 1,
                                "type": "number"
                              },
                              "normalizationStatus": {
                                "enum": [
                                  "value",
                                  "counter_baseline",
                                  "counter_reset",
                                  "missing_skipped",
                                  "missing_zero"
                                ],
                                "type": "string"
                              },
                              "normalizationVersion": {
                                "const": 1,
                                "type": "number"
                              },
                              "notEvaluatedReason": {
                                "enum": [
                                  "measurement_missing",
                                  "counter_baseline",
                                  "counter_reset",
                                  "numeric_overflow",
                                  "heartbeat_expectation_disabled"
                                ],
                                "type": "string"
                              },
                              "originalExpectedValue": { "type": "number" },
                              "originalLowerBound": { "type": "number" },
                              "originalObservedValue": { "type": "number" },
                              "originalScaleBasis": {
                                "enum": ["measurement", "counter_delta"],
                                "type": "string"
                              },
                              "originalUpperBound": { "type": "number" },
                              "policyInput": {
                                "additionalProperties": false,
                                "properties": {
                                  "actionable": { "type": "boolean" },
                                  "mode": {
                                    "enum": ["heartbeat", "shadow", "active"],
                                    "type": "string"
                                  }
                                },
                                "required": ["actionable", "mode"],
                                "type": "object"
                              },
                              "residualScore": {
                                "minimum": 0,
                                "type": "number"
                              },
                              "selectedModel": {
                                "const": "weekly",
                                "type": "string"
                              },
                              "selectionReason": {
                                "const": "weekly_improved",
                                "type": "string"
                              },
                              "sensitivity": {
                                "oneOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configured": {
                                        "maximum": 1,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "expectedAlertRate": {
                                        "const": 0.01,
                                        "type": "number"
                                      },
                                      "name": {
                                        "const": "low",
                                        "type": "string"
                                      },
                                      "residualQuantile": {
                                        "const": 0.99,
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "configured",
                                      "expectedAlertRate",
                                      "name",
                                      "residualQuantile"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configured": {
                                        "maximum": 1,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "expectedAlertRate": {
                                        "const": 0.03,
                                        "type": "number"
                                      },
                                      "name": {
                                        "const": "medium",
                                        "type": "string"
                                      },
                                      "residualQuantile": {
                                        "const": 0.97,
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "configured",
                                      "expectedAlertRate",
                                      "name",
                                      "residualQuantile"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "configured": {
                                        "maximum": 1,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "expectedAlertRate": {
                                        "const": 0.05,
                                        "type": "number"
                                      },
                                      "name": {
                                        "const": "high",
                                        "type": "string"
                                      },
                                      "residualQuantile": {
                                        "const": 0.95,
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "configured",
                                      "expectedAlertRate",
                                      "name",
                                      "residualQuantile"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "status": {
                                "enum": [
                                  "warming",
                                  "normal",
                                  "suspected_anomaly",
                                  "not_evaluated"
                                ],
                                "type": "string"
                              },
                              "threshold": {
                                "exclusiveMinimum": 0,
                                "type": "number"
                              },
                              "timeZone": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "transform": {
                                "enum": ["none", "log1p"],
                                "type": "string"
                              },
                              "transformedExpectedValue": { "type": "number" },
                              "transformedLowerBound": { "type": "number" },
                              "transformedMad": {
                                "minimum": 0,
                                "type": "number"
                              },
                              "transformedObservedValue": { "type": "number" },
                              "transformedScale": {
                                "exclusiveMinimum": 0,
                                "type": "number"
                              },
                              "transformedUpperBound": { "type": "number" },
                              "unit": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "updateDisposition": {
                                "enum": ["full", "skipped"],
                                "type": "string"
                              },
                              "weeklyBucketSamples": {
                                "maximum": 12,
                                "minimum": 3,
                                "type": "integer"
                              },
                              "weeklyReadiness": {
                                "allOf": [
                                  {
                                    "oneOf": [
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 7,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "daily",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 7,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "candidateWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "cyclesObserved": {
                                            "maximum": 4,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "globalWinsorizedMeanAbsoluteError": {
                                            "minimum": 0,
                                            "type": "number"
                                          },
                                          "holdoutSamples": {
                                            "maximum": 32,
                                            "minimum": 0,
                                            "type": "integer"
                                          },
                                          "minimumRelativeImprovement": {
                                            "const": 0.1,
                                            "type": "number"
                                          },
                                          "model": {
                                            "const": "weekly",
                                            "type": "string"
                                          },
                                          "relativeImprovement": {
                                            "maximum": 1,
                                            "minimum": -1,
                                            "type": "number"
                                          },
                                          "requiredCycles": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "requiredHoldoutSamples": {
                                            "const": 4,
                                            "type": "number"
                                          },
                                          "state": {
                                            "enum": [
                                              "warming_cycles",
                                              "warming_holdout",
                                              "insufficient_improvement",
                                              "validated"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "cyclesObserved",
                                          "holdoutSamples",
                                          "minimumRelativeImprovement",
                                          "requiredHoldoutSamples",
                                          "state",
                                          "model",
                                          "requiredCycles"
                                        ],
                                        "type": "object"
                                      }
                                    ]
                                  },
                                  {
                                    "additionalProperties": {},
                                    "properties": {
                                      "model": {
                                        "const": "weekly",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["model"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": {},
                                    "properties": {
                                      "candidateWinsorizedMeanAbsoluteError": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "cyclesObserved": {
                                        "const": 4,
                                        "type": "number"
                                      },
                                      "globalWinsorizedMeanAbsoluteError": {
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "holdoutSamples": {
                                        "maximum": 32,
                                        "minimum": 4,
                                        "type": "integer"
                                      },
                                      "relativeImprovement": {
                                        "maximum": 1,
                                        "minimum": 0.1,
                                        "type": "number"
                                      },
                                      "state": {
                                        "const": "validated",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "candidateWinsorizedMeanAbsoluteError",
                                      "cyclesObserved",
                                      "globalWinsorizedMeanAbsoluteError",
                                      "holdoutSamples",
                                      "relativeImprovement",
                                      "state"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "configurationVersion",
                              "dailyBucketSamples",
                              "dailyReadiness",
                              "engineVersion",
                              "explanation",
                              "localBucket",
                              "measurementKey",
                              "neighborToleranceHours",
                              "normalizationStatus",
                              "normalizationVersion",
                              "originalScaleBasis",
                              "policyInput",
                              "sensitivity",
                              "status",
                              "timeZone",
                              "transform",
                              "updateDisposition",
                              "weeklyBucketSamples",
                              "weeklyReadiness",
                              "selectedModel",
                              "selectionReason"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "maxItems": 16,
                      "type": "array"
                    },
                    "sequence": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    },
                    "shiftEvaluations": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "accumulatedMagnitude": {
                            "maximum": 64,
                            "minimum": 0,
                            "type": "number"
                          },
                          "baselineScale": {
                            "exclusiveMinimum": 0,
                            "type": "number"
                          },
                          "boundedResidualContribution": {
                            "maximum": 3,
                            "minimum": -3,
                            "type": "number"
                          },
                          "configurationVersion": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "direction": {
                            "enum": ["positive", "negative"],
                            "type": "string"
                          },
                          "durationSamples": {
                            "maximum": 1000000,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "engineVersion": { "const": 3, "type": "number" },
                          "ewma": {
                            "maximum": 3,
                            "minimum": -3,
                            "type": "number"
                          },
                          "explanation": {
                            "maxLength": 512,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "measurementKey": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "negativeCusum": {
                            "maximum": 64,
                            "minimum": 0,
                            "type": "number"
                          },
                          "normalizationVersion": {
                            "const": 1,
                            "type": "number"
                          },
                          "normalizedResidual": { "type": "number" },
                          "notEvaluatedReason": {
                            "enum": [
                              "measurement_missing",
                              "counter_baseline",
                              "counter_reset",
                              "numeric_overflow",
                              "heartbeat_expectation_disabled"
                            ],
                            "type": "string"
                          },
                          "pointAnomaly": { "type": "boolean" },
                          "policyInput": {
                            "additionalProperties": false,
                            "properties": {
                              "actionable": { "type": "boolean" },
                              "mode": {
                                "enum": ["heartbeat", "shadow", "active"],
                                "type": "string"
                              }
                            },
                            "required": ["actionable", "mode"],
                            "type": "object"
                          },
                          "positiveCusum": {
                            "maximum": 64,
                            "minimum": 0,
                            "type": "number"
                          },
                          "preset": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "cusumAllowance": {
                                    "const": 0.75,
                                    "type": "number"
                                  },
                                  "cusumThreshold": {
                                    "const": 12,
                                    "type": "number"
                                  },
                                  "ewmaAlpha": {
                                    "const": 0.1,
                                    "type": "number"
                                  },
                                  "ewmaRecoveryThreshold": {
                                    "const": 0.3,
                                    "type": "number"
                                  },
                                  "ewmaThreshold": {
                                    "const": 0.9,
                                    "type": "number"
                                  },
                                  "maximumGapIntervals": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "minimumDurationSamples": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "name": { "const": "low", "type": "string" },
                                  "recoveryConfirmationSamples": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "residualClip": {
                                    "const": 3,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "maximumGapIntervals",
                                  "residualClip",
                                  "cusumAllowance",
                                  "cusumThreshold",
                                  "ewmaAlpha",
                                  "ewmaRecoveryThreshold",
                                  "ewmaThreshold",
                                  "minimumDurationSamples",
                                  "name",
                                  "recoveryConfirmationSamples"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "cusumAllowance": {
                                    "const": 0.5,
                                    "type": "number"
                                  },
                                  "cusumThreshold": {
                                    "const": 8,
                                    "type": "number"
                                  },
                                  "ewmaAlpha": {
                                    "const": 0.2,
                                    "type": "number"
                                  },
                                  "ewmaRecoveryThreshold": {
                                    "const": 0.25,
                                    "type": "number"
                                  },
                                  "ewmaThreshold": {
                                    "const": 0.65,
                                    "type": "number"
                                  },
                                  "maximumGapIntervals": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "minimumDurationSamples": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "name": {
                                    "const": "medium",
                                    "type": "string"
                                  },
                                  "recoveryConfirmationSamples": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "residualClip": {
                                    "const": 3,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "maximumGapIntervals",
                                  "residualClip",
                                  "cusumAllowance",
                                  "cusumThreshold",
                                  "ewmaAlpha",
                                  "ewmaRecoveryThreshold",
                                  "ewmaThreshold",
                                  "minimumDurationSamples",
                                  "name",
                                  "recoveryConfirmationSamples"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "cusumAllowance": {
                                    "const": 0.35,
                                    "type": "number"
                                  },
                                  "cusumThreshold": {
                                    "const": 6,
                                    "type": "number"
                                  },
                                  "ewmaAlpha": {
                                    "const": 0.3,
                                    "type": "number"
                                  },
                                  "ewmaRecoveryThreshold": {
                                    "const": 0.2,
                                    "type": "number"
                                  },
                                  "ewmaThreshold": {
                                    "const": 0.45,
                                    "type": "number"
                                  },
                                  "maximumGapIntervals": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "minimumDurationSamples": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "name": { "const": "high", "type": "string" },
                                  "recoveryConfirmationSamples": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "residualClip": {
                                    "const": 3,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "maximumGapIntervals",
                                  "residualClip",
                                  "cusumAllowance",
                                  "cusumThreshold",
                                  "ewmaAlpha",
                                  "ewmaRecoveryThreshold",
                                  "ewmaThreshold",
                                  "minimumDurationSamples",
                                  "name",
                                  "recoveryConfirmationSamples"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "resetReason": {
                            "enum": [
                              "accepted_regime_change",
                              "baseline_model_changed",
                              "configuration_changed",
                              "counter_baseline",
                              "counter_reset",
                              "lifecycle_suspended",
                              "long_gap",
                              "maintenance"
                            ],
                            "type": "string"
                          },
                          "status": {
                            "enum": [
                              "warming",
                              "normal",
                              "accumulating",
                              "persistent_shift",
                              "recovering",
                              "reset",
                              "not_evaluated"
                            ],
                            "type": "string"
                          },
                          "wanderCalibration": {
                            "additionalProperties": false,
                            "properties": {
                              "cusumAllowance": {
                                "exclusiveMinimum": 0,
                                "maximum": 64,
                                "type": "number"
                              },
                              "cusumThreshold": {
                                "exclusiveMinimum": 0,
                                "maximum": 64,
                                "type": "number"
                              },
                              "holdoutSamples": {
                                "maximum": 1000000,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "minimumInflation": {
                                "const": 1.2,
                                "type": "number"
                              },
                              "requiredHoldoutSamples": {
                                "const": 32,
                                "type": "number"
                              },
                              "runningMeanInflation": {
                                "maximum": 4.358898943540674,
                                "minimum": 1,
                                "type": "number"
                              },
                              "state": {
                                "enum": [
                                  "warming_holdout",
                                  "independent",
                                  "calibrated"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "cusumAllowance",
                              "cusumThreshold",
                              "holdoutSamples",
                              "minimumInflation",
                              "requiredHoldoutSamples",
                              "state"
                            ],
                            "type": "object"
                          }
                        },
                        "required": [
                          "configurationVersion",
                          "engineVersion",
                          "explanation",
                          "measurementKey",
                          "normalizationVersion",
                          "pointAnomaly",
                          "policyInput",
                          "preset",
                          "status"
                        ],
                        "type": "object"
                      },
                      "maxItems": 16,
                      "type": "array"
                    },
                    "status": {
                      "anyOf": [
                        {
                          "enum": [
                            "on_time",
                            "late",
                            "not_expected",
                            "learning"
                          ],
                          "type": "string"
                        },
                        {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        }
                      ]
                    },
                    "unavailableEvidence": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "evidence": {
                            "enum": [
                              "adaptive_baseline",
                              "explicit_rule",
                              "incident_policy",
                              "persistent_shift",
                              "seasonal_baseline"
                            ],
                            "type": "string"
                          },
                          "explanation": {
                            "maxLength": 512,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "reason": {
                            "enum": ["engine_version", "unreadable"],
                            "type": "string"
                          },
                          "recordedEngineVersion": {
                            "maximum": 999,
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": ["evidence", "explanation", "reason"],
                        "type": "object"
                      },
                      "maxItems": 5,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "acceptedAt",
                    "configurationVersion",
                    "id",
                    "payload",
                    "requestId",
                    "sequence",
                    "status"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "bucketEndedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "bucketStartedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "measurements": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "count": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          },
                          "flagged": { "type": "boolean" },
                          "last": { "type": "number" },
                          "maximum": { "type": "number" },
                          "mean": { "type": "number" },
                          "measurementKey": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "minimum": { "type": "number" }
                        },
                        "required": [
                          "count",
                          "flagged",
                          "last",
                          "maximum",
                          "mean",
                          "measurementKey",
                          "minimum"
                        ],
                        "type": "object"
                      },
                      "maxItems": 32,
                      "type": "array"
                    },
                    "observationCount": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    },
                    "omittedMeasurementCount": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "resolutionSeconds": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    },
                    "statusCounts": {
                      "additionalProperties": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "propertyNames": {
                        "anyOf": [
                          {
                            "enum": [
                              "on_time",
                              "late",
                              "not_expected",
                              "learning"
                            ],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      },
                      "type": "object"
                    },
                    "type": { "const": "bucket", "type": "string" }
                  },
                  "required": [
                    "bucketEndedAt",
                    "bucketStartedAt",
                    "measurements",
                    "observationCount",
                    "resolutionSeconds",
                    "statusCounts",
                    "type"
                  ],
                  "type": "object"
                }
              ]
            },
            "maxItems": 200,
            "type": "array"
          },
          "nextCursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["items"],
        "title": "MonitorObservationPage",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorObservationPageSchema",
        "x-signalsitter-source-only-refinements": [
          "Unavailable-evidence refinements apply to every observation in the page, including that no observation both returns and drops the same record.",
          "Unavailable-evidence entries name each stored record at most once, carry this contract's own explanation for their reason, and state a recorded engine version exactly when the engine version is the reason and never the version this build runs.",
          "Normalized observation outcome refinements apply to every observation in the page.",
          "Explicit numeric-rule evidence refinements apply to every observation in the page."
        ]
      },
      "MonitorObservationProvenance": {
        "anyOf": [
          { "enum": ["live", "historical_import"], "type": "string" },
          {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*$",
            "type": "string"
          }
        ],
        "title": "MonitorObservationProvenance",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/historical-observations.ts#MonitorObservationProvenanceSchema"
      },
      "MonitorObservationSeries": {
        "additionalProperties": false,
        "properties": {
          "coverage": {
            "additionalProperties": false,
            "properties": {
              "availableFrom": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "availableThrough": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "truncated": { "const": true, "type": "boolean" }
            },
            "type": "object"
          },
          "downsampled": { "type": "boolean" },
          "omittedMeasurementCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "points": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "bucketEndedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "bucketIndex": {
                  "maximum": 31,
                  "minimum": 0,
                  "type": "integer"
                },
                "bucketStartedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "firstAcceptedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "lastAcceptedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "measurements": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "count": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "flagged": { "type": "boolean" },
                      "maximum": { "type": "number" },
                      "mean": { "type": "number" },
                      "measurementKey": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "minimum": { "type": "number" }
                    },
                    "required": [
                      "count",
                      "flagged",
                      "maximum",
                      "mean",
                      "measurementKey",
                      "minimum"
                    ],
                    "type": "object"
                  },
                  "maxItems": 32,
                  "type": "array"
                }
              },
              "required": [
                "bucketEndedAt",
                "bucketIndex",
                "bucketStartedAt",
                "firstAcceptedAt",
                "lastAcceptedAt",
                "measurements"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "resolutionSeconds": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "since": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "until": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": [
          "downsampled",
          "omittedMeasurementCount",
          "points",
          "resolutionSeconds",
          "since",
          "until"
        ],
        "title": "MonitorObservationSeries",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorObservationSeriesSchema",
        "x-signalsitter-source-only-refinements": [
          "The series window ends after it starts.",
          "Every non-empty bucket keeps its accepted timestamps inside its ordered bucket bounds.",
          "Every measurement mean stays between its recorded minimum and maximum."
        ]
      },
      "MonitorOnboardingEventRequest": {
        "additionalProperties": false,
        "properties": {
          "elapsedMs": { "maximum": 86400000, "minimum": 0, "type": "integer" },
          "eventId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "friction": {
            "enum": ["validation", "request_failed", "copy_failed"],
            "type": "string"
          },
          "name": {
            "enum": [
              "wizard_started",
              "wizard_completed",
              "first_beat_accepted",
              "callback_tested",
              "wizard_abandoned",
              "wizard_friction"
            ],
            "type": "string"
          },
          "step": {
            "enum": ["essential", "credential", "waiting", "receipt"],
            "type": "string"
          }
        },
        "required": ["eventId", "name", "step"],
        "title": "MonitorOnboardingEventRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/onboarding.ts#MonitorOnboardingEventRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "friction is present exactly for wizard_friction events."
        ]
      },
      "MonitorOnboardingEventResult": {
        "additionalProperties": false,
        "properties": { "recorded": { "const": true, "type": "boolean" } },
        "required": ["recorded"],
        "title": "MonitorOnboardingEventResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/onboarding.ts#MonitorOnboardingEventResultSchema"
      },
      "MonitorProjectionState": {
        "enum": ["pending", "synchronized"],
        "title": "MonitorProjectionState",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorProjectionStateSchema"
      },
      "MonitorRetainedDatapoint": {
        "additionalProperties": false,
        "properties": {
          "observedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "values": {
            "additionalProperties": { "type": "number" },
            "propertyNames": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": ["observedAt", "values"],
        "title": "MonitorRetainedDatapoint",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorRetainedDatapointSchema",
        "x-signalsitter-source-only-refinements": [
          "A retained datapoint carries between one and the selection limit of measurements."
        ]
      },
      "MonitorRetainedHistory": {
        "additionalProperties": false,
        "properties": {
          "coverage": {
            "additionalProperties": false,
            "properties": {
              "availableFrom": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "availableThrough": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "truncated": { "const": true, "type": "boolean" }
            },
            "type": "object"
          },
          "datapoints": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "observedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "values": {
                  "additionalProperties": { "type": "number" },
                  "propertyNames": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  },
                  "type": "object"
                }
              },
              "required": ["observedAt", "values"],
              "type": "object"
            },
            "maxItems": 500,
            "type": "array"
          },
          "measurementKeys": {
            "items": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "maxItems": 4,
            "minItems": 1,
            "type": "array"
          },
          "truncated": { "type": "boolean" }
        },
        "required": ["datapoints", "measurementKeys", "truncated"],
        "title": "MonitorRetainedHistory",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#MonitorRetainedHistorySchema",
        "x-signalsitter-source-only-refinements": [
          "A retained-history selection names each measurement once.",
          "Every retained datapoint carries exactly the selected measurements.",
          "Retained datapoints are strictly chronological."
        ]
      },
      "MonitorSummary": {
        "additionalProperties": false,
        "properties": {
          "activeIncident": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "openedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "state": { "enum": ["open", "recovering"], "type": "string" }
            },
            "required": ["id", "openedAt", "state"],
            "type": "object"
          },
          "configurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "enforcement": {
            "additionalProperties": false,
            "properties": {
              "entitlementSuspended": { "type": "boolean" },
              "intervalSeconds": {
                "maximum": 31536000,
                "minimum": 60,
                "type": "integer"
              }
            },
            "required": ["entitlementSuspended"],
            "type": "object"
          },
          "expectedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "heartbeatExpectation": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "default": 60,
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "intervalSeconds": {
                    "maximum": 31536000,
                    "minimum": 60,
                    "type": "integer"
                  },
                  "state": { "const": "enabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["intervalSeconds", "state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "state": { "const": "disabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "state": { "const": "automatic", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              }
            ]
          },
          "heartbeatLearning": {
            "additionalProperties": false,
            "properties": {
              "measuredIntervalSeconds": {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              "requiredSamples": {
                "exclusiveMinimum": 0,
                "maximum": 64,
                "type": "integer"
              },
              "samples": { "maximum": 64, "minimum": 0, "type": "integer" },
              "status": {
                "anyOf": [
                  {
                    "enum": [
                      "collecting",
                      "inconsistent",
                      "unsupported_cadence"
                    ],
                    "type": "string"
                  },
                  {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["requiredSamples", "samples", "status"],
            "type": "object"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "lastBeatAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "lastBeatStatus": {
            "anyOf": [
              {
                "enum": ["on_time", "late", "not_expected", "learning"],
                "type": "string"
              },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "lifecycle": {
            "enum": ["active", "paused", "archived"],
            "type": "string"
          },
          "lifecycleChangedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "maintenance": {
            "additionalProperties": false,
            "properties": {
              "endsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "reason": {
                "maxLength": 256,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "startsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              }
            },
            "required": ["endsAt", "startsAt"],
            "type": "object"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "nextDeadline": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": [
          "configurationVersion",
          "heartbeatExpectation",
          "jurisdiction",
          "lifecycle",
          "monitorKey"
        ],
        "title": "MonitorSummary",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#CanonicalMonitorSummarySchema",
        "x-signalsitter-source-only-refinements": [
          "A nested maintenance window ends after it starts and spans at most thirty days."
        ]
      },
      "MonitorSummaryPage": {
        "properties": {
          "items": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "activeIncident": {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                      "type": "string"
                    },
                    "openedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "state": {
                      "enum": ["open", "recovering"],
                      "type": "string"
                    }
                  },
                  "required": ["id", "openedAt", "state"],
                  "type": "object"
                },
                "configurationVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "enforcement": {
                  "additionalProperties": false,
                  "properties": {
                    "entitlementSuspended": { "type": "boolean" },
                    "intervalSeconds": {
                      "maximum": 31536000,
                      "minimum": 60,
                      "type": "integer"
                    }
                  },
                  "required": ["entitlementSuspended"],
                  "type": "object"
                },
                "expectedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "heartbeatExpectation": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "graceSeconds": {
                          "default": 60,
                          "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                          "maximum": 604800,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "intervalSeconds": {
                          "maximum": 31536000,
                          "minimum": 60,
                          "type": "integer"
                        },
                        "state": { "const": "enabled", "type": "string" },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["intervalSeconds", "state", "version"],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "state": { "const": "disabled", "type": "string" },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["state", "version"],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "graceSeconds": {
                          "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                          "maximum": 604800,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "state": { "const": "automatic", "type": "string" },
                        "version": { "const": 1, "type": "number" }
                      },
                      "required": ["state", "version"],
                      "type": "object"
                    }
                  ]
                },
                "heartbeatLearning": {
                  "additionalProperties": false,
                  "properties": {
                    "measuredIntervalSeconds": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "requiredSamples": {
                      "exclusiveMinimum": 0,
                      "maximum": 64,
                      "type": "integer"
                    },
                    "samples": {
                      "maximum": 64,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "status": {
                      "anyOf": [
                        {
                          "enum": [
                            "collecting",
                            "inconsistent",
                            "unsupported_cadence"
                          ],
                          "type": "string"
                        },
                        {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": ["requiredSamples", "samples", "status"],
                  "type": "object"
                },
                "jurisdiction": {
                  "enum": ["unrestricted", "eu", "us", "fedramp"],
                  "type": "string"
                },
                "lastBeatAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "lastBeatStatus": {
                  "anyOf": [
                    {
                      "enum": ["on_time", "late", "not_expected", "learning"],
                      "type": "string"
                    },
                    {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    }
                  ]
                },
                "lifecycle": {
                  "enum": ["active", "paused", "archived"],
                  "type": "string"
                },
                "lifecycleChangedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "maintenance": {
                  "additionalProperties": false,
                  "properties": {
                    "endsAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "reason": {
                      "maxLength": 256,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "startsAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    }
                  },
                  "required": ["endsAt", "startsAt"],
                  "type": "object"
                },
                "monitorKey": {
                  "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "name": {
                  "maxLength": 120,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "nextDeadline": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                }
              },
              "required": [
                "configurationVersion",
                "heartbeatExpectation",
                "jurisdiction",
                "lifecycle",
                "monitorKey"
              ],
              "type": "object"
            },
            "maxItems": 200,
            "type": "array"
          },
          "nextCursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["items"],
        "title": "MonitorSummaryPage",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/monitors.ts#CanonicalMonitorSummaryPageSchema",
        "x-signalsitter-source-only-refinements": [
          "Nested monitor-summary refinements apply to every monitor in the page."
        ]
      },
      "MonitorTestBeatRequest": {
        "additionalProperties": false,
        "properties": {
          "observation": {
            "anyOf": [
              { "type": "number" },
              {
                "additionalProperties": {
                  "anyOf": [
                    { "type": "number" },
                    {
                      "anyOf": [
                        { "type": "boolean" },
                        { "type": "null" },
                        {
                          "maxLength": 256,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        }
                      ]
                    }
                  ]
                },
                "propertyNames": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "type": "object"
              }
            ]
          },
          "ruleHistoryPreview": {
            "additionalProperties": false,
            "properties": {
              "historyLimit": {
                "default": 10,
                "maximum": 10,
                "minimum": 1,
                "type": "integer"
              },
              "patch": {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "heartbeatExpectation": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "graceSeconds": {
                            "default": 60,
                            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                            "maximum": 604800,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "intervalSeconds": {
                            "maximum": 31536000,
                            "minimum": 60,
                            "type": "integer"
                          },
                          "state": { "const": "enabled", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["intervalSeconds", "state", "version"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "state": { "const": "disabled", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["state", "version"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "graceSeconds": {
                            "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                            "maximum": 604800,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "state": { "const": "automatic", "type": "string" },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["state", "version"],
                        "type": "object"
                      }
                    ]
                  },
                  "incidentPolicy": {
                    "additionalProperties": false,
                    "properties": {
                      "anomalySensitivity": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "notificationCooldownSeconds": {
                        "maximum": 604800,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "recoveryConfirmationBeats": {
                        "maximum": 10,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "regimeChangeMode": {
                        "enum": ["manual", "automatic"],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "intervalSeconds": {
                    "maximum": 31536000,
                    "minimum": 60,
                    "type": "integer"
                  },
                  "measurements": {
                    "additionalProperties": {
                      "additionalProperties": false,
                      "properties": {
                        "disabledRules": {
                          "items": {
                            "enum": [
                              "minimum",
                              "maximum",
                              "zero",
                              "nonzero",
                              "absolute_delta",
                              "percentage_delta",
                              "ratio_minimum",
                              "ratio_maximum"
                            ],
                            "type": "string"
                          },
                          "maxItems": 8,
                          "type": "array"
                        },
                        "maximum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        },
                        "maximumAbsoluteDelta": {
                          "anyOf": [
                            { "minimum": 0, "type": "number" },
                            { "type": "null" }
                          ]
                        },
                        "maximumPercentageDelta": {
                          "anyOf": [
                            { "minimum": 0, "type": "number" },
                            { "type": "null" }
                          ]
                        },
                        "metricType": {
                          "enum": [
                            "gauge",
                            "count",
                            "rate",
                            "duration",
                            "counter",
                            "size"
                          ],
                          "type": "string"
                        },
                        "minimum": {
                          "anyOf": [{ "type": "number" }, { "type": "null" }]
                        },
                        "missingPolicy": {
                          "enum": ["skip", "zero", "reject"],
                          "type": "string"
                        },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        },
                        "ratio": {
                          "additionalProperties": false,
                          "properties": {
                            "denominator": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maximum": {
                              "anyOf": [
                                { "type": "number" },
                                { "type": "null" }
                              ]
                            },
                            "minimum": {
                              "anyOf": [
                                { "type": "number" },
                                { "type": "null" }
                              ]
                            }
                          },
                          "type": "object"
                        },
                        "ruleAction": {
                          "additionalProperties": false,
                          "properties": {
                            "mode": {
                              "enum": ["inactive", "active"],
                              "type": "string"
                            },
                            "version": { "const": 1, "type": "number" }
                          },
                          "required": ["mode", "version"],
                          "type": "object"
                        },
                        "rulePolicy": {
                          "anyOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "consecutiveObservations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "sustainedConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "sustainedCriterion": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "observations",
                                          "type": "string"
                                        },
                                        "observations": {
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "observations"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "elapsed_time",
                                          "type": "string"
                                        },
                                        "seconds": {
                                          "maximum": 604800,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "seconds"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "transientConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "version": { "const": 1, "type": "number" }
                              },
                              "required": ["version"],
                              "type": "object"
                            }
                          ]
                        },
                        "sensitivity": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "transform": {
                          "enum": ["none", "log1p"],
                          "type": "string"
                        },
                        "unit": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "zeroExpectation": {
                          "anyOf": [
                            { "enum": ["zero", "nonzero"], "type": "string" },
                            { "type": "null" }
                          ]
                        }
                      },
                      "type": "object"
                    },
                    "propertyNames": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "name": {
                    "maxLength": 120,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "timeZone": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "required": ["patch"],
            "type": "object"
          }
        },
        "title": "MonitorTestBeatRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/onboarding.ts#MonitorTestBeatRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "Historical rule preview is bounded to ten recent observations, accepts no callback mutation, and requires configuration-management plus observation-read authorization in the shared application service."
        ]
      },
      "MonitorTestBeatResult": {
        "additionalProperties": false,
        "properties": {
          "baselineEvaluations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "configurationVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "engineVersion": { "const": 2, "type": "number" },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "normalizationStatus": {
                  "enum": [
                    "value",
                    "counter_baseline",
                    "counter_reset",
                    "missing_skipped",
                    "missing_zero"
                  ],
                  "type": "string"
                },
                "normalizationVersion": { "const": 1, "type": "number" },
                "notActionableReason": {
                  "enum": ["baseline_below_minimum_level"],
                  "type": "string"
                },
                "notEvaluatedReason": {
                  "enum": [
                    "measurement_missing",
                    "counter_baseline",
                    "counter_reset",
                    "numeric_overflow",
                    "heartbeat_expectation_disabled"
                  ],
                  "type": "string"
                },
                "originalExpectedValue": { "type": "number" },
                "originalLowerBound": { "type": "number" },
                "originalObservedValue": { "type": "number" },
                "originalScaleBasis": {
                  "enum": ["measurement", "counter_delta"],
                  "type": "string"
                },
                "originalUpperBound": { "type": "number" },
                "policyInput": {
                  "additionalProperties": false,
                  "properties": {
                    "actionable": { "type": "boolean" },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    }
                  },
                  "required": ["actionable", "mode"],
                  "type": "object"
                },
                "readiness": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "baselineSamples": {
                          "maximum": 15,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "requiredBaselineSamples": {
                          "const": 16,
                          "type": "number"
                        },
                        "requiredResidualSamples": {
                          "const": 32,
                          "type": "number"
                        },
                        "residualSamples": { "const": 0, "type": "number" },
                        "state": {
                          "const": "warming_baseline",
                          "type": "string"
                        }
                      },
                      "required": [
                        "requiredBaselineSamples",
                        "requiredResidualSamples",
                        "baselineSamples",
                        "residualSamples",
                        "state"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "baselineSamples": {
                          "maximum": 128,
                          "minimum": 16,
                          "type": "integer"
                        },
                        "requiredBaselineSamples": {
                          "const": 16,
                          "type": "number"
                        },
                        "requiredResidualSamples": {
                          "const": 32,
                          "type": "number"
                        },
                        "residualSamples": {
                          "maximum": 31,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "state": {
                          "const": "warming_residuals",
                          "type": "string"
                        }
                      },
                      "required": [
                        "requiredBaselineSamples",
                        "requiredResidualSamples",
                        "baselineSamples",
                        "residualSamples",
                        "state"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "baselineSamples": {
                          "maximum": 128,
                          "minimum": 16,
                          "type": "integer"
                        },
                        "requiredBaselineSamples": {
                          "const": 16,
                          "type": "number"
                        },
                        "requiredResidualSamples": {
                          "const": 32,
                          "type": "number"
                        },
                        "residualSamples": {
                          "maximum": 128,
                          "minimum": 32,
                          "type": "integer"
                        },
                        "state": { "const": "ready", "type": "string" }
                      },
                      "required": [
                        "requiredBaselineSamples",
                        "requiredResidualSamples",
                        "baselineSamples",
                        "residualSamples",
                        "state"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "residualModel": {
                  "enum": ["robust_z", "count"],
                  "type": "string"
                },
                "residualModelReadiness": {
                  "additionalProperties": false,
                  "properties": {
                    "candidate": {
                      "enum": ["robust_z", "count"],
                      "type": "string"
                    },
                    "holdoutSamples": {
                      "maximum": 32,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "meanLogLikelihoodGain": { "type": "number" },
                    "minimumMeanLogLikelihoodGain": {
                      "const": 0.1,
                      "type": "number"
                    },
                    "requiredHoldoutSamples": { "const": 32, "type": "number" },
                    "state": {
                      "enum": [
                        "ineligible",
                        "warming_holdout",
                        "insufficient_improvement",
                        "validated"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "candidate",
                    "holdoutSamples",
                    "minimumMeanLogLikelihoodGain",
                    "requiredHoldoutSamples",
                    "state"
                  ],
                  "type": "object"
                },
                "residualModelSelectionReason": {
                  "enum": [
                    "count_improved",
                    "distribution_ineligible",
                    "holdout_warming",
                    "insufficient_improvement"
                  ],
                  "type": "string"
                },
                "residualScore": { "minimum": 0, "type": "number" },
                "sensitivity": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "expectedAlertRate": {
                          "const": 0.01,
                          "type": "number"
                        },
                        "name": { "const": "low", "type": "string" },
                        "residualQuantile": { "const": 0.99, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "expectedAlertRate",
                        "name",
                        "residualQuantile"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "expectedAlertRate": {
                          "const": 0.03,
                          "type": "number"
                        },
                        "name": { "const": "medium", "type": "string" },
                        "residualQuantile": { "const": 0.97, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "expectedAlertRate",
                        "name",
                        "residualQuantile"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "expectedAlertRate": {
                          "const": 0.05,
                          "type": "number"
                        },
                        "name": { "const": "high", "type": "string" },
                        "residualQuantile": { "const": 0.95, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "expectedAlertRate",
                        "name",
                        "residualQuantile"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "status": {
                  "enum": [
                    "warming",
                    "normal",
                    "suspected_anomaly",
                    "not_evaluated"
                  ],
                  "type": "string"
                },
                "threshold": { "exclusiveMinimum": 0, "type": "number" },
                "transform": { "enum": ["none", "log1p"], "type": "string" },
                "transformedExpectedValue": { "type": "number" },
                "transformedLowerBound": { "type": "number" },
                "transformedMad": { "minimum": 0, "type": "number" },
                "transformedObservedValue": { "type": "number" },
                "transformedScale": { "exclusiveMinimum": 0, "type": "number" },
                "transformedUpperBound": { "type": "number" },
                "unit": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "updateDisposition": {
                  "enum": ["full", "winsorized", "skipped"],
                  "type": "string"
                }
              },
              "required": [
                "configurationVersion",
                "engineVersion",
                "explanation",
                "measurementKey",
                "normalizationStatus",
                "normalizationVersion",
                "originalScaleBasis",
                "policyInput",
                "readiness",
                "residualModel",
                "residualModelReadiness",
                "residualModelSelectionReason",
                "sensitivity",
                "status",
                "transform",
                "updateDisposition"
              ],
              "type": "object"
            },
            "maxItems": 16,
            "type": "array"
          },
          "deadlinePreview": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "incidentPolicyDecision": {
            "additionalProperties": false,
            "properties": {
              "configurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "confirmation": {
                "additionalProperties": false,
                "properties": {
                  "confirmed": { "type": "boolean" },
                  "observedInWindow": {
                    "maximum": 6,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "required": { "maximum": 6, "minimum": 1, "type": "integer" },
                  "window": { "maximum": 6, "minimum": 1, "type": "integer" }
                },
                "required": [
                  "confirmed",
                  "observedInWindow",
                  "required",
                  "window"
                ],
                "type": "object"
              },
              "contributions": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "breach": {
                      "additionalProperties": false,
                      "properties": {
                        "consequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "justBecameSustained": { "type": "boolean" },
                        "phase": {
                          "enum": ["clear", "transient", "sustained"],
                          "type": "string"
                        },
                        "progress": {
                          "additionalProperties": false,
                          "properties": {
                            "elapsedSeconds": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "qualifyingObservations": {
                              "maximum": 10,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "remaining": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "startedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "elapsedSeconds",
                            "qualifyingObservations",
                            "remaining"
                          ],
                          "type": "object"
                        },
                        "sustainedConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "sustainedCriterion": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "observations",
                                  "type": "string"
                                },
                                "observations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "observations"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "elapsed_time",
                                  "type": "string"
                                },
                                "seconds": {
                                  "maximum": 604800,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "seconds"],
                              "type": "object"
                            }
                          ]
                        },
                        "transientConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "consequence",
                        "justBecameSustained",
                        "phase",
                        "progress",
                        "sustainedConsequence",
                        "sustainedCriterion",
                        "transientConsequence"
                      ],
                      "type": "object"
                    },
                    "detector": {
                      "enum": [
                        "explicit_rule",
                        "adaptive_baseline",
                        "seasonal_baseline",
                        "persistent_shift"
                      ],
                      "type": "string"
                    },
                    "durationSamples": {
                      "maximum": 1000000,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "ruleId": {
                      "maxLength": 160,
                      "minLength": 3,
                      "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                      "type": "string"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "trigger": {
                      "enum": [
                        "explicit_rule",
                        "extreme_deviation",
                        "moderate_confirmation",
                        "persistent_shift"
                      ],
                      "type": "string"
                    }
                  },
                  "required": ["detector", "measurementKey", "severity"],
                  "type": "object"
                },
                "maxItems": 80,
                "type": "array"
              },
              "engineVersion": { "const": 1, "type": "number" },
              "evaluation": {
                "additionalProperties": false,
                "properties": {
                  "evaluatedMeasurementKeys": {
                    "items": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "policyActive": { "type": "boolean" },
                  "publishedMeasurementKeys": {
                    "items": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maxItems": 32,
                    "type": "array"
                  }
                },
                "required": [
                  "evaluatedMeasurementKeys",
                  "policyActive",
                  "publishedMeasurementKeys"
                ],
                "type": "object"
              },
              "explanation": {
                "maxLength": 512,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "notifiable": { "type": "boolean" },
              "outcome": {
                "enum": [
                  "none",
                  "recorded",
                  "confirming",
                  "incident_opened",
                  "incident_sustained",
                  "recovery_pending",
                  "recovery_confirmed"
                ],
                "type": "string"
              },
              "profile": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "configured": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "confirmationRequired": { "const": 4, "type": "number" },
                      "confirmationWindow": { "const": 6, "type": "number" },
                      "extremeResidualMultiple": {
                        "const": 4,
                        "type": "number"
                      },
                      "name": { "const": "low", "type": "string" },
                      "recoveryConfirmationObservations": {
                        "const": 4,
                        "type": "number"
                      },
                      "regimeChangeObservations": {
                        "const": 96,
                        "type": "number"
                      }
                    },
                    "required": [
                      "configured",
                      "confirmationRequired",
                      "confirmationWindow",
                      "extremeResidualMultiple",
                      "name",
                      "recoveryConfirmationObservations",
                      "regimeChangeObservations"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "configured": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "confirmationRequired": { "const": 3, "type": "number" },
                      "confirmationWindow": { "const": 5, "type": "number" },
                      "extremeResidualMultiple": {
                        "const": 3,
                        "type": "number"
                      },
                      "name": { "const": "medium", "type": "string" },
                      "recoveryConfirmationObservations": {
                        "const": 3,
                        "type": "number"
                      },
                      "regimeChangeObservations": {
                        "const": 48,
                        "type": "number"
                      }
                    },
                    "required": [
                      "configured",
                      "confirmationRequired",
                      "confirmationWindow",
                      "extremeResidualMultiple",
                      "name",
                      "recoveryConfirmationObservations",
                      "regimeChangeObservations"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "configured": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "confirmationRequired": { "const": 2, "type": "number" },
                      "confirmationWindow": { "const": 4, "type": "number" },
                      "extremeResidualMultiple": {
                        "const": 2.5,
                        "type": "number"
                      },
                      "name": { "const": "high", "type": "string" },
                      "recoveryConfirmationObservations": {
                        "const": 3,
                        "type": "number"
                      },
                      "regimeChangeObservations": {
                        "const": 24,
                        "type": "number"
                      }
                    },
                    "required": [
                      "configured",
                      "confirmationRequired",
                      "confirmationWindow",
                      "extremeResidualMultiple",
                      "name",
                      "recoveryConfirmationObservations",
                      "regimeChangeObservations"
                    ],
                    "type": "object"
                  }
                ]
              },
              "recovery": {
                "additionalProperties": false,
                "properties": {
                  "confirmedObservations": {
                    "maximum": 10,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "requiredObservations": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": ["confirmedObservations", "requiredObservations"],
                "type": "object"
              },
              "regimeChange": {
                "additionalProperties": false,
                "properties": {
                  "measurementKeys": {
                    "items": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "mode": { "enum": ["manual", "automatic"], "type": "string" },
                  "requiredObservations": {
                    "maximum": 1000000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "state": {
                    "enum": ["none", "watching", "available", "applied"],
                    "type": "string"
                  },
                  "sustainedObservations": {
                    "maximum": 1000000,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "measurementKeys",
                  "mode",
                  "requiredObservations",
                  "state",
                  "sustainedObservations"
                ],
                "type": "object"
              },
              "severity": {
                "enum": ["info", "warning", "critical"],
                "type": "string"
              },
              "suppression": {
                "enum": [
                  "detector_unconfirmed",
                  "detector_warming",
                  "detector_shadow_mode",
                  "open_incident"
                ],
                "type": "string"
              },
              "triggers": {
                "items": {
                  "enum": [
                    "explicit_rule",
                    "extreme_deviation",
                    "moderate_confirmation",
                    "persistent_shift"
                  ],
                  "type": "string"
                },
                "maxItems": 4,
                "type": "array"
              }
            },
            "required": [
              "configurationVersion",
              "confirmation",
              "contributions",
              "engineVersion",
              "explanation",
              "notifiable",
              "outcome",
              "profile",
              "recovery",
              "regimeChange",
              "severity",
              "triggers"
            ],
            "type": "object"
          },
          "mode": { "const": "test", "type": "string" },
          "outcome": { "const": "validated", "type": "string" },
          "productionEffects": { "const": false, "type": "boolean" },
          "ruleEvaluations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "breach": {
                  "additionalProperties": false,
                  "properties": {
                    "consequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    },
                    "justBecameSustained": { "type": "boolean" },
                    "phase": {
                      "enum": ["clear", "transient", "sustained"],
                      "type": "string"
                    },
                    "progress": {
                      "additionalProperties": false,
                      "properties": {
                        "elapsedSeconds": {
                          "maximum": 604800,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "qualifyingObservations": {
                          "maximum": 10,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "remaining": {
                          "maximum": 604800,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "startedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "elapsedSeconds",
                        "qualifyingObservations",
                        "remaining"
                      ],
                      "type": "object"
                    },
                    "sustainedConsequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    },
                    "sustainedCriterion": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "kind": {
                              "const": "observations",
                              "type": "string"
                            },
                            "observations": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": ["kind", "observations"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "kind": {
                              "const": "elapsed_time",
                              "type": "string"
                            },
                            "seconds": {
                              "maximum": 604800,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": ["kind", "seconds"],
                          "type": "object"
                        }
                      ]
                    },
                    "transientConsequence": {
                      "enum": ["none", "info", "warning", "critical"],
                      "type": "string"
                    }
                  },
                  "required": [
                    "consequence",
                    "justBecameSustained",
                    "phase",
                    "progress",
                    "sustainedConsequence",
                    "sustainedCriterion",
                    "transientConsequence"
                  ],
                  "type": "object"
                },
                "comparison": {
                  "enum": ["at_least", "at_most", "equal", "not_equal"],
                  "type": "string"
                },
                "computedValue": { "type": "number" },
                "configurationVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "confirmation": {
                  "additionalProperties": false,
                  "properties": {
                    "confirmed": { "type": "boolean" },
                    "consecutiveViolations": {
                      "maximum": 10,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "required": {
                      "maximum": 10,
                      "minimum": 1,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "confirmed",
                    "consecutiveViolations",
                    "required"
                  ],
                  "type": "object"
                },
                "denominatorMeasurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "engineVersion": {
                  "anyOf": [
                    { "const": 1, "type": "number" },
                    { "const": 2, "type": "number" }
                  ]
                },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "minimum",
                    "maximum",
                    "zero",
                    "nonzero",
                    "absolute_delta",
                    "percentage_delta",
                    "ratio_minimum",
                    "ratio_maximum"
                  ],
                  "type": "string"
                },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "normalizationStatus": {
                  "enum": [
                    "value",
                    "counter_baseline",
                    "counter_reset",
                    "missing_skipped",
                    "missing_zero"
                  ],
                  "type": "string"
                },
                "notEvaluatedReason": {
                  "enum": [
                    "measurement_missing",
                    "counter_baseline",
                    "counter_reset",
                    "previous_value_missing",
                    "previous_value_zero",
                    "ratio_denominator_missing",
                    "ratio_denominator_zero",
                    "numeric_overflow"
                  ],
                  "type": "string"
                },
                "observedValue": { "type": "number" },
                "policyInput": {
                  "additionalProperties": false,
                  "properties": {
                    "actionable": { "type": "boolean" },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    }
                  },
                  "required": ["actionable", "mode", "severity"],
                  "type": "object"
                },
                "referenceValue": { "type": "number" },
                "ruleId": {
                  "maxLength": 160,
                  "minLength": 3,
                  "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                  "type": "string"
                },
                "severity": {
                  "enum": ["info", "warning", "critical"],
                  "type": "string"
                },
                "status": {
                  "enum": ["passed", "violated", "not_evaluated"],
                  "type": "string"
                },
                "threshold": { "type": "number" },
                "transform": { "enum": ["none", "log1p"], "type": "string" }
              },
              "required": [
                "comparison",
                "configurationVersion",
                "confirmation",
                "engineVersion",
                "explanation",
                "kind",
                "measurementKey",
                "normalizationStatus",
                "policyInput",
                "ruleId",
                "severity",
                "status",
                "threshold",
                "transform"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "ruleHistoryPreview": {
            "additionalProperties": false,
            "properties": {
              "baseConfigurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "evaluatedObservations": {
                "maximum": 10,
                "minimum": 0,
                "type": "integer"
              },
              "fromSequence": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "proposedConfigurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "ruleEvaluations": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "breach": {
                      "additionalProperties": false,
                      "properties": {
                        "consequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "justBecameSustained": { "type": "boolean" },
                        "phase": {
                          "enum": ["clear", "transient", "sustained"],
                          "type": "string"
                        },
                        "progress": {
                          "additionalProperties": false,
                          "properties": {
                            "elapsedSeconds": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "qualifyingObservations": {
                              "maximum": 10,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "remaining": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "startedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "elapsedSeconds",
                            "qualifyingObservations",
                            "remaining"
                          ],
                          "type": "object"
                        },
                        "sustainedConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "sustainedCriterion": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "observations",
                                  "type": "string"
                                },
                                "observations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "observations"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "elapsed_time",
                                  "type": "string"
                                },
                                "seconds": {
                                  "maximum": 604800,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "seconds"],
                              "type": "object"
                            }
                          ]
                        },
                        "transientConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "consequence",
                        "justBecameSustained",
                        "phase",
                        "progress",
                        "sustainedConsequence",
                        "sustainedCriterion",
                        "transientConsequence"
                      ],
                      "type": "object"
                    },
                    "comparison": {
                      "enum": ["at_least", "at_most", "equal", "not_equal"],
                      "type": "string"
                    },
                    "computedValue": { "type": "number" },
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "confirmation": {
                      "additionalProperties": false,
                      "properties": {
                        "confirmed": { "type": "boolean" },
                        "consecutiveViolations": {
                          "maximum": 10,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "required": {
                          "maximum": 10,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "confirmed",
                        "consecutiveViolations",
                        "required"
                      ],
                      "type": "object"
                    },
                    "denominatorMeasurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "engineVersion": {
                      "anyOf": [
                        { "const": 1, "type": "number" },
                        { "const": 2, "type": "number" }
                      ]
                    },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "previous_value_missing",
                        "previous_value_zero",
                        "ratio_denominator_missing",
                        "ratio_denominator_zero",
                        "numeric_overflow"
                      ],
                      "type": "string"
                    },
                    "observedValue": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode", "severity"],
                      "type": "object"
                    },
                    "referenceValue": { "type": "number" },
                    "ruleId": {
                      "maxLength": 160,
                      "minLength": 3,
                      "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                      "type": "string"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "status": {
                      "enum": ["passed", "violated", "not_evaluated"],
                      "type": "string"
                    },
                    "threshold": { "type": "number" },
                    "transform": { "enum": ["none", "log1p"], "type": "string" }
                  },
                  "required": [
                    "comparison",
                    "configurationVersion",
                    "confirmation",
                    "engineVersion",
                    "explanation",
                    "kind",
                    "measurementKey",
                    "normalizationStatus",
                    "policyInput",
                    "ruleId",
                    "severity",
                    "status",
                    "threshold",
                    "transform"
                  ],
                  "type": "object"
                },
                "maxItems": 32,
                "type": "array"
              },
              "throughSequence": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "baseConfigurationVersion",
              "evaluatedObservations",
              "proposedConfigurationVersion",
              "ruleEvaluations"
            ],
            "type": "object"
          },
          "seasonalEvaluations": {
            "items": {
              "oneOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyBucketSamples": {
                      "maximum": 24,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "daily", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    },
                    "engineVersion": { "const": 1, "type": "number" },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "localBucket": {
                      "additionalProperties": false,
                      "properties": {
                        "dailyHour": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "offsetMinutes": {
                          "maximum": 1440,
                          "minimum": -1440,
                          "type": "integer"
                        },
                        "weeklyHour": {
                          "maximum": 167,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": ["dailyHour", "offsetMinutes", "weeklyHour"],
                      "type": "object"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "neighborToleranceHours": { "const": 1, "type": "number" },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "numeric_overflow",
                        "heartbeat_expectation_disabled"
                      ],
                      "type": "string"
                    },
                    "originalExpectedValue": { "type": "number" },
                    "originalLowerBound": { "type": "number" },
                    "originalObservedValue": { "type": "number" },
                    "originalScaleBasis": {
                      "enum": ["measurement", "counter_delta"],
                      "type": "string"
                    },
                    "originalUpperBound": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode"],
                      "type": "object"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "selectedModel": { "const": "global", "type": "string" },
                    "selectionReason": {
                      "enum": [
                        "global_baseline_warming",
                        "insufficient_improvement",
                        "not_evaluated",
                        "seasonality_warming",
                        "sparse_bucket"
                      ],
                      "type": "string"
                    },
                    "sensitivity": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.01,
                              "type": "number"
                            },
                            "name": { "const": "low", "type": "string" },
                            "residualQuantile": {
                              "const": 0.99,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.03,
                              "type": "number"
                            },
                            "name": { "const": "medium", "type": "string" },
                            "residualQuantile": {
                              "const": 0.97,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.05,
                              "type": "number"
                            },
                            "name": { "const": "high", "type": "string" },
                            "residualQuantile": {
                              "const": 0.95,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "warming",
                        "normal",
                        "suspected_anomaly",
                        "not_evaluated"
                      ],
                      "type": "string"
                    },
                    "threshold": { "exclusiveMinimum": 0, "type": "number" },
                    "timeZone": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "transformedExpectedValue": { "type": "number" },
                    "transformedLowerBound": { "type": "number" },
                    "transformedMad": { "minimum": 0, "type": "number" },
                    "transformedObservedValue": { "type": "number" },
                    "transformedScale": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "transformedUpperBound": { "type": "number" },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "updateDisposition": {
                      "enum": ["full", "skipped"],
                      "type": "string"
                    },
                    "weeklyBucketSamples": {
                      "maximum": 12,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "weeklyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "weekly", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "configurationVersion",
                    "dailyBucketSamples",
                    "dailyReadiness",
                    "engineVersion",
                    "explanation",
                    "localBucket",
                    "measurementKey",
                    "neighborToleranceHours",
                    "normalizationStatus",
                    "normalizationVersion",
                    "originalScaleBasis",
                    "policyInput",
                    "sensitivity",
                    "status",
                    "timeZone",
                    "transform",
                    "updateDisposition",
                    "weeklyBucketSamples",
                    "weeklyReadiness",
                    "selectedModel",
                    "selectionReason"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyBucketSamples": {
                      "maximum": 24,
                      "minimum": 3,
                      "type": "integer"
                    },
                    "dailyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "daily", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "candidateWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "cyclesObserved": { "const": 7, "type": "number" },
                            "globalWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "holdoutSamples": {
                              "maximum": 32,
                              "minimum": 4,
                              "type": "integer"
                            },
                            "relativeImprovement": {
                              "maximum": 1,
                              "minimum": 0.1,
                              "type": "number"
                            },
                            "state": { "const": "validated", "type": "string" }
                          },
                          "required": [
                            "candidateWinsorizedMeanAbsoluteError",
                            "cyclesObserved",
                            "globalWinsorizedMeanAbsoluteError",
                            "holdoutSamples",
                            "relativeImprovement",
                            "state"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "engineVersion": { "const": 1, "type": "number" },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "localBucket": {
                      "additionalProperties": false,
                      "properties": {
                        "dailyHour": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "offsetMinutes": {
                          "maximum": 1440,
                          "minimum": -1440,
                          "type": "integer"
                        },
                        "weeklyHour": {
                          "maximum": 167,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": ["dailyHour", "offsetMinutes", "weeklyHour"],
                      "type": "object"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "neighborToleranceHours": { "const": 1, "type": "number" },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "numeric_overflow",
                        "heartbeat_expectation_disabled"
                      ],
                      "type": "string"
                    },
                    "originalExpectedValue": { "type": "number" },
                    "originalLowerBound": { "type": "number" },
                    "originalObservedValue": { "type": "number" },
                    "originalScaleBasis": {
                      "enum": ["measurement", "counter_delta"],
                      "type": "string"
                    },
                    "originalUpperBound": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode"],
                      "type": "object"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "selectedModel": { "const": "daily", "type": "string" },
                    "selectionReason": {
                      "const": "daily_improved",
                      "type": "string"
                    },
                    "sensitivity": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.01,
                              "type": "number"
                            },
                            "name": { "const": "low", "type": "string" },
                            "residualQuantile": {
                              "const": 0.99,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.03,
                              "type": "number"
                            },
                            "name": { "const": "medium", "type": "string" },
                            "residualQuantile": {
                              "const": 0.97,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.05,
                              "type": "number"
                            },
                            "name": { "const": "high", "type": "string" },
                            "residualQuantile": {
                              "const": 0.95,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "warming",
                        "normal",
                        "suspected_anomaly",
                        "not_evaluated"
                      ],
                      "type": "string"
                    },
                    "threshold": { "exclusiveMinimum": 0, "type": "number" },
                    "timeZone": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "transformedExpectedValue": { "type": "number" },
                    "transformedLowerBound": { "type": "number" },
                    "transformedMad": { "minimum": 0, "type": "number" },
                    "transformedObservedValue": { "type": "number" },
                    "transformedScale": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "transformedUpperBound": { "type": "number" },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "updateDisposition": {
                      "enum": ["full", "skipped"],
                      "type": "string"
                    },
                    "weeklyBucketSamples": {
                      "maximum": 12,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "weeklyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "weekly", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "configurationVersion",
                    "dailyBucketSamples",
                    "dailyReadiness",
                    "engineVersion",
                    "explanation",
                    "localBucket",
                    "measurementKey",
                    "neighborToleranceHours",
                    "normalizationStatus",
                    "normalizationVersion",
                    "originalScaleBasis",
                    "policyInput",
                    "sensitivity",
                    "status",
                    "timeZone",
                    "transform",
                    "updateDisposition",
                    "weeklyBucketSamples",
                    "weeklyReadiness",
                    "selectedModel",
                    "selectionReason"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "configurationVersion": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyBucketSamples": {
                      "maximum": 24,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "dailyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "daily", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        }
                      ]
                    },
                    "engineVersion": { "const": 1, "type": "number" },
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "localBucket": {
                      "additionalProperties": false,
                      "properties": {
                        "dailyHour": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "offsetMinutes": {
                          "maximum": 1440,
                          "minimum": -1440,
                          "type": "integer"
                        },
                        "weeklyHour": {
                          "maximum": 167,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": ["dailyHour", "offsetMinutes", "weeklyHour"],
                      "type": "object"
                    },
                    "measurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "neighborToleranceHours": { "const": 1, "type": "number" },
                    "normalizationStatus": {
                      "enum": [
                        "value",
                        "counter_baseline",
                        "counter_reset",
                        "missing_skipped",
                        "missing_zero"
                      ],
                      "type": "string"
                    },
                    "normalizationVersion": { "const": 1, "type": "number" },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "numeric_overflow",
                        "heartbeat_expectation_disabled"
                      ],
                      "type": "string"
                    },
                    "originalExpectedValue": { "type": "number" },
                    "originalLowerBound": { "type": "number" },
                    "originalObservedValue": { "type": "number" },
                    "originalScaleBasis": {
                      "enum": ["measurement", "counter_delta"],
                      "type": "string"
                    },
                    "originalUpperBound": { "type": "number" },
                    "policyInput": {
                      "additionalProperties": false,
                      "properties": {
                        "actionable": { "type": "boolean" },
                        "mode": {
                          "enum": ["heartbeat", "shadow", "active"],
                          "type": "string"
                        }
                      },
                      "required": ["actionable", "mode"],
                      "type": "object"
                    },
                    "residualScore": { "minimum": 0, "type": "number" },
                    "selectedModel": { "const": "weekly", "type": "string" },
                    "selectionReason": {
                      "const": "weekly_improved",
                      "type": "string"
                    },
                    "sensitivity": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.01,
                              "type": "number"
                            },
                            "name": { "const": "low", "type": "string" },
                            "residualQuantile": {
                              "const": 0.99,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.03,
                              "type": "number"
                            },
                            "name": { "const": "medium", "type": "string" },
                            "residualQuantile": {
                              "const": 0.97,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configured": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "expectedAlertRate": {
                              "const": 0.05,
                              "type": "number"
                            },
                            "name": { "const": "high", "type": "string" },
                            "residualQuantile": {
                              "const": 0.95,
                              "type": "number"
                            }
                          },
                          "required": [
                            "configured",
                            "expectedAlertRate",
                            "name",
                            "residualQuantile"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "warming",
                        "normal",
                        "suspected_anomaly",
                        "not_evaluated"
                      ],
                      "type": "string"
                    },
                    "threshold": { "exclusiveMinimum": 0, "type": "number" },
                    "timeZone": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "transform": {
                      "enum": ["none", "log1p"],
                      "type": "string"
                    },
                    "transformedExpectedValue": { "type": "number" },
                    "transformedLowerBound": { "type": "number" },
                    "transformedMad": { "minimum": 0, "type": "number" },
                    "transformedObservedValue": { "type": "number" },
                    "transformedScale": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "transformedUpperBound": { "type": "number" },
                    "unit": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "updateDisposition": {
                      "enum": ["full", "skipped"],
                      "type": "string"
                    },
                    "weeklyBucketSamples": {
                      "maximum": 12,
                      "minimum": 3,
                      "type": "integer"
                    },
                    "weeklyReadiness": {
                      "allOf": [
                        {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 7,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": { "const": "daily", "type": "string" },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 7,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "candidateWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cyclesObserved": {
                                  "maximum": 4,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "globalWinsorizedMeanAbsoluteError": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumRelativeImprovement": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "model": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "relativeImprovement": {
                                  "maximum": 1,
                                  "minimum": -1,
                                  "type": "number"
                                },
                                "requiredCycles": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_cycles",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cyclesObserved",
                                "holdoutSamples",
                                "minimumRelativeImprovement",
                                "requiredHoldoutSamples",
                                "state",
                                "model",
                                "requiredCycles"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "model": { "const": "weekly", "type": "string" }
                          },
                          "required": ["model"],
                          "type": "object"
                        },
                        {
                          "additionalProperties": {},
                          "properties": {
                            "candidateWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "cyclesObserved": { "const": 4, "type": "number" },
                            "globalWinsorizedMeanAbsoluteError": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "holdoutSamples": {
                              "maximum": 32,
                              "minimum": 4,
                              "type": "integer"
                            },
                            "relativeImprovement": {
                              "maximum": 1,
                              "minimum": 0.1,
                              "type": "number"
                            },
                            "state": { "const": "validated", "type": "string" }
                          },
                          "required": [
                            "candidateWinsorizedMeanAbsoluteError",
                            "cyclesObserved",
                            "globalWinsorizedMeanAbsoluteError",
                            "holdoutSamples",
                            "relativeImprovement",
                            "state"
                          ],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "configurationVersion",
                    "dailyBucketSamples",
                    "dailyReadiness",
                    "engineVersion",
                    "explanation",
                    "localBucket",
                    "measurementKey",
                    "neighborToleranceHours",
                    "normalizationStatus",
                    "normalizationVersion",
                    "originalScaleBasis",
                    "policyInput",
                    "sensitivity",
                    "status",
                    "timeZone",
                    "transform",
                    "updateDisposition",
                    "weeklyBucketSamples",
                    "weeklyReadiness",
                    "selectedModel",
                    "selectionReason"
                  ],
                  "type": "object"
                }
              ]
            },
            "maxItems": 16,
            "type": "array"
          },
          "shiftEvaluations": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "accumulatedMagnitude": {
                  "maximum": 64,
                  "minimum": 0,
                  "type": "number"
                },
                "baselineScale": { "exclusiveMinimum": 0, "type": "number" },
                "boundedResidualContribution": {
                  "maximum": 3,
                  "minimum": -3,
                  "type": "number"
                },
                "configurationVersion": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "direction": {
                  "enum": ["positive", "negative"],
                  "type": "string"
                },
                "durationSamples": {
                  "maximum": 1000000,
                  "minimum": 0,
                  "type": "integer"
                },
                "engineVersion": { "const": 3, "type": "number" },
                "ewma": { "maximum": 3, "minimum": -3, "type": "number" },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "negativeCusum": {
                  "maximum": 64,
                  "minimum": 0,
                  "type": "number"
                },
                "normalizationVersion": { "const": 1, "type": "number" },
                "normalizedResidual": { "type": "number" },
                "notEvaluatedReason": {
                  "enum": [
                    "measurement_missing",
                    "counter_baseline",
                    "counter_reset",
                    "numeric_overflow",
                    "heartbeat_expectation_disabled"
                  ],
                  "type": "string"
                },
                "pointAnomaly": { "type": "boolean" },
                "policyInput": {
                  "additionalProperties": false,
                  "properties": {
                    "actionable": { "type": "boolean" },
                    "mode": {
                      "enum": ["heartbeat", "shadow", "active"],
                      "type": "string"
                    }
                  },
                  "required": ["actionable", "mode"],
                  "type": "object"
                },
                "positiveCusum": {
                  "maximum": 64,
                  "minimum": 0,
                  "type": "number"
                },
                "preset": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "cusumAllowance": { "const": 0.75, "type": "number" },
                        "cusumThreshold": { "const": 12, "type": "number" },
                        "ewmaAlpha": { "const": 0.1, "type": "number" },
                        "ewmaRecoveryThreshold": {
                          "const": 0.3,
                          "type": "number"
                        },
                        "ewmaThreshold": { "const": 0.9, "type": "number" },
                        "maximumGapIntervals": { "const": 4, "type": "number" },
                        "minimumDurationSamples": {
                          "const": 4,
                          "type": "number"
                        },
                        "name": { "const": "low", "type": "string" },
                        "recoveryConfirmationSamples": {
                          "const": 4,
                          "type": "number"
                        },
                        "residualClip": { "const": 3, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "maximumGapIntervals",
                        "residualClip",
                        "cusumAllowance",
                        "cusumThreshold",
                        "ewmaAlpha",
                        "ewmaRecoveryThreshold",
                        "ewmaThreshold",
                        "minimumDurationSamples",
                        "name",
                        "recoveryConfirmationSamples"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "cusumAllowance": { "const": 0.5, "type": "number" },
                        "cusumThreshold": { "const": 8, "type": "number" },
                        "ewmaAlpha": { "const": 0.2, "type": "number" },
                        "ewmaRecoveryThreshold": {
                          "const": 0.25,
                          "type": "number"
                        },
                        "ewmaThreshold": { "const": 0.65, "type": "number" },
                        "maximumGapIntervals": { "const": 4, "type": "number" },
                        "minimumDurationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "name": { "const": "medium", "type": "string" },
                        "recoveryConfirmationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "residualClip": { "const": 3, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "maximumGapIntervals",
                        "residualClip",
                        "cusumAllowance",
                        "cusumThreshold",
                        "ewmaAlpha",
                        "ewmaRecoveryThreshold",
                        "ewmaThreshold",
                        "minimumDurationSamples",
                        "name",
                        "recoveryConfirmationSamples"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "configured": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "cusumAllowance": { "const": 0.35, "type": "number" },
                        "cusumThreshold": { "const": 6, "type": "number" },
                        "ewmaAlpha": { "const": 0.3, "type": "number" },
                        "ewmaRecoveryThreshold": {
                          "const": 0.2,
                          "type": "number"
                        },
                        "ewmaThreshold": { "const": 0.45, "type": "number" },
                        "maximumGapIntervals": { "const": 4, "type": "number" },
                        "minimumDurationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "name": { "const": "high", "type": "string" },
                        "recoveryConfirmationSamples": {
                          "const": 3,
                          "type": "number"
                        },
                        "residualClip": { "const": 3, "type": "number" }
                      },
                      "required": [
                        "configured",
                        "maximumGapIntervals",
                        "residualClip",
                        "cusumAllowance",
                        "cusumThreshold",
                        "ewmaAlpha",
                        "ewmaRecoveryThreshold",
                        "ewmaThreshold",
                        "minimumDurationSamples",
                        "name",
                        "recoveryConfirmationSamples"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "resetReason": {
                  "enum": [
                    "accepted_regime_change",
                    "baseline_model_changed",
                    "configuration_changed",
                    "counter_baseline",
                    "counter_reset",
                    "lifecycle_suspended",
                    "long_gap",
                    "maintenance"
                  ],
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "warming",
                    "normal",
                    "accumulating",
                    "persistent_shift",
                    "recovering",
                    "reset",
                    "not_evaluated"
                  ],
                  "type": "string"
                },
                "wanderCalibration": {
                  "additionalProperties": false,
                  "properties": {
                    "cusumAllowance": {
                      "exclusiveMinimum": 0,
                      "maximum": 64,
                      "type": "number"
                    },
                    "cusumThreshold": {
                      "exclusiveMinimum": 0,
                      "maximum": 64,
                      "type": "number"
                    },
                    "holdoutSamples": {
                      "maximum": 1000000,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "minimumInflation": { "const": 1.2, "type": "number" },
                    "requiredHoldoutSamples": { "const": 32, "type": "number" },
                    "runningMeanInflation": {
                      "maximum": 4.358898943540674,
                      "minimum": 1,
                      "type": "number"
                    },
                    "state": {
                      "enum": ["warming_holdout", "independent", "calibrated"],
                      "type": "string"
                    }
                  },
                  "required": [
                    "cusumAllowance",
                    "cusumThreshold",
                    "holdoutSamples",
                    "minimumInflation",
                    "requiredHoldoutSamples",
                    "state"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "configurationVersion",
                "engineVersion",
                "explanation",
                "measurementKey",
                "normalizationVersion",
                "pointAnomaly",
                "policyInput",
                "preset",
                "status"
              ],
              "type": "object"
            },
            "maxItems": 16,
            "type": "array"
          },
          "testedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": ["mode", "outcome", "productionEffects", "testedAt"],
        "title": "MonitorTestBeatResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/onboarding.ts#MonitorTestBeatResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Nested adaptive numeric-baseline evidence keeps readiness, finite prediction groups, original-scale bounds, update disposition, and actionable policy input mutually consistent.",
          "Nested explicit numeric-rule evidence consistently identifies evaluated values, skipped reasons, breach phase, count-or-time progress, effective consequence, ratio denominators, and actionable incident-policy inputs.",
          "A historical rule preview reports the persisted base and hypothetical next configuration versions and never represents a production effect."
        ]
      },
      "ObservationId": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
        "title": "ObservationId",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#ObservationIdSchema"
      },
      "OneTimeSecretResult": {
        "properties": {
          "onlyShownOnce": { "const": true, "type": "boolean" },
          "revealedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "secret": {
            "maxLength": 4096,
            "minLength": 16,
            "pattern": "^[^\\s\\u0000-\\u001F\\u007F]+$",
            "type": "string"
          }
        },
        "required": ["secret", "revealedAt", "onlyShownOnce"],
        "title": "OneTimeSecretResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/resources.ts#OneTimeSecretResultSchema"
      },
      "OrganizationAbuseStatus": {
        "additionalProperties": false,
        "properties": {
          "reactivationCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "state": {
            "enum": ["active", "warned", "suspended"],
            "type": "string"
          },
          "suspendedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              { "type": "null" }
            ]
          },
          "warnedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              { "type": "null" }
            ]
          }
        },
        "required": ["state", "warnedAt", "suspendedAt", "reactivationCount"],
        "title": "OrganizationAbuseStatus",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/entitlements.ts#OrganizationAbuseStatusSchema"
      },
      "OrganizationBillingView": {
        "additionalProperties": false,
        "properties": {
          "dispute": {
            "enum": ["none", "open", "won", "lost"],
            "type": "string"
          },
          "graceEndsAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "organizationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "plan": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "enum": ["free", "builder", "smart", "scale"],
                "type": "string"
              },
              "name": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              }
            },
            "required": ["id", "name", "version"],
            "type": "object"
          },
          "portalAvailable": { "type": "boolean" },
          "reconciledAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "serviceState": {
            "enum": [
              "active",
              "payment_grace",
              "abuse_suspended",
              "canceled",
              "deleting"
            ],
            "type": "string"
          },
          "subscription": {
            "additionalProperties": false,
            "properties": {
              "cancelAtPeriodEnd": { "type": "boolean" },
              "currentPeriodEnd": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "status": {
                "enum": [
                  "none",
                  "trialing",
                  "active",
                  "past_due",
                  "unpaid",
                  "canceled",
                  "incomplete",
                  "incomplete_expired",
                  "paused"
                ],
                "type": "string"
              },
              "trialEndsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              }
            },
            "required": ["cancelAtPeriodEnd", "status"],
            "type": "object"
          }
        },
        "required": [
          "organizationId",
          "dispute",
          "portalAvailable",
          "plan",
          "serviceState",
          "subscription"
        ],
        "title": "OrganizationBillingView",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/billing.ts#OrganizationBillingViewSchema",
        "x-signalsitter-source-only-refinements": [
          "Payment grace states when it ends, and only payment grace states one.",
          "A trial states when it ends, and only a trial states one.",
          "An absent subscription is neither scheduled to cancel nor offered a portal."
        ]
      },
      "OrganizationCallbackDefault": {
        "additionalProperties": false,
        "properties": {
          "endpoint": {
            "properties": {
              "alias": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "createdAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "disabledAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "generation": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "isOrganizationDefault": { "type": "boolean" },
              "kind": {
                "default": "webhook",
                "enum": [
                  "webhook",
                  "whooshbang_subscriber",
                  "whooshbang_group"
                ],
                "type": "string"
              },
              "lifecycle": { "enum": ["active", "disabled"], "type": "string" },
              "projectId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "secret": {
                "additionalProperties": false,
                "properties": {
                  "issuedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "overlapEndsAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "previousVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 65535,
                    "type": "integer"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 65535,
                    "type": "integer"
                  }
                },
                "required": ["version", "issuedAt"],
                "type": "object"
              },
              "updatedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "url": { "format": "uri", "maxLength": 512, "type": "string" },
              "whooshbang": {
                "additionalProperties": false,
                "properties": {
                  "actorId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "contractVersion": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "notifierId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                    "type": "string"
                  }
                },
                "required": ["actorId", "contractVersion", "notifierId"],
                "type": "object"
              },
              "whooshbangGroup": {
                "additionalProperties": false,
                "properties": {
                  "contractVersion": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "notifierId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                    "type": "string"
                  }
                },
                "required": ["contractVersion", "notifierId"],
                "type": "object"
              }
            },
            "required": [
              "id",
              "projectId",
              "alias",
              "lifecycle",
              "isOrganizationDefault",
              "generation",
              "createdAt",
              "updatedAt"
            ],
            "type": "object"
          }
        },
        "title": "OrganizationCallbackDefault",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#OrganizationCallbackDefaultSchema",
        "x-signalsitter-source-only-refinements": [
          "The endpoint preserves its lifecycle, default, and rotation-overlap refinements."
        ]
      },
      "OrganizationCallbackDefaultCommand": {
        "additionalProperties": false,
        "properties": {
          "endpointId": {
            "anyOf": [
              {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              { "type": "null" }
            ]
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["endpointId", "idempotencyKey"],
        "title": "OrganizationCallbackDefaultCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/callbacks.ts#OrganizationCallbackDefaultCommandSchema"
      },
      "OrganizationCallbackDefaultRequest": {
        "additionalProperties": false,
        "properties": {
          "endpointId": {
            "anyOf": [
              {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              { "type": "null" }
            ]
          }
        },
        "required": ["endpointId"],
        "title": "OrganizationCallbackDefaultRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#OrganizationCallbackDefaultRequestSchema"
      },
      "OrganizationContext": {
        "properties": {
          "organization": {
            "properties": {
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              }
            },
            "required": ["id"],
            "type": "object"
          },
          "principal": {
            "oneOf": [
              {
                "properties": {
                  "kind": { "const": "human", "type": "string" },
                  "role": {
                    "enum": ["owner", "admin", "member"],
                    "type": "string"
                  },
                  "userId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  }
                },
                "required": ["kind", "role", "userId"],
                "type": "object"
              },
              {
                "properties": {
                  "credentialId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": { "const": "api_credential", "type": "string" },
                  "preset": {
                    "enum": ["read", "write", "readwrite", "manage"],
                    "type": "string"
                  },
                  "scopes": {
                    "items": {
                      "enum": [
                        "callbacks:read",
                        "callbacks:write",
                        "credentials:write",
                        "incidents:read",
                        "incidents:write",
                        "monitors:read",
                        "monitors:write",
                        "observations:read",
                        "organization:write",
                        "organization:destroy",
                        "projects:read",
                        "projects:write",
                        "projects:administer",
                        "usage:read"
                      ],
                      "type": "string"
                    },
                    "maxItems": 14,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": ["kind", "credentialId", "preset", "scopes"],
                "type": "object"
              }
            ]
          }
        },
        "required": ["organization", "principal"],
        "title": "OrganizationContext",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#OrganizationContextSchema",
        "x-signalsitter-source-only-refinements": [
          "Organization and principal identifiers originate from verified server-side authentication context."
        ]
      },
      "OrganizationDefaultJurisdiction": {
        "additionalProperties": false,
        "properties": {
          "available": {
            "items": {
              "enum": ["unrestricted", "eu", "us", "fedramp"],
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          }
        },
        "required": ["available", "jurisdiction"],
        "title": "OrganizationDefaultJurisdiction",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/organization-defaults.ts#OrganizationDefaultJurisdictionSchema"
      },
      "OrganizationDefaultJurisdictionRequest": {
        "additionalProperties": false,
        "properties": {
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          }
        },
        "required": ["jurisdiction"],
        "title": "OrganizationDefaultJurisdictionRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/organization-defaults.ts#OrganizationDefaultJurisdictionRequestSchema"
      },
      "OrganizationDeletionCommand": {
        "additionalProperties": false,
        "properties": {
          "confirmOrganizationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "mode": { "enum": ["immediate", "reversible"], "type": "string" }
        },
        "required": ["confirmOrganizationId", "mode", "idempotencyKey"],
        "title": "OrganizationDeletionCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/organization-deletion.ts#OrganizationDeletionCommandSchema"
      },
      "OrganizationDeletionManifest": {
        "additionalProperties": false,
        "properties": {
          "acknowledged": {
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer"
          },
          "byJurisdiction": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "acknowledged": {
                  "maximum": 1000000,
                  "minimum": 0,
                  "type": "integer"
                },
                "expected": {
                  "maximum": 1000000,
                  "minimum": 0,
                  "type": "integer"
                },
                "jurisdiction": {
                  "enum": ["unrestricted", "eu", "us", "fedramp"],
                  "type": "string"
                },
                "purged": {
                  "maximum": 1000000,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "acknowledged",
                "expected",
                "jurisdiction",
                "purged"
              ],
              "type": "object"
            },
            "maxItems": 4,
            "type": "array"
          },
          "discovered": { "maximum": 1000000, "minimum": 0, "type": "integer" },
          "expected": { "maximum": 1000000, "minimum": 0, "type": "integer" },
          "purged": { "maximum": 1000000, "minimum": 0, "type": "integer" }
        },
        "required": [
          "acknowledged",
          "byJurisdiction",
          "discovered",
          "expected",
          "purged"
        ],
        "title": "OrganizationDeletionManifest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/organization-deletion.ts#OrganizationDeletionManifestSchema",
        "x-signalsitter-source-only-refinements": [
          "Per-jurisdiction acknowledged counts never exceed expected, and purged never exceeds acknowledged."
        ]
      },
      "OrganizationDeletionReceipt": {
        "additionalProperties": false,
        "properties": {
          "agreement": {
            "enum": ["ended", "ending", "none"],
            "type": "string"
          },
          "callbackEndpointsDisabled": {
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer"
          },
          "canceledAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "credentialsRevoked": {
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer"
          },
          "deletionId": {
            "pattern": "^orgdel_[0-9a-f]{32}$",
            "type": "string"
          },
          "lifecycleGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "manifest": {
            "additionalProperties": false,
            "properties": {
              "acknowledged": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "byJurisdiction": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "acknowledged": {
                      "maximum": 1000000,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "expected": {
                      "maximum": 1000000,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "jurisdiction": {
                      "enum": ["unrestricted", "eu", "us", "fedramp"],
                      "type": "string"
                    },
                    "purged": {
                      "maximum": 1000000,
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "acknowledged",
                    "expected",
                    "jurisdiction",
                    "purged"
                  ],
                  "type": "object"
                },
                "maxItems": 4,
                "type": "array"
              },
              "discovered": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "expected": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "purged": { "maximum": 1000000, "minimum": 0, "type": "integer" }
            },
            "required": [
              "acknowledged",
              "byJurisdiction",
              "discovered",
              "expected",
              "purged"
            ],
            "type": "object"
          },
          "mode": { "enum": ["immediate", "reversible"], "type": "string" },
          "purgeAfter": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "purgedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "reconcileUntil": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "replayed": { "type": "boolean" },
          "requestedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "state": {
            "enum": [
              "awaiting_purge",
              "canceled",
              "purged",
              "purging",
              "tombstoning"
            ],
            "type": "string"
          }
        },
        "required": [
          "callbackEndpointsDisabled",
          "credentialsRevoked",
          "deletionId",
          "lifecycleGeneration",
          "manifest",
          "mode",
          "purgeAfter",
          "reconcileUntil",
          "replayed",
          "requestedAt",
          "state"
        ],
        "title": "OrganizationDeletionReceipt",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/organization-deletion.ts#OrganizationDeletionReceiptSchema",
        "x-signalsitter-source-only-refinements": [
          "The purge cannot become due before the request that ordered it, and reconciliation stays open at least until the purge is due.",
          "A purged deletion records when the purge completed, and a canceled deletion records when it was canceled."
        ]
      },
      "OrganizationDeletionRequest": {
        "additionalProperties": false,
        "properties": {
          "confirmOrganizationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "mode": { "enum": ["immediate", "reversible"], "type": "string" }
        },
        "required": ["confirmOrganizationId", "mode"],
        "title": "OrganizationDeletionRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/organization-deletion.ts#OrganizationDeletionRequestSchema"
      },
      "OrganizationEntitlementFreshness": {
        "additionalProperties": false,
        "properties": {
          "assignmentVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "checkedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "leaseVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "lifecycleGeneration": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "mode": { "enum": ["fresh", "offline_grace"], "type": "string" },
          "offlineUntil": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "refreshAfter": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": [
          "leaseVersion",
          "assignmentVersion",
          "lifecycleGeneration",
          "checkedAt",
          "refreshAfter",
          "offlineUntil",
          "mode"
        ],
        "title": "OrganizationEntitlementFreshness",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/entitlements.ts#OrganizationEntitlementFreshnessSchema"
      },
      "OrganizationEntitlementLease": {
        "additionalProperties": false,
        "properties": {
          "access": {
            "additionalProperties": false,
            "properties": {
              "exportAllowed": { "type": "boolean" },
              "ingestAllowed": { "type": "boolean" },
              "mutationsAllowed": { "type": "boolean" },
              "readAllowed": { "type": "boolean" }
            },
            "required": [
              "ingestAllowed",
              "mutationsAllowed",
              "readAllowed",
              "exportAllowed"
            ],
            "type": "object"
          },
          "assignmentVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "checkedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "entitlements": {
            "additionalProperties": false,
            "properties": {
              "activeMonitors": {
                "maximum": 100000,
                "minimum": 1,
                "type": "integer"
              },
              "apiRequestsPerMinute": {
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              "callbackEndpoints": {
                "maximum": 50,
                "minimum": 0,
                "type": "integer"
              },
              "detectorFeatures": {
                "items": {
                  "enum": [
                    "heartbeat",
                    "explicit_rule",
                    "adaptive_baseline",
                    "persistent_shift",
                    "seasonal_baseline"
                  ],
                  "type": "string"
                },
                "maxItems": 5,
                "minItems": 1,
                "type": "array"
              },
              "fiveMinuteRetentionSeconds": {
                "default": 0,
                "maximum": 31536000,
                "minimum": 0,
                "type": "integer"
              },
              "hourlyRetentionSeconds": {
                "default": 0,
                "maximum": 31536000,
                "minimum": 0,
                "type": "integer"
              },
              "maximumMeasurementsPerObservation": {
                "maximum": 16,
                "minimum": 0,
                "type": "integer"
              },
              "maximumStoredObservations": {
                "maximum": 1000000,
                "minimum": 64,
                "type": "integer"
              },
              "mcpRequestsPerMinute": {
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              "minimumIntervalSeconds": {
                "maximum": 31536000,
                "minimum": 60,
                "type": "integer"
              },
              "observationRetentionSeconds": {
                "maximum": 31536000,
                "minimum": 3600,
                "type": "integer"
              }
            },
            "required": [
              "activeMonitors",
              "minimumIntervalSeconds",
              "maximumMeasurementsPerObservation",
              "maximumStoredObservations",
              "observationRetentionSeconds",
              "callbackEndpoints",
              "detectorFeatures",
              "apiRequestsPerMinute",
              "mcpRequestsPerMinute"
            ],
            "type": "object"
          },
          "graceEndsAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "leaseVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "lifecycleGeneration": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "offlineUntil": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "organizationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "plan": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "enum": ["free", "builder", "smart", "scale"],
                "type": "string"
              },
              "name": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              }
            },
            "required": ["id", "name", "version"],
            "type": "object"
          },
          "refreshAfter": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "schemaVersion": { "const": 1, "type": "number" },
          "serviceState": {
            "enum": [
              "active",
              "payment_grace",
              "abuse_suspended",
              "canceled",
              "deleting"
            ],
            "type": "string"
          }
        },
        "required": [
          "schemaVersion",
          "organizationId",
          "leaseVersion",
          "assignmentVersion",
          "lifecycleGeneration",
          "plan",
          "entitlements",
          "serviceState",
          "access",
          "checkedAt",
          "refreshAfter",
          "offlineUntil"
        ],
        "title": "OrganizationEntitlementLease",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/entitlements.ts#OrganizationEntitlementLeaseSchema",
        "x-signalsitter-source-only-refinements": [
          "Lease times are ordered within the maximum offline grace, access behavior matches service state, and payment grace has a bounded end."
        ]
      },
      "OrganizationEntitlementView": {
        "additionalProperties": false,
        "properties": {
          "abuse": {
            "additionalProperties": false,
            "properties": {
              "reactivationCount": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "state": {
                "enum": ["active", "warned", "suspended"],
                "type": "string"
              },
              "suspendedAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  { "type": "null" }
                ]
              },
              "warnedAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  { "type": "null" }
                ]
              }
            },
            "required": [
              "state",
              "warnedAt",
              "suspendedAt",
              "reactivationCount"
            ],
            "type": "object"
          },
          "access": {
            "additionalProperties": false,
            "properties": {
              "exportAllowed": { "type": "boolean" },
              "ingestAllowed": { "type": "boolean" },
              "mutationsAllowed": { "type": "boolean" },
              "readAllowed": { "type": "boolean" }
            },
            "required": [
              "ingestAllowed",
              "mutationsAllowed",
              "readAllowed",
              "exportAllowed"
            ],
            "type": "object"
          },
          "entitlements": {
            "additionalProperties": false,
            "properties": {
              "activeMonitors": {
                "maximum": 100000,
                "minimum": 1,
                "type": "integer"
              },
              "apiRequestsPerMinute": {
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              "callbackEndpoints": {
                "maximum": 50,
                "minimum": 0,
                "type": "integer"
              },
              "detectorFeatures": {
                "items": {
                  "enum": [
                    "heartbeat",
                    "explicit_rule",
                    "adaptive_baseline",
                    "persistent_shift",
                    "seasonal_baseline"
                  ],
                  "type": "string"
                },
                "maxItems": 5,
                "minItems": 1,
                "type": "array"
              },
              "fiveMinuteRetentionSeconds": {
                "default": 0,
                "maximum": 31536000,
                "minimum": 0,
                "type": "integer"
              },
              "hourlyRetentionSeconds": {
                "default": 0,
                "maximum": 31536000,
                "minimum": 0,
                "type": "integer"
              },
              "maximumMeasurementsPerObservation": {
                "maximum": 16,
                "minimum": 0,
                "type": "integer"
              },
              "maximumStoredObservations": {
                "maximum": 1000000,
                "minimum": 64,
                "type": "integer"
              },
              "mcpRequestsPerMinute": {
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              "minimumIntervalSeconds": {
                "maximum": 31536000,
                "minimum": 60,
                "type": "integer"
              },
              "observationRetentionSeconds": {
                "maximum": 31536000,
                "minimum": 3600,
                "type": "integer"
              }
            },
            "required": [
              "activeMonitors",
              "minimumIntervalSeconds",
              "maximumMeasurementsPerObservation",
              "maximumStoredObservations",
              "observationRetentionSeconds",
              "callbackEndpoints",
              "detectorFeatures",
              "apiRequestsPerMinute",
              "mcpRequestsPerMinute"
            ],
            "type": "object"
          },
          "freshness": {
            "additionalProperties": false,
            "properties": {
              "assignmentVersion": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "checkedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "leaseVersion": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "lifecycleGeneration": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "mode": { "enum": ["fresh", "offline_grace"], "type": "string" },
              "offlineUntil": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "refreshAfter": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              }
            },
            "required": [
              "leaseVersion",
              "assignmentVersion",
              "lifecycleGeneration",
              "checkedAt",
              "refreshAfter",
              "offlineUntil",
              "mode"
            ],
            "type": "object"
          },
          "graceEndsAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "organizationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "plan": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "enum": ["free", "builder", "smart", "scale"],
                "type": "string"
              },
              "name": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              }
            },
            "required": ["id", "name", "version"],
            "type": "object"
          },
          "serviceState": {
            "enum": [
              "active",
              "payment_grace",
              "abuse_suspended",
              "canceled",
              "deleting"
            ],
            "type": "string"
          },
          "usage": {
            "additionalProperties": false,
            "properties": {
              "activeMonitors": {
                "additionalProperties": false,
                "properties": {
                  "current": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "limit": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "overLimit": { "type": "boolean" },
                  "remaining": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": ["current", "limit", "remaining", "overLimit"],
                "type": "object"
              },
              "callbackEndpoints": {
                "additionalProperties": false,
                "properties": {
                  "current": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "limit": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "overLimit": { "type": "boolean" },
                  "remaining": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": ["current", "limit", "remaining", "overLimit"],
                "type": "object"
              }
            },
            "required": ["activeMonitors", "callbackEndpoints"],
            "type": "object"
          }
        },
        "required": [
          "organizationId",
          "plan",
          "entitlements",
          "serviceState",
          "access",
          "freshness",
          "usage"
        ],
        "title": "OrganizationEntitlementView",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/entitlements.ts#OrganizationEntitlementViewSchema",
        "x-signalsitter-source-only-refinements": [
          "Usage summaries preserve their remaining and over-limit invariants."
        ]
      },
      "OrganizationExportRecord": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "entitlements": {
                "additionalProperties": false,
                "properties": {
                  "activeMonitors": {
                    "maximum": 100000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "apiRequestsPerMinute": {
                    "maximum": 1000000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "callbackEndpoints": {
                    "maximum": 50,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "detectorFeatures": {
                    "items": {
                      "enum": [
                        "heartbeat",
                        "explicit_rule",
                        "adaptive_baseline",
                        "persistent_shift",
                        "seasonal_baseline"
                      ],
                      "type": "string"
                    },
                    "maxItems": 5,
                    "minItems": 1,
                    "type": "array"
                  },
                  "fiveMinuteRetentionSeconds": {
                    "default": 0,
                    "maximum": 31536000,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "hourlyRetentionSeconds": {
                    "default": 0,
                    "maximum": 31536000,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "maximumMeasurementsPerObservation": {
                    "maximum": 16,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "maximumStoredObservations": {
                    "maximum": 1000000,
                    "minimum": 64,
                    "type": "integer"
                  },
                  "mcpRequestsPerMinute": {
                    "maximum": 1000000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "minimumIntervalSeconds": {
                    "maximum": 31536000,
                    "minimum": 60,
                    "type": "integer"
                  },
                  "observationRetentionSeconds": {
                    "maximum": 31536000,
                    "minimum": 3600,
                    "type": "integer"
                  }
                },
                "required": [
                  "activeMonitors",
                  "minimumIntervalSeconds",
                  "maximumMeasurementsPerObservation",
                  "maximumStoredObservations",
                  "observationRetentionSeconds",
                  "callbackEndpoints",
                  "detectorFeatures",
                  "apiRequestsPerMinute",
                  "mcpRequestsPerMinute"
                ],
                "type": "object"
              },
              "exportedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "organizationId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "plan": {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "enum": ["free", "builder", "smart", "scale"],
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                    "type": "string"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  }
                },
                "required": ["id", "name", "version"],
                "type": "object"
              },
              "type": { "const": "organization", "type": "string" }
            },
            "required": [
              "exportedAt",
              "entitlements",
              "organizationId",
              "plan",
              "type"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "exportedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "monitor": {
                "additionalProperties": false,
                "properties": {
                  "configuration": {
                    "additionalProperties": false,
                    "properties": {
                      "cadenceProvenance": {
                        "additionalProperties": false,
                        "properties": {
                          "algorithmVersion": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "measuredIntervalMilliseconds": {
                            "exclusiveMinimum": 0,
                            "type": "number"
                          },
                          "observationIds": {
                            "items": {
                              "maxLength": 128,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                              "type": "string"
                            },
                            "maxItems": 5,
                            "minItems": 1,
                            "type": "array"
                          },
                          "qualifiedAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "algorithmVersion",
                          "measuredIntervalMilliseconds",
                          "observationIds",
                          "qualifiedAt"
                        ],
                        "type": "object"
                      },
                      "value": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "callback": {
                                "oneOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "disabled",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "organization_default",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "alias": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                        "type": "string"
                                      },
                                      "kind": {
                                        "const": "named",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind", "alias"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "inline",
                                        "type": "string"
                                      },
                                      "url": {
                                        "format": "uri",
                                        "maxLength": 512,
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind", "url"],
                                    "type": "object"
                                  }
                                ]
                              },
                              "heartbeatExpectation": {
                                "oneOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "graceSeconds": {
                                        "default": 60,
                                        "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                        "maximum": 604800,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "intervalSeconds": {
                                        "maximum": 31536000,
                                        "minimum": 60,
                                        "type": "integer"
                                      },
                                      "state": {
                                        "const": "enabled",
                                        "type": "string"
                                      },
                                      "version": {
                                        "const": 1,
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "intervalSeconds",
                                      "state",
                                      "version"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "state": {
                                        "const": "disabled",
                                        "type": "string"
                                      },
                                      "version": {
                                        "const": 1,
                                        "type": "number"
                                      }
                                    },
                                    "required": ["state", "version"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "graceSeconds": {
                                        "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                        "maximum": 604800,
                                        "minimum": 0,
                                        "type": "integer"
                                      },
                                      "state": {
                                        "const": "automatic",
                                        "type": "string"
                                      },
                                      "version": {
                                        "const": 1,
                                        "type": "number"
                                      }
                                    },
                                    "required": ["state", "version"],
                                    "type": "object"
                                  }
                                ]
                              },
                              "incidentPolicy": {
                                "additionalProperties": false,
                                "default": {
                                  "anomalySensitivity": 0.5,
                                  "notificationCooldownSeconds": 0,
                                  "recoveryConfirmationBeats": 1,
                                  "regimeChangeMode": "manual"
                                },
                                "properties": {
                                  "anomalySensitivity": {
                                    "default": 0.5,
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "notificationCooldownSeconds": {
                                    "default": 0,
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "recoveryConfirmationBeats": {
                                    "default": 1,
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  "regimeChangeMode": {
                                    "default": "manual",
                                    "enum": ["manual", "automatic"],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              "measurements": {
                                "additionalProperties": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "disabledRules": {
                                      "items": {
                                        "enum": [
                                          "minimum",
                                          "maximum",
                                          "zero",
                                          "nonzero",
                                          "absolute_delta",
                                          "percentage_delta",
                                          "ratio_minimum",
                                          "ratio_maximum"
                                        ],
                                        "type": "string"
                                      },
                                      "maxItems": 8,
                                      "type": "array"
                                    },
                                    "maximum": { "type": "number" },
                                    "maximumAbsoluteDelta": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "maximumPercentageDelta": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "metricType": {
                                      "default": "gauge",
                                      "enum": [
                                        "gauge",
                                        "count",
                                        "rate",
                                        "duration",
                                        "counter",
                                        "size"
                                      ],
                                      "type": "string"
                                    },
                                    "minimum": { "type": "number" },
                                    "missingPolicy": {
                                      "default": "skip",
                                      "enum": ["skip", "zero", "reject"],
                                      "type": "string"
                                    },
                                    "mode": {
                                      "enum": ["heartbeat", "shadow", "active"],
                                      "type": "string"
                                    },
                                    "ratio": {
                                      "additionalProperties": false,
                                      "properties": {
                                        "denominator": {
                                          "maxLength": 64,
                                          "minLength": 1,
                                          "pattern": "^[a-z][a-z0-9_]*$",
                                          "type": "string"
                                        },
                                        "maximum": { "type": "number" },
                                        "minimum": { "type": "number" }
                                      },
                                      "required": ["denominator"],
                                      "type": "object"
                                    },
                                    "ruleAction": {
                                      "additionalProperties": false,
                                      "properties": {
                                        "mode": {
                                          "enum": ["inactive", "active"],
                                          "type": "string"
                                        },
                                        "version": {
                                          "const": 1,
                                          "type": "number"
                                        }
                                      },
                                      "required": ["mode", "version"],
                                      "type": "object"
                                    },
                                    "rulePolicy": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "consecutiveObservations": {
                                              "default": 1,
                                              "maximum": 10,
                                              "minimum": 1,
                                              "type": "integer"
                                            },
                                            "severity": {
                                              "default": "critical",
                                              "enum": [
                                                "info",
                                                "warning",
                                                "critical"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "sustainedConsequence": {
                                              "default": "critical",
                                              "enum": [
                                                "none",
                                                "info",
                                                "warning",
                                                "critical"
                                              ],
                                              "type": "string"
                                            },
                                            "sustainedCriterion": {
                                              "default": {
                                                "kind": "observations",
                                                "observations": 1
                                              },
                                              "oneOf": [
                                                {
                                                  "additionalProperties": false,
                                                  "properties": {
                                                    "kind": {
                                                      "const": "observations",
                                                      "type": "string"
                                                    },
                                                    "observations": {
                                                      "maximum": 10,
                                                      "minimum": 1,
                                                      "type": "integer"
                                                    }
                                                  },
                                                  "required": [
                                                    "kind",
                                                    "observations"
                                                  ],
                                                  "type": "object"
                                                },
                                                {
                                                  "additionalProperties": false,
                                                  "properties": {
                                                    "kind": {
                                                      "const": "elapsed_time",
                                                      "type": "string"
                                                    },
                                                    "seconds": {
                                                      "maximum": 604800,
                                                      "minimum": 1,
                                                      "type": "integer"
                                                    }
                                                  },
                                                  "required": [
                                                    "kind",
                                                    "seconds"
                                                  ],
                                                  "type": "object"
                                                }
                                              ]
                                            },
                                            "transientConsequence": {
                                              "default": "none",
                                              "enum": [
                                                "none",
                                                "info",
                                                "warning",
                                                "critical"
                                              ],
                                              "type": "string"
                                            },
                                            "version": {
                                              "const": 1,
                                              "type": "number"
                                            }
                                          },
                                          "required": ["version"],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    "sensitivity": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "transform": {
                                      "default": "none",
                                      "enum": ["none", "log1p"],
                                      "type": "string"
                                    },
                                    "unit": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                      "type": "string"
                                    },
                                    "zeroExpectation": {
                                      "enum": ["zero", "nonzero"],
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "propertyNames": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "type": "object"
                              },
                              "name": {
                                "maxLength": 120,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "timeZone": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              }
                            },
                            "required": ["heartbeatExpectation"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "callback": {
                                "oneOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "disabled",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "organization_default",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "alias": {
                                        "maxLength": 64,
                                        "minLength": 1,
                                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                        "type": "string"
                                      },
                                      "kind": {
                                        "const": "named",
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind", "alias"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "inline",
                                        "type": "string"
                                      },
                                      "url": {
                                        "format": "uri",
                                        "maxLength": 512,
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind", "url"],
                                    "type": "object"
                                  }
                                ]
                              },
                              "graceSeconds": {
                                "default": 60,
                                "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                                "maximum": 604800,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "incidentPolicy": {
                                "additionalProperties": false,
                                "default": {
                                  "anomalySensitivity": 0.5,
                                  "notificationCooldownSeconds": 0,
                                  "recoveryConfirmationBeats": 1,
                                  "regimeChangeMode": "manual"
                                },
                                "properties": {
                                  "anomalySensitivity": {
                                    "default": 0.5,
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "notificationCooldownSeconds": {
                                    "default": 0,
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "recoveryConfirmationBeats": {
                                    "default": 1,
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  "regimeChangeMode": {
                                    "default": "manual",
                                    "enum": ["manual", "automatic"],
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              },
                              "intervalSeconds": {
                                "maximum": 31536000,
                                "minimum": 60,
                                "type": "integer"
                              },
                              "measurements": {
                                "additionalProperties": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "disabledRules": {
                                      "items": {
                                        "enum": [
                                          "minimum",
                                          "maximum",
                                          "zero",
                                          "nonzero",
                                          "absolute_delta",
                                          "percentage_delta",
                                          "ratio_minimum",
                                          "ratio_maximum"
                                        ],
                                        "type": "string"
                                      },
                                      "maxItems": 8,
                                      "type": "array"
                                    },
                                    "maximum": { "type": "number" },
                                    "maximumAbsoluteDelta": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "maximumPercentageDelta": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "metricType": {
                                      "default": "gauge",
                                      "enum": [
                                        "gauge",
                                        "count",
                                        "rate",
                                        "duration",
                                        "counter",
                                        "size"
                                      ],
                                      "type": "string"
                                    },
                                    "minimum": { "type": "number" },
                                    "missingPolicy": {
                                      "default": "skip",
                                      "enum": ["skip", "zero", "reject"],
                                      "type": "string"
                                    },
                                    "mode": {
                                      "enum": ["heartbeat", "shadow", "active"],
                                      "type": "string"
                                    },
                                    "ratio": {
                                      "additionalProperties": false,
                                      "properties": {
                                        "denominator": {
                                          "maxLength": 64,
                                          "minLength": 1,
                                          "pattern": "^[a-z][a-z0-9_]*$",
                                          "type": "string"
                                        },
                                        "maximum": { "type": "number" },
                                        "minimum": { "type": "number" }
                                      },
                                      "required": ["denominator"],
                                      "type": "object"
                                    },
                                    "ruleAction": {
                                      "additionalProperties": false,
                                      "properties": {
                                        "mode": {
                                          "enum": ["inactive", "active"],
                                          "type": "string"
                                        },
                                        "version": {
                                          "const": 1,
                                          "type": "number"
                                        }
                                      },
                                      "required": ["mode", "version"],
                                      "type": "object"
                                    },
                                    "rulePolicy": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "consecutiveObservations": {
                                              "default": 1,
                                              "maximum": 10,
                                              "minimum": 1,
                                              "type": "integer"
                                            },
                                            "severity": {
                                              "default": "critical",
                                              "enum": [
                                                "info",
                                                "warning",
                                                "critical"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "sustainedConsequence": {
                                              "default": "critical",
                                              "enum": [
                                                "none",
                                                "info",
                                                "warning",
                                                "critical"
                                              ],
                                              "type": "string"
                                            },
                                            "sustainedCriterion": {
                                              "default": {
                                                "kind": "observations",
                                                "observations": 1
                                              },
                                              "oneOf": [
                                                {
                                                  "additionalProperties": false,
                                                  "properties": {
                                                    "kind": {
                                                      "const": "observations",
                                                      "type": "string"
                                                    },
                                                    "observations": {
                                                      "maximum": 10,
                                                      "minimum": 1,
                                                      "type": "integer"
                                                    }
                                                  },
                                                  "required": [
                                                    "kind",
                                                    "observations"
                                                  ],
                                                  "type": "object"
                                                },
                                                {
                                                  "additionalProperties": false,
                                                  "properties": {
                                                    "kind": {
                                                      "const": "elapsed_time",
                                                      "type": "string"
                                                    },
                                                    "seconds": {
                                                      "maximum": 604800,
                                                      "minimum": 1,
                                                      "type": "integer"
                                                    }
                                                  },
                                                  "required": [
                                                    "kind",
                                                    "seconds"
                                                  ],
                                                  "type": "object"
                                                }
                                              ]
                                            },
                                            "transientConsequence": {
                                              "default": "none",
                                              "enum": [
                                                "none",
                                                "info",
                                                "warning",
                                                "critical"
                                              ],
                                              "type": "string"
                                            },
                                            "version": {
                                              "const": 1,
                                              "type": "number"
                                            }
                                          },
                                          "required": ["version"],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    "sensitivity": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "transform": {
                                      "default": "none",
                                      "enum": ["none", "log1p"],
                                      "type": "string"
                                    },
                                    "unit": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                      "type": "string"
                                    },
                                    "zeroExpectation": {
                                      "enum": ["zero", "nonzero"],
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                "propertyNames": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "type": "object"
                              },
                              "name": {
                                "maxLength": 120,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "timeZone": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              }
                            },
                            "required": ["intervalSeconds"],
                            "type": "object"
                          }
                        ]
                      },
                      "version": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": ["value", "version"],
                    "type": "object"
                  },
                  "enforcement": {
                    "additionalProperties": false,
                    "properties": {
                      "entitlementSuspended": { "type": "boolean" },
                      "intervalSeconds": {
                        "maximum": 31536000,
                        "minimum": 60,
                        "type": "integer"
                      }
                    },
                    "required": ["entitlementSuspended"],
                    "type": "object"
                  },
                  "expectedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "heartbeatLearning": {
                    "additionalProperties": false,
                    "properties": {
                      "measuredIntervalSeconds": {
                        "exclusiveMinimum": 0,
                        "type": "number"
                      },
                      "requiredSamples": {
                        "exclusiveMinimum": 0,
                        "maximum": 64,
                        "type": "integer"
                      },
                      "samples": {
                        "maximum": 64,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "status": {
                        "anyOf": [
                          {
                            "enum": [
                              "collecting",
                              "inconsistent",
                              "unsupported_cadence"
                            ],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["requiredSamples", "samples", "status"],
                    "type": "object"
                  },
                  "initializedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "latestObservation": {
                    "additionalProperties": false,
                    "properties": {
                      "acceptedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "baselineEvaluations": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "engineVersion": { "const": 2, "type": "number" },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "normalizationStatus": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "notActionableReason": {
                              "enum": ["baseline_below_minimum_level"],
                              "type": "string"
                            },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "numeric_overflow",
                                "heartbeat_expectation_disabled"
                              ],
                              "type": "string"
                            },
                            "originalExpectedValue": { "type": "number" },
                            "originalLowerBound": { "type": "number" },
                            "originalObservedValue": { "type": "number" },
                            "originalScaleBasis": {
                              "enum": ["measurement", "counter_delta"],
                              "type": "string"
                            },
                            "originalUpperBound": { "type": "number" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode"],
                              "type": "object"
                            },
                            "readiness": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "baselineSamples": {
                                      "maximum": 15,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "requiredBaselineSamples": {
                                      "const": 16,
                                      "type": "number"
                                    },
                                    "requiredResidualSamples": {
                                      "const": 32,
                                      "type": "number"
                                    },
                                    "residualSamples": {
                                      "const": 0,
                                      "type": "number"
                                    },
                                    "state": {
                                      "const": "warming_baseline",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "requiredBaselineSamples",
                                    "requiredResidualSamples",
                                    "baselineSamples",
                                    "residualSamples",
                                    "state"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "baselineSamples": {
                                      "maximum": 128,
                                      "minimum": 16,
                                      "type": "integer"
                                    },
                                    "requiredBaselineSamples": {
                                      "const": 16,
                                      "type": "number"
                                    },
                                    "requiredResidualSamples": {
                                      "const": 32,
                                      "type": "number"
                                    },
                                    "residualSamples": {
                                      "maximum": 31,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "state": {
                                      "const": "warming_residuals",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "requiredBaselineSamples",
                                    "requiredResidualSamples",
                                    "baselineSamples",
                                    "residualSamples",
                                    "state"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "baselineSamples": {
                                      "maximum": 128,
                                      "minimum": 16,
                                      "type": "integer"
                                    },
                                    "requiredBaselineSamples": {
                                      "const": 16,
                                      "type": "number"
                                    },
                                    "requiredResidualSamples": {
                                      "const": 32,
                                      "type": "number"
                                    },
                                    "residualSamples": {
                                      "maximum": 128,
                                      "minimum": 32,
                                      "type": "integer"
                                    },
                                    "state": {
                                      "const": "ready",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "requiredBaselineSamples",
                                    "requiredResidualSamples",
                                    "baselineSamples",
                                    "residualSamples",
                                    "state"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "residualModel": {
                              "enum": ["robust_z", "count"],
                              "type": "string"
                            },
                            "residualModelReadiness": {
                              "additionalProperties": false,
                              "properties": {
                                "candidate": {
                                  "enum": ["robust_z", "count"],
                                  "type": "string"
                                },
                                "holdoutSamples": {
                                  "maximum": 32,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "meanLogLikelihoodGain": { "type": "number" },
                                "minimumMeanLogLikelihoodGain": {
                                  "const": 0.1,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 32,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "ineligible",
                                    "warming_holdout",
                                    "insufficient_improvement",
                                    "validated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "candidate",
                                "holdoutSamples",
                                "minimumMeanLogLikelihoodGain",
                                "requiredHoldoutSamples",
                                "state"
                              ],
                              "type": "object"
                            },
                            "residualModelSelectionReason": {
                              "enum": [
                                "count_improved",
                                "distribution_ineligible",
                                "holdout_warming",
                                "insufficient_improvement"
                              ],
                              "type": "string"
                            },
                            "residualScore": { "minimum": 0, "type": "number" },
                            "sensitivity": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.01,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "low",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.99,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.03,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "medium",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.97,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.05,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "high",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.95,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "status": {
                              "enum": [
                                "warming",
                                "normal",
                                "suspected_anomaly",
                                "not_evaluated"
                              ],
                              "type": "string"
                            },
                            "threshold": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "transform": {
                              "enum": ["none", "log1p"],
                              "type": "string"
                            },
                            "transformedExpectedValue": { "type": "number" },
                            "transformedLowerBound": { "type": "number" },
                            "transformedMad": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "transformedObservedValue": { "type": "number" },
                            "transformedScale": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "transformedUpperBound": { "type": "number" },
                            "unit": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "updateDisposition": {
                              "enum": ["full", "winsorized", "skipped"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "configurationVersion",
                            "engineVersion",
                            "explanation",
                            "measurementKey",
                            "normalizationStatus",
                            "normalizationVersion",
                            "originalScaleBasis",
                            "policyInput",
                            "readiness",
                            "residualModel",
                            "residualModelReadiness",
                            "residualModelSelectionReason",
                            "sensitivity",
                            "status",
                            "transform",
                            "updateDisposition"
                          ],
                          "type": "object"
                        },
                        "maxItems": 16,
                        "type": "array"
                      },
                      "configurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "incidentPolicyDecision": {
                        "additionalProperties": false,
                        "properties": {
                          "configurationVersion": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "confirmation": {
                            "additionalProperties": false,
                            "properties": {
                              "confirmed": { "type": "boolean" },
                              "observedInWindow": {
                                "maximum": 6,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "required": {
                                "maximum": 6,
                                "minimum": 1,
                                "type": "integer"
                              },
                              "window": {
                                "maximum": 6,
                                "minimum": 1,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "confirmed",
                              "observedInWindow",
                              "required",
                              "window"
                            ],
                            "type": "object"
                          },
                          "contributions": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "breach": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "consequence": {
                                      "enum": [
                                        "none",
                                        "info",
                                        "warning",
                                        "critical"
                                      ],
                                      "type": "string"
                                    },
                                    "justBecameSustained": {
                                      "type": "boolean"
                                    },
                                    "phase": {
                                      "enum": [
                                        "clear",
                                        "transient",
                                        "sustained"
                                      ],
                                      "type": "string"
                                    },
                                    "progress": {
                                      "additionalProperties": false,
                                      "properties": {
                                        "elapsedSeconds": {
                                          "maximum": 604800,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "qualifyingObservations": {
                                          "maximum": 10,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "remaining": {
                                          "maximum": 604800,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "startedAt": {
                                          "format": "date-time",
                                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "elapsedSeconds",
                                        "qualifyingObservations",
                                        "remaining"
                                      ],
                                      "type": "object"
                                    },
                                    "sustainedConsequence": {
                                      "enum": [
                                        "none",
                                        "info",
                                        "warning",
                                        "critical"
                                      ],
                                      "type": "string"
                                    },
                                    "sustainedCriterion": {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "kind": {
                                              "const": "observations",
                                              "type": "string"
                                            },
                                            "observations": {
                                              "maximum": 10,
                                              "minimum": 1,
                                              "type": "integer"
                                            }
                                          },
                                          "required": ["kind", "observations"],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "kind": {
                                              "const": "elapsed_time",
                                              "type": "string"
                                            },
                                            "seconds": {
                                              "maximum": 604800,
                                              "minimum": 1,
                                              "type": "integer"
                                            }
                                          },
                                          "required": ["kind", "seconds"],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    "transientConsequence": {
                                      "enum": [
                                        "none",
                                        "info",
                                        "warning",
                                        "critical"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "consequence",
                                    "justBecameSustained",
                                    "phase",
                                    "progress",
                                    "sustainedConsequence",
                                    "sustainedCriterion",
                                    "transientConsequence"
                                  ],
                                  "type": "object"
                                },
                                "detector": {
                                  "enum": [
                                    "explicit_rule",
                                    "adaptive_baseline",
                                    "seasonal_baseline",
                                    "persistent_shift"
                                  ],
                                  "type": "string"
                                },
                                "durationSamples": {
                                  "maximum": 1000000,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "measurementKey": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "residualScore": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "ruleId": {
                                  "maxLength": 160,
                                  "minLength": 3,
                                  "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                                  "type": "string"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                },
                                "trigger": {
                                  "enum": [
                                    "explicit_rule",
                                    "extreme_deviation",
                                    "moderate_confirmation",
                                    "persistent_shift"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "detector",
                                "measurementKey",
                                "severity"
                              ],
                              "type": "object"
                            },
                            "maxItems": 80,
                            "type": "array"
                          },
                          "engineVersion": { "const": 1, "type": "number" },
                          "evaluation": {
                            "additionalProperties": false,
                            "properties": {
                              "evaluatedMeasurementKeys": {
                                "items": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "maxItems": 32,
                                "type": "array"
                              },
                              "policyActive": { "type": "boolean" },
                              "publishedMeasurementKeys": {
                                "items": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "maxItems": 32,
                                "type": "array"
                              }
                            },
                            "required": [
                              "evaluatedMeasurementKeys",
                              "policyActive",
                              "publishedMeasurementKeys"
                            ],
                            "type": "object"
                          },
                          "explanation": {
                            "maxLength": 512,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "notifiable": { "type": "boolean" },
                          "outcome": {
                            "enum": [
                              "none",
                              "recorded",
                              "confirming",
                              "incident_opened",
                              "incident_sustained",
                              "recovery_pending",
                              "recovery_confirmed"
                            ],
                            "type": "string"
                          },
                          "profile": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "confirmationRequired": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "confirmationWindow": {
                                    "const": 6,
                                    "type": "number"
                                  },
                                  "extremeResidualMultiple": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "name": { "const": "low", "type": "string" },
                                  "recoveryConfirmationObservations": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "regimeChangeObservations": {
                                    "const": 96,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "confirmationRequired",
                                  "confirmationWindow",
                                  "extremeResidualMultiple",
                                  "name",
                                  "recoveryConfirmationObservations",
                                  "regimeChangeObservations"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "confirmationRequired": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "confirmationWindow": {
                                    "const": 5,
                                    "type": "number"
                                  },
                                  "extremeResidualMultiple": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "name": {
                                    "const": "medium",
                                    "type": "string"
                                  },
                                  "recoveryConfirmationObservations": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "regimeChangeObservations": {
                                    "const": 48,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "confirmationRequired",
                                  "confirmationWindow",
                                  "extremeResidualMultiple",
                                  "name",
                                  "recoveryConfirmationObservations",
                                  "regimeChangeObservations"
                                ],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "configured": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  "confirmationRequired": {
                                    "const": 2,
                                    "type": "number"
                                  },
                                  "confirmationWindow": {
                                    "const": 4,
                                    "type": "number"
                                  },
                                  "extremeResidualMultiple": {
                                    "const": 2.5,
                                    "type": "number"
                                  },
                                  "name": { "const": "high", "type": "string" },
                                  "recoveryConfirmationObservations": {
                                    "const": 3,
                                    "type": "number"
                                  },
                                  "regimeChangeObservations": {
                                    "const": 24,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "configured",
                                  "confirmationRequired",
                                  "confirmationWindow",
                                  "extremeResidualMultiple",
                                  "name",
                                  "recoveryConfirmationObservations",
                                  "regimeChangeObservations"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "recovery": {
                            "additionalProperties": false,
                            "properties": {
                              "confirmedObservations": {
                                "maximum": 10,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "requiredObservations": {
                                "maximum": 10,
                                "minimum": 1,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "confirmedObservations",
                              "requiredObservations"
                            ],
                            "type": "object"
                          },
                          "regimeChange": {
                            "additionalProperties": false,
                            "properties": {
                              "measurementKeys": {
                                "items": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "maxItems": 16,
                                "type": "array"
                              },
                              "mode": {
                                "enum": ["manual", "automatic"],
                                "type": "string"
                              },
                              "requiredObservations": {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              "state": {
                                "enum": [
                                  "none",
                                  "watching",
                                  "available",
                                  "applied"
                                ],
                                "type": "string"
                              },
                              "sustainedObservations": {
                                "maximum": 1000000,
                                "minimum": 0,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "measurementKeys",
                              "mode",
                              "requiredObservations",
                              "state",
                              "sustainedObservations"
                            ],
                            "type": "object"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          },
                          "suppression": {
                            "enum": [
                              "detector_unconfirmed",
                              "detector_warming",
                              "detector_shadow_mode",
                              "open_incident"
                            ],
                            "type": "string"
                          },
                          "triggers": {
                            "items": {
                              "enum": [
                                "explicit_rule",
                                "extreme_deviation",
                                "moderate_confirmation",
                                "persistent_shift"
                              ],
                              "type": "string"
                            },
                            "maxItems": 4,
                            "type": "array"
                          }
                        },
                        "required": [
                          "configurationVersion",
                          "confirmation",
                          "contributions",
                          "engineVersion",
                          "explanation",
                          "notifiable",
                          "outcome",
                          "profile",
                          "recovery",
                          "regimeChange",
                          "severity",
                          "triggers"
                        ],
                        "type": "object"
                      },
                      "normalizedMeasurements": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "definition": {
                              "additionalProperties": false,
                              "properties": {
                                "disabledRules": {
                                  "items": {
                                    "enum": [
                                      "minimum",
                                      "maximum",
                                      "zero",
                                      "nonzero",
                                      "absolute_delta",
                                      "percentage_delta",
                                      "ratio_minimum",
                                      "ratio_maximum"
                                    ],
                                    "type": "string"
                                  },
                                  "maxItems": 8,
                                  "type": "array"
                                },
                                "maximum": { "type": "number" },
                                "maximumAbsoluteDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "maximumPercentageDelta": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "metricType": {
                                  "default": "gauge",
                                  "enum": [
                                    "gauge",
                                    "count",
                                    "rate",
                                    "duration",
                                    "counter",
                                    "size"
                                  ],
                                  "type": "string"
                                },
                                "minimum": { "type": "number" },
                                "missingPolicy": {
                                  "default": "skip",
                                  "enum": ["skip", "zero", "reject"],
                                  "type": "string"
                                },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                },
                                "ratio": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "denominator": {
                                      "maxLength": 64,
                                      "minLength": 1,
                                      "pattern": "^[a-z][a-z0-9_]*$",
                                      "type": "string"
                                    },
                                    "maximum": { "type": "number" },
                                    "minimum": { "type": "number" }
                                  },
                                  "required": ["denominator"],
                                  "type": "object"
                                },
                                "ruleAction": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "mode": {
                                      "enum": ["inactive", "active"],
                                      "type": "string"
                                    },
                                    "version": { "const": 1, "type": "number" }
                                  },
                                  "required": ["mode", "version"],
                                  "type": "object"
                                },
                                "rulePolicy": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "consecutiveObservations": {
                                          "default": 1,
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        },
                                        "severity": {
                                          "default": "critical",
                                          "enum": [
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "sustainedConsequence": {
                                          "default": "critical",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "sustainedCriterion": {
                                          "default": {
                                            "kind": "observations",
                                            "observations": 1
                                          },
                                          "oneOf": [
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "observations",
                                                  "type": "string"
                                                },
                                                "observations": {
                                                  "maximum": 10,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": [
                                                "kind",
                                                "observations"
                                              ],
                                              "type": "object"
                                            },
                                            {
                                              "additionalProperties": false,
                                              "properties": {
                                                "kind": {
                                                  "const": "elapsed_time",
                                                  "type": "string"
                                                },
                                                "seconds": {
                                                  "maximum": 604800,
                                                  "minimum": 1,
                                                  "type": "integer"
                                                }
                                              },
                                              "required": ["kind", "seconds"],
                                              "type": "object"
                                            }
                                          ]
                                        },
                                        "transientConsequence": {
                                          "default": "none",
                                          "enum": [
                                            "none",
                                            "info",
                                            "warning",
                                            "critical"
                                          ],
                                          "type": "string"
                                        },
                                        "version": {
                                          "const": 1,
                                          "type": "number"
                                        }
                                      },
                                      "required": ["version"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "sensitivity": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transform": {
                                  "default": "none",
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "zeroExpectation": {
                                  "enum": ["zero", "nonzero"],
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "definitionVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "key": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "normalizedValue": { "type": "number" },
                            "originalValue": { "type": "number" },
                            "previousOriginalValue": { "type": "number" },
                            "status": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "definition",
                            "definitionVersion",
                            "key",
                            "normalizationVersion",
                            "status"
                          ],
                          "type": "object"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "observedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "omittedDetail": {
                        "items": {
                          "anyOf": [
                            {
                              "enum": [
                                "normalized_measurements",
                                "adaptive_baseline",
                                "explicit_rule",
                                "incident_policy",
                                "persistent_shift",
                                "seasonal_baseline"
                              ],
                              "type": "string"
                            },
                            {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            }
                          ]
                        },
                        "maxItems": 16,
                        "minItems": 1,
                        "type": "array"
                      },
                      "payload": {
                        "oneOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": { "const": "empty", "type": "string" }
                            },
                            "required": ["kind"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": { "const": "number", "type": "string" },
                              "value": { "type": "number" }
                            },
                            "required": ["kind", "value"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": {
                                "const": "measurements",
                                "type": "string"
                              },
                              "values": {
                                "additionalProperties": {
                                  "anyOf": [
                                    { "type": "number" },
                                    {
                                      "anyOf": [
                                        { "type": "boolean" },
                                        { "type": "null" },
                                        {
                                          "maxLength": 256,
                                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                          "type": "string"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                "propertyNames": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "type": "object"
                              }
                            },
                            "required": ["kind", "values"],
                            "type": "object"
                          }
                        ]
                      },
                      "provenance": {
                        "anyOf": [
                          {
                            "enum": ["live", "historical_import"],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      },
                      "requestId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                        "type": "string"
                      },
                      "ruleEvaluations": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "breach": {
                              "additionalProperties": false,
                              "properties": {
                                "consequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "justBecameSustained": { "type": "boolean" },
                                "phase": {
                                  "enum": ["clear", "transient", "sustained"],
                                  "type": "string"
                                },
                                "progress": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "elapsedSeconds": {
                                      "maximum": 604800,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "qualifyingObservations": {
                                      "maximum": 10,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "remaining": {
                                      "maximum": 604800,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "startedAt": {
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "elapsedSeconds",
                                    "qualifyingObservations",
                                    "remaining"
                                  ],
                                  "type": "object"
                                },
                                "sustainedConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "sustainedCriterion": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "observations",
                                          "type": "string"
                                        },
                                        "observations": {
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "observations"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "elapsed_time",
                                          "type": "string"
                                        },
                                        "seconds": {
                                          "maximum": 604800,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "seconds"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "transientConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "consequence",
                                "justBecameSustained",
                                "phase",
                                "progress",
                                "sustainedConsequence",
                                "sustainedCriterion",
                                "transientConsequence"
                              ],
                              "type": "object"
                            },
                            "comparison": {
                              "enum": [
                                "at_least",
                                "at_most",
                                "equal",
                                "not_equal"
                              ],
                              "type": "string"
                            },
                            "computedValue": { "type": "number" },
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "confirmation": {
                              "additionalProperties": false,
                              "properties": {
                                "confirmed": { "type": "boolean" },
                                "consecutiveViolations": {
                                  "maximum": 10,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "required": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": [
                                "confirmed",
                                "consecutiveViolations",
                                "required"
                              ],
                              "type": "object"
                            },
                            "denominatorMeasurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "engineVersion": {
                              "anyOf": [
                                { "const": 1, "type": "number" },
                                { "const": 2, "type": "number" }
                              ]
                            },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "kind": {
                              "enum": [
                                "minimum",
                                "maximum",
                                "zero",
                                "nonzero",
                                "absolute_delta",
                                "percentage_delta",
                                "ratio_minimum",
                                "ratio_maximum"
                              ],
                              "type": "string"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "normalizationStatus": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "previous_value_missing",
                                "previous_value_zero",
                                "ratio_denominator_missing",
                                "ratio_denominator_zero",
                                "numeric_overflow"
                              ],
                              "type": "string"
                            },
                            "observedValue": { "type": "number" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                },
                                "severity": {
                                  "enum": ["info", "warning", "critical"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode", "severity"],
                              "type": "object"
                            },
                            "referenceValue": { "type": "number" },
                            "ruleId": {
                              "maxLength": 160,
                              "minLength": 3,
                              "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                              "type": "string"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            },
                            "status": {
                              "enum": ["passed", "violated", "not_evaluated"],
                              "type": "string"
                            },
                            "threshold": { "type": "number" },
                            "transform": {
                              "enum": ["none", "log1p"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "comparison",
                            "configurationVersion",
                            "confirmation",
                            "engineVersion",
                            "explanation",
                            "kind",
                            "measurementKey",
                            "normalizationStatus",
                            "policyInput",
                            "ruleId",
                            "severity",
                            "status",
                            "threshold",
                            "transform"
                          ],
                          "type": "object"
                        },
                        "maxItems": 32,
                        "type": "array"
                      },
                      "seasonalEvaluations": {
                        "items": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configurationVersion": {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "dailyBucketSamples": {
                                  "maximum": 24,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "dailyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "engineVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "explanation": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "localBucket": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "dailyHour": {
                                      "maximum": 23,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "offsetMinutes": {
                                      "maximum": 1440,
                                      "minimum": -1440,
                                      "type": "integer"
                                    },
                                    "weeklyHour": {
                                      "maximum": 167,
                                      "minimum": 0,
                                      "type": "integer"
                                    }
                                  },
                                  "required": [
                                    "dailyHour",
                                    "offsetMinutes",
                                    "weeklyHour"
                                  ],
                                  "type": "object"
                                },
                                "measurementKey": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "neighborToleranceHours": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "normalizationStatus": {
                                  "enum": [
                                    "value",
                                    "counter_baseline",
                                    "counter_reset",
                                    "missing_skipped",
                                    "missing_zero"
                                  ],
                                  "type": "string"
                                },
                                "normalizationVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "notEvaluatedReason": {
                                  "enum": [
                                    "measurement_missing",
                                    "counter_baseline",
                                    "counter_reset",
                                    "numeric_overflow",
                                    "heartbeat_expectation_disabled"
                                  ],
                                  "type": "string"
                                },
                                "originalExpectedValue": { "type": "number" },
                                "originalLowerBound": { "type": "number" },
                                "originalObservedValue": { "type": "number" },
                                "originalScaleBasis": {
                                  "enum": ["measurement", "counter_delta"],
                                  "type": "string"
                                },
                                "originalUpperBound": { "type": "number" },
                                "policyInput": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "actionable": { "type": "boolean" },
                                    "mode": {
                                      "enum": ["heartbeat", "shadow", "active"],
                                      "type": "string"
                                    }
                                  },
                                  "required": ["actionable", "mode"],
                                  "type": "object"
                                },
                                "residualScore": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "selectedModel": {
                                  "const": "global",
                                  "type": "string"
                                },
                                "selectionReason": {
                                  "enum": [
                                    "global_baseline_warming",
                                    "insufficient_improvement",
                                    "not_evaluated",
                                    "seasonality_warming",
                                    "sparse_bucket"
                                  ],
                                  "type": "string"
                                },
                                "sensitivity": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.01,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "low",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.99,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.03,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "medium",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.97,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.05,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "high",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.95,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "status": {
                                  "enum": [
                                    "warming",
                                    "normal",
                                    "suspected_anomaly",
                                    "not_evaluated"
                                  ],
                                  "type": "string"
                                },
                                "threshold": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "timeZone": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "transform": {
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "transformedExpectedValue": {
                                  "type": "number"
                                },
                                "transformedLowerBound": { "type": "number" },
                                "transformedMad": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transformedObservedValue": {
                                  "type": "number"
                                },
                                "transformedScale": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "transformedUpperBound": { "type": "number" },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "updateDisposition": {
                                  "enum": ["full", "skipped"],
                                  "type": "string"
                                },
                                "weeklyBucketSamples": {
                                  "maximum": 12,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "weeklyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "configurationVersion",
                                "dailyBucketSamples",
                                "dailyReadiness",
                                "engineVersion",
                                "explanation",
                                "localBucket",
                                "measurementKey",
                                "neighborToleranceHours",
                                "normalizationStatus",
                                "normalizationVersion",
                                "originalScaleBasis",
                                "policyInput",
                                "sensitivity",
                                "status",
                                "timeZone",
                                "transform",
                                "updateDisposition",
                                "weeklyBucketSamples",
                                "weeklyReadiness",
                                "selectedModel",
                                "selectionReason"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configurationVersion": {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "dailyBucketSamples": {
                                  "maximum": 24,
                                  "minimum": 3,
                                  "type": "integer"
                                },
                                "dailyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 4,
                                          "type": "integer"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": 0.1,
                                          "type": "number"
                                        },
                                        "state": {
                                          "const": "validated",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "candidateWinsorizedMeanAbsoluteError",
                                        "cyclesObserved",
                                        "globalWinsorizedMeanAbsoluteError",
                                        "holdoutSamples",
                                        "relativeImprovement",
                                        "state"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "engineVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "explanation": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "localBucket": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "dailyHour": {
                                      "maximum": 23,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "offsetMinutes": {
                                      "maximum": 1440,
                                      "minimum": -1440,
                                      "type": "integer"
                                    },
                                    "weeklyHour": {
                                      "maximum": 167,
                                      "minimum": 0,
                                      "type": "integer"
                                    }
                                  },
                                  "required": [
                                    "dailyHour",
                                    "offsetMinutes",
                                    "weeklyHour"
                                  ],
                                  "type": "object"
                                },
                                "measurementKey": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "neighborToleranceHours": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "normalizationStatus": {
                                  "enum": [
                                    "value",
                                    "counter_baseline",
                                    "counter_reset",
                                    "missing_skipped",
                                    "missing_zero"
                                  ],
                                  "type": "string"
                                },
                                "normalizationVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "notEvaluatedReason": {
                                  "enum": [
                                    "measurement_missing",
                                    "counter_baseline",
                                    "counter_reset",
                                    "numeric_overflow",
                                    "heartbeat_expectation_disabled"
                                  ],
                                  "type": "string"
                                },
                                "originalExpectedValue": { "type": "number" },
                                "originalLowerBound": { "type": "number" },
                                "originalObservedValue": { "type": "number" },
                                "originalScaleBasis": {
                                  "enum": ["measurement", "counter_delta"],
                                  "type": "string"
                                },
                                "originalUpperBound": { "type": "number" },
                                "policyInput": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "actionable": { "type": "boolean" },
                                    "mode": {
                                      "enum": ["heartbeat", "shadow", "active"],
                                      "type": "string"
                                    }
                                  },
                                  "required": ["actionable", "mode"],
                                  "type": "object"
                                },
                                "residualScore": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "selectedModel": {
                                  "const": "daily",
                                  "type": "string"
                                },
                                "selectionReason": {
                                  "const": "daily_improved",
                                  "type": "string"
                                },
                                "sensitivity": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.01,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "low",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.99,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.03,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "medium",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.97,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.05,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "high",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.95,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "status": {
                                  "enum": [
                                    "warming",
                                    "normal",
                                    "suspected_anomaly",
                                    "not_evaluated"
                                  ],
                                  "type": "string"
                                },
                                "threshold": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "timeZone": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "transform": {
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "transformedExpectedValue": {
                                  "type": "number"
                                },
                                "transformedLowerBound": { "type": "number" },
                                "transformedMad": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transformedObservedValue": {
                                  "type": "number"
                                },
                                "transformedScale": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "transformedUpperBound": { "type": "number" },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "updateDisposition": {
                                  "enum": ["full", "skipped"],
                                  "type": "string"
                                },
                                "weeklyBucketSamples": {
                                  "maximum": 12,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "weeklyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "configurationVersion",
                                "dailyBucketSamples",
                                "dailyReadiness",
                                "engineVersion",
                                "explanation",
                                "localBucket",
                                "measurementKey",
                                "neighborToleranceHours",
                                "normalizationStatus",
                                "normalizationVersion",
                                "originalScaleBasis",
                                "policyInput",
                                "sensitivity",
                                "status",
                                "timeZone",
                                "transform",
                                "updateDisposition",
                                "weeklyBucketSamples",
                                "weeklyReadiness",
                                "selectedModel",
                                "selectionReason"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configurationVersion": {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "dailyBucketSamples": {
                                  "maximum": 24,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "dailyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "engineVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "explanation": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "localBucket": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "dailyHour": {
                                      "maximum": 23,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "offsetMinutes": {
                                      "maximum": 1440,
                                      "minimum": -1440,
                                      "type": "integer"
                                    },
                                    "weeklyHour": {
                                      "maximum": 167,
                                      "minimum": 0,
                                      "type": "integer"
                                    }
                                  },
                                  "required": [
                                    "dailyHour",
                                    "offsetMinutes",
                                    "weeklyHour"
                                  ],
                                  "type": "object"
                                },
                                "measurementKey": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "neighborToleranceHours": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "normalizationStatus": {
                                  "enum": [
                                    "value",
                                    "counter_baseline",
                                    "counter_reset",
                                    "missing_skipped",
                                    "missing_zero"
                                  ],
                                  "type": "string"
                                },
                                "normalizationVersion": {
                                  "const": 1,
                                  "type": "number"
                                },
                                "notEvaluatedReason": {
                                  "enum": [
                                    "measurement_missing",
                                    "counter_baseline",
                                    "counter_reset",
                                    "numeric_overflow",
                                    "heartbeat_expectation_disabled"
                                  ],
                                  "type": "string"
                                },
                                "originalExpectedValue": { "type": "number" },
                                "originalLowerBound": { "type": "number" },
                                "originalObservedValue": { "type": "number" },
                                "originalScaleBasis": {
                                  "enum": ["measurement", "counter_delta"],
                                  "type": "string"
                                },
                                "originalUpperBound": { "type": "number" },
                                "policyInput": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "actionable": { "type": "boolean" },
                                    "mode": {
                                      "enum": ["heartbeat", "shadow", "active"],
                                      "type": "string"
                                    }
                                  },
                                  "required": ["actionable", "mode"],
                                  "type": "object"
                                },
                                "residualScore": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "selectedModel": {
                                  "const": "weekly",
                                  "type": "string"
                                },
                                "selectionReason": {
                                  "const": "weekly_improved",
                                  "type": "string"
                                },
                                "sensitivity": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.01,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "low",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.99,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.03,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "medium",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.97,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "configured": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "expectedAlertRate": {
                                          "const": 0.05,
                                          "type": "number"
                                        },
                                        "name": {
                                          "const": "high",
                                          "type": "string"
                                        },
                                        "residualQuantile": {
                                          "const": 0.95,
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "configured",
                                        "expectedAlertRate",
                                        "name",
                                        "residualQuantile"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "status": {
                                  "enum": [
                                    "warming",
                                    "normal",
                                    "suspected_anomaly",
                                    "not_evaluated"
                                  ],
                                  "type": "string"
                                },
                                "threshold": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "timeZone": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "transform": {
                                  "enum": ["none", "log1p"],
                                  "type": "string"
                                },
                                "transformedExpectedValue": {
                                  "type": "number"
                                },
                                "transformedLowerBound": { "type": "number" },
                                "transformedMad": {
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "transformedObservedValue": {
                                  "type": "number"
                                },
                                "transformedScale": {
                                  "exclusiveMinimum": 0,
                                  "type": "number"
                                },
                                "transformedUpperBound": { "type": "number" },
                                "unit": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                  "type": "string"
                                },
                                "updateDisposition": {
                                  "enum": ["full", "skipped"],
                                  "type": "string"
                                },
                                "weeklyBucketSamples": {
                                  "maximum": 12,
                                  "minimum": 3,
                                  "type": "integer"
                                },
                                "weeklyReadiness": {
                                  "allOf": [
                                    {
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 7,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "daily",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 7,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "candidateWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "cyclesObserved": {
                                              "maximum": 4,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "globalWinsorizedMeanAbsoluteError": {
                                              "minimum": 0,
                                              "type": "number"
                                            },
                                            "holdoutSamples": {
                                              "maximum": 32,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "minimumRelativeImprovement": {
                                              "const": 0.1,
                                              "type": "number"
                                            },
                                            "model": {
                                              "const": "weekly",
                                              "type": "string"
                                            },
                                            "relativeImprovement": {
                                              "maximum": 1,
                                              "minimum": -1,
                                              "type": "number"
                                            },
                                            "requiredCycles": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "requiredHoldoutSamples": {
                                              "const": 4,
                                              "type": "number"
                                            },
                                            "state": {
                                              "enum": [
                                                "warming_cycles",
                                                "warming_holdout",
                                                "insufficient_improvement",
                                                "validated"
                                              ],
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "cyclesObserved",
                                            "holdoutSamples",
                                            "minimumRelativeImprovement",
                                            "requiredHoldoutSamples",
                                            "state",
                                            "model",
                                            "requiredCycles"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        }
                                      },
                                      "required": ["model"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": {},
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 4,
                                          "type": "integer"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": 0.1,
                                          "type": "number"
                                        },
                                        "state": {
                                          "const": "validated",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "candidateWinsorizedMeanAbsoluteError",
                                        "cyclesObserved",
                                        "globalWinsorizedMeanAbsoluteError",
                                        "holdoutSamples",
                                        "relativeImprovement",
                                        "state"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "configurationVersion",
                                "dailyBucketSamples",
                                "dailyReadiness",
                                "engineVersion",
                                "explanation",
                                "localBucket",
                                "measurementKey",
                                "neighborToleranceHours",
                                "normalizationStatus",
                                "normalizationVersion",
                                "originalScaleBasis",
                                "policyInput",
                                "sensitivity",
                                "status",
                                "timeZone",
                                "transform",
                                "updateDisposition",
                                "weeklyBucketSamples",
                                "weeklyReadiness",
                                "selectedModel",
                                "selectionReason"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "maxItems": 16,
                        "type": "array"
                      },
                      "sequence": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "shiftEvaluations": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "accumulatedMagnitude": {
                              "maximum": 64,
                              "minimum": 0,
                              "type": "number"
                            },
                            "baselineScale": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "boundedResidualContribution": {
                              "maximum": 3,
                              "minimum": -3,
                              "type": "number"
                            },
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "direction": {
                              "enum": ["positive", "negative"],
                              "type": "string"
                            },
                            "durationSamples": {
                              "maximum": 1000000,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "engineVersion": { "const": 3, "type": "number" },
                            "ewma": {
                              "maximum": 3,
                              "minimum": -3,
                              "type": "number"
                            },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "negativeCusum": {
                              "maximum": 64,
                              "minimum": 0,
                              "type": "number"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "normalizedResidual": { "type": "number" },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "numeric_overflow",
                                "heartbeat_expectation_disabled"
                              ],
                              "type": "string"
                            },
                            "pointAnomaly": { "type": "boolean" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode"],
                              "type": "object"
                            },
                            "positiveCusum": {
                              "maximum": 64,
                              "minimum": 0,
                              "type": "number"
                            },
                            "preset": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cusumAllowance": {
                                      "const": 0.75,
                                      "type": "number"
                                    },
                                    "cusumThreshold": {
                                      "const": 12,
                                      "type": "number"
                                    },
                                    "ewmaAlpha": {
                                      "const": 0.1,
                                      "type": "number"
                                    },
                                    "ewmaRecoveryThreshold": {
                                      "const": 0.3,
                                      "type": "number"
                                    },
                                    "ewmaThreshold": {
                                      "const": 0.9,
                                      "type": "number"
                                    },
                                    "maximumGapIntervals": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "minimumDurationSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "low",
                                      "type": "string"
                                    },
                                    "recoveryConfirmationSamples": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "residualClip": {
                                      "const": 3,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "maximumGapIntervals",
                                    "residualClip",
                                    "cusumAllowance",
                                    "cusumThreshold",
                                    "ewmaAlpha",
                                    "ewmaRecoveryThreshold",
                                    "ewmaThreshold",
                                    "minimumDurationSamples",
                                    "name",
                                    "recoveryConfirmationSamples"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cusumAllowance": {
                                      "const": 0.5,
                                      "type": "number"
                                    },
                                    "cusumThreshold": {
                                      "const": 8,
                                      "type": "number"
                                    },
                                    "ewmaAlpha": {
                                      "const": 0.2,
                                      "type": "number"
                                    },
                                    "ewmaRecoveryThreshold": {
                                      "const": 0.25,
                                      "type": "number"
                                    },
                                    "ewmaThreshold": {
                                      "const": 0.65,
                                      "type": "number"
                                    },
                                    "maximumGapIntervals": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "minimumDurationSamples": {
                                      "const": 3,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "medium",
                                      "type": "string"
                                    },
                                    "recoveryConfirmationSamples": {
                                      "const": 3,
                                      "type": "number"
                                    },
                                    "residualClip": {
                                      "const": 3,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "maximumGapIntervals",
                                    "residualClip",
                                    "cusumAllowance",
                                    "cusumThreshold",
                                    "ewmaAlpha",
                                    "ewmaRecoveryThreshold",
                                    "ewmaThreshold",
                                    "minimumDurationSamples",
                                    "name",
                                    "recoveryConfirmationSamples"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cusumAllowance": {
                                      "const": 0.35,
                                      "type": "number"
                                    },
                                    "cusumThreshold": {
                                      "const": 6,
                                      "type": "number"
                                    },
                                    "ewmaAlpha": {
                                      "const": 0.3,
                                      "type": "number"
                                    },
                                    "ewmaRecoveryThreshold": {
                                      "const": 0.2,
                                      "type": "number"
                                    },
                                    "ewmaThreshold": {
                                      "const": 0.45,
                                      "type": "number"
                                    },
                                    "maximumGapIntervals": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "minimumDurationSamples": {
                                      "const": 3,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "high",
                                      "type": "string"
                                    },
                                    "recoveryConfirmationSamples": {
                                      "const": 3,
                                      "type": "number"
                                    },
                                    "residualClip": {
                                      "const": 3,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "maximumGapIntervals",
                                    "residualClip",
                                    "cusumAllowance",
                                    "cusumThreshold",
                                    "ewmaAlpha",
                                    "ewmaRecoveryThreshold",
                                    "ewmaThreshold",
                                    "minimumDurationSamples",
                                    "name",
                                    "recoveryConfirmationSamples"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "resetReason": {
                              "enum": [
                                "accepted_regime_change",
                                "baseline_model_changed",
                                "configuration_changed",
                                "counter_baseline",
                                "counter_reset",
                                "lifecycle_suspended",
                                "long_gap",
                                "maintenance"
                              ],
                              "type": "string"
                            },
                            "status": {
                              "enum": [
                                "warming",
                                "normal",
                                "accumulating",
                                "persistent_shift",
                                "recovering",
                                "reset",
                                "not_evaluated"
                              ],
                              "type": "string"
                            },
                            "wanderCalibration": {
                              "additionalProperties": false,
                              "properties": {
                                "cusumAllowance": {
                                  "exclusiveMinimum": 0,
                                  "maximum": 64,
                                  "type": "number"
                                },
                                "cusumThreshold": {
                                  "exclusiveMinimum": 0,
                                  "maximum": 64,
                                  "type": "number"
                                },
                                "holdoutSamples": {
                                  "maximum": 1000000,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "minimumInflation": {
                                  "const": 1.2,
                                  "type": "number"
                                },
                                "requiredHoldoutSamples": {
                                  "const": 32,
                                  "type": "number"
                                },
                                "runningMeanInflation": {
                                  "maximum": 4.358898943540674,
                                  "minimum": 1,
                                  "type": "number"
                                },
                                "state": {
                                  "enum": [
                                    "warming_holdout",
                                    "independent",
                                    "calibrated"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "cusumAllowance",
                                "cusumThreshold",
                                "holdoutSamples",
                                "minimumInflation",
                                "requiredHoldoutSamples",
                                "state"
                              ],
                              "type": "object"
                            }
                          },
                          "required": [
                            "configurationVersion",
                            "engineVersion",
                            "explanation",
                            "measurementKey",
                            "normalizationVersion",
                            "pointAnomaly",
                            "policyInput",
                            "preset",
                            "status"
                          ],
                          "type": "object"
                        },
                        "maxItems": 16,
                        "type": "array"
                      },
                      "status": {
                        "anyOf": [
                          {
                            "enum": [
                              "on_time",
                              "late",
                              "not_expected",
                              "learning"
                            ],
                            "type": "string"
                          },
                          {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          }
                        ]
                      },
                      "unavailableEvidence": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "evidence": {
                              "enum": [
                                "adaptive_baseline",
                                "explicit_rule",
                                "incident_policy",
                                "persistent_shift",
                                "seasonal_baseline"
                              ],
                              "type": "string"
                            },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "reason": {
                              "enum": ["engine_version", "unreadable"],
                              "type": "string"
                            },
                            "recordedEngineVersion": {
                              "maximum": 999,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": ["evidence", "explanation", "reason"],
                          "type": "object"
                        },
                        "maxItems": 5,
                        "minItems": 1,
                        "type": "array"
                      }
                    },
                    "required": [
                      "acceptedAt",
                      "configurationVersion",
                      "id",
                      "payload",
                      "requestId",
                      "sequence",
                      "status"
                    ],
                    "type": "object"
                  },
                  "lifecycle": {
                    "enum": ["active", "paused", "archived"],
                    "type": "string"
                  },
                  "lifecycleChangedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "maintenance": {
                    "additionalProperties": false,
                    "properties": {
                      "endsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "reason": {
                        "maxLength": 256,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "startsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      }
                    },
                    "required": ["endsAt", "startsAt"],
                    "type": "object"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "nextDeadline": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "reconciliation": {
                    "additionalProperties": false,
                    "properties": {
                      "directory": {
                        "enum": ["pending", "synchronized"],
                        "type": "string"
                      },
                      "usage": {
                        "enum": ["pending", "synchronized"],
                        "type": "string"
                      }
                    },
                    "required": ["directory", "usage"],
                    "type": "object"
                  },
                  "restorableUntil": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "retainedHistory": {
                    "additionalProperties": false,
                    "properties": {
                      "coverage": {
                        "additionalProperties": false,
                        "properties": {
                          "availableFrom": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "availableThrough": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "truncated": { "const": true, "type": "boolean" }
                        },
                        "type": "object"
                      },
                      "datapoints": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "observedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "values": {
                              "additionalProperties": { "type": "number" },
                              "propertyNames": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "type": "object"
                            }
                          },
                          "required": ["observedAt", "values"],
                          "type": "object"
                        },
                        "maxItems": 500,
                        "type": "array"
                      },
                      "measurementKeys": {
                        "items": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "maxItems": 4,
                        "minItems": 1,
                        "type": "array"
                      },
                      "truncated": { "type": "boolean" }
                    },
                    "required": ["datapoints", "measurementKeys", "truncated"],
                    "type": "object"
                  }
                },
                "required": [
                  "configuration",
                  "initializedAt",
                  "jurisdiction",
                  "lifecycle",
                  "monitorKey",
                  "reconciliation"
                ],
                "type": "object"
              },
              "type": { "const": "monitor", "type": "string" }
            },
            "required": ["exportedAt", "monitor", "type"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "exportedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "jurisdiction": {
                "enum": ["unrestricted", "eu", "us", "fedramp"],
                "type": "string"
              },
              "monitorKey": {
                "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "observation": {
                "additionalProperties": false,
                "properties": {
                  "acceptedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "baselineEvaluations": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "engineVersion": { "const": 2, "type": "number" },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "normalizationStatus": {
                          "enum": [
                            "value",
                            "counter_baseline",
                            "counter_reset",
                            "missing_skipped",
                            "missing_zero"
                          ],
                          "type": "string"
                        },
                        "normalizationVersion": {
                          "const": 1,
                          "type": "number"
                        },
                        "notActionableReason": {
                          "enum": ["baseline_below_minimum_level"],
                          "type": "string"
                        },
                        "notEvaluatedReason": {
                          "enum": [
                            "measurement_missing",
                            "counter_baseline",
                            "counter_reset",
                            "numeric_overflow",
                            "heartbeat_expectation_disabled"
                          ],
                          "type": "string"
                        },
                        "originalExpectedValue": { "type": "number" },
                        "originalLowerBound": { "type": "number" },
                        "originalObservedValue": { "type": "number" },
                        "originalScaleBasis": {
                          "enum": ["measurement", "counter_delta"],
                          "type": "string"
                        },
                        "originalUpperBound": { "type": "number" },
                        "policyInput": {
                          "additionalProperties": false,
                          "properties": {
                            "actionable": { "type": "boolean" },
                            "mode": {
                              "enum": ["heartbeat", "shadow", "active"],
                              "type": "string"
                            }
                          },
                          "required": ["actionable", "mode"],
                          "type": "object"
                        },
                        "readiness": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "baselineSamples": {
                                  "maximum": 15,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "requiredBaselineSamples": {
                                  "const": 16,
                                  "type": "number"
                                },
                                "requiredResidualSamples": {
                                  "const": 32,
                                  "type": "number"
                                },
                                "residualSamples": {
                                  "const": 0,
                                  "type": "number"
                                },
                                "state": {
                                  "const": "warming_baseline",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "requiredBaselineSamples",
                                "requiredResidualSamples",
                                "baselineSamples",
                                "residualSamples",
                                "state"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "baselineSamples": {
                                  "maximum": 128,
                                  "minimum": 16,
                                  "type": "integer"
                                },
                                "requiredBaselineSamples": {
                                  "const": 16,
                                  "type": "number"
                                },
                                "requiredResidualSamples": {
                                  "const": 32,
                                  "type": "number"
                                },
                                "residualSamples": {
                                  "maximum": 31,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "state": {
                                  "const": "warming_residuals",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "requiredBaselineSamples",
                                "requiredResidualSamples",
                                "baselineSamples",
                                "residualSamples",
                                "state"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "baselineSamples": {
                                  "maximum": 128,
                                  "minimum": 16,
                                  "type": "integer"
                                },
                                "requiredBaselineSamples": {
                                  "const": 16,
                                  "type": "number"
                                },
                                "requiredResidualSamples": {
                                  "const": 32,
                                  "type": "number"
                                },
                                "residualSamples": {
                                  "maximum": 128,
                                  "minimum": 32,
                                  "type": "integer"
                                },
                                "state": { "const": "ready", "type": "string" }
                              },
                              "required": [
                                "requiredBaselineSamples",
                                "requiredResidualSamples",
                                "baselineSamples",
                                "residualSamples",
                                "state"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "residualModel": {
                          "enum": ["robust_z", "count"],
                          "type": "string"
                        },
                        "residualModelReadiness": {
                          "additionalProperties": false,
                          "properties": {
                            "candidate": {
                              "enum": ["robust_z", "count"],
                              "type": "string"
                            },
                            "holdoutSamples": {
                              "maximum": 32,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "meanLogLikelihoodGain": { "type": "number" },
                            "minimumMeanLogLikelihoodGain": {
                              "const": 0.1,
                              "type": "number"
                            },
                            "requiredHoldoutSamples": {
                              "const": 32,
                              "type": "number"
                            },
                            "state": {
                              "enum": [
                                "ineligible",
                                "warming_holdout",
                                "insufficient_improvement",
                                "validated"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "candidate",
                            "holdoutSamples",
                            "minimumMeanLogLikelihoodGain",
                            "requiredHoldoutSamples",
                            "state"
                          ],
                          "type": "object"
                        },
                        "residualModelSelectionReason": {
                          "enum": [
                            "count_improved",
                            "distribution_ineligible",
                            "holdout_warming",
                            "insufficient_improvement"
                          ],
                          "type": "string"
                        },
                        "residualScore": { "minimum": 0, "type": "number" },
                        "sensitivity": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.01,
                                  "type": "number"
                                },
                                "name": { "const": "low", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.99,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.03,
                                  "type": "number"
                                },
                                "name": { "const": "medium", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.97,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "expectedAlertRate": {
                                  "const": 0.05,
                                  "type": "number"
                                },
                                "name": { "const": "high", "type": "string" },
                                "residualQuantile": {
                                  "const": 0.95,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "configured",
                                "expectedAlertRate",
                                "name",
                                "residualQuantile"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "warming",
                            "normal",
                            "suspected_anomaly",
                            "not_evaluated"
                          ],
                          "type": "string"
                        },
                        "threshold": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "transform": {
                          "enum": ["none", "log1p"],
                          "type": "string"
                        },
                        "transformedExpectedValue": { "type": "number" },
                        "transformedLowerBound": { "type": "number" },
                        "transformedMad": { "minimum": 0, "type": "number" },
                        "transformedObservedValue": { "type": "number" },
                        "transformedScale": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "transformedUpperBound": { "type": "number" },
                        "unit": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "updateDisposition": {
                          "enum": ["full", "winsorized", "skipped"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "configurationVersion",
                        "engineVersion",
                        "explanation",
                        "measurementKey",
                        "normalizationStatus",
                        "normalizationVersion",
                        "originalScaleBasis",
                        "policyInput",
                        "readiness",
                        "residualModel",
                        "residualModelReadiness",
                        "residualModelSelectionReason",
                        "sensitivity",
                        "status",
                        "transform",
                        "updateDisposition"
                      ],
                      "type": "object"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "configurationVersion": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "incidentPolicyDecision": {
                    "additionalProperties": false,
                    "properties": {
                      "configurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "confirmation": {
                        "additionalProperties": false,
                        "properties": {
                          "confirmed": { "type": "boolean" },
                          "observedInWindow": {
                            "maximum": 6,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "required": {
                            "maximum": 6,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "window": {
                            "maximum": 6,
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "confirmed",
                          "observedInWindow",
                          "required",
                          "window"
                        ],
                        "type": "object"
                      },
                      "contributions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "breach": {
                              "additionalProperties": false,
                              "properties": {
                                "consequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "justBecameSustained": { "type": "boolean" },
                                "phase": {
                                  "enum": ["clear", "transient", "sustained"],
                                  "type": "string"
                                },
                                "progress": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "elapsedSeconds": {
                                      "maximum": 604800,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "qualifyingObservations": {
                                      "maximum": 10,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "remaining": {
                                      "maximum": 604800,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "startedAt": {
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "elapsedSeconds",
                                    "qualifyingObservations",
                                    "remaining"
                                  ],
                                  "type": "object"
                                },
                                "sustainedConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "sustainedCriterion": {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "observations",
                                          "type": "string"
                                        },
                                        "observations": {
                                          "maximum": 10,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "observations"],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "kind": {
                                          "const": "elapsed_time",
                                          "type": "string"
                                        },
                                        "seconds": {
                                          "maximum": 604800,
                                          "minimum": 1,
                                          "type": "integer"
                                        }
                                      },
                                      "required": ["kind", "seconds"],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "transientConsequence": {
                                  "enum": [
                                    "none",
                                    "info",
                                    "warning",
                                    "critical"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "consequence",
                                "justBecameSustained",
                                "phase",
                                "progress",
                                "sustainedConsequence",
                                "sustainedCriterion",
                                "transientConsequence"
                              ],
                              "type": "object"
                            },
                            "detector": {
                              "enum": [
                                "explicit_rule",
                                "adaptive_baseline",
                                "seasonal_baseline",
                                "persistent_shift"
                              ],
                              "type": "string"
                            },
                            "durationSamples": {
                              "maximum": 1000000,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "residualScore": { "minimum": 0, "type": "number" },
                            "ruleId": {
                              "maxLength": 160,
                              "minLength": 3,
                              "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                              "type": "string"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            },
                            "trigger": {
                              "enum": [
                                "explicit_rule",
                                "extreme_deviation",
                                "moderate_confirmation",
                                "persistent_shift"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "detector",
                            "measurementKey",
                            "severity"
                          ],
                          "type": "object"
                        },
                        "maxItems": 80,
                        "type": "array"
                      },
                      "engineVersion": { "const": 1, "type": "number" },
                      "evaluation": {
                        "additionalProperties": false,
                        "properties": {
                          "evaluatedMeasurementKeys": {
                            "items": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maxItems": 32,
                            "type": "array"
                          },
                          "policyActive": { "type": "boolean" },
                          "publishedMeasurementKeys": {
                            "items": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maxItems": 32,
                            "type": "array"
                          }
                        },
                        "required": [
                          "evaluatedMeasurementKeys",
                          "policyActive",
                          "publishedMeasurementKeys"
                        ],
                        "type": "object"
                      },
                      "explanation": {
                        "maxLength": 512,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "notifiable": { "type": "boolean" },
                      "outcome": {
                        "enum": [
                          "none",
                          "recorded",
                          "confirming",
                          "incident_opened",
                          "incident_sustained",
                          "recovery_pending",
                          "recovery_confirmed"
                        ],
                        "type": "string"
                      },
                      "profile": {
                        "oneOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "configured": {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "confirmationRequired": {
                                "const": 4,
                                "type": "number"
                              },
                              "confirmationWindow": {
                                "const": 6,
                                "type": "number"
                              },
                              "extremeResidualMultiple": {
                                "const": 4,
                                "type": "number"
                              },
                              "name": { "const": "low", "type": "string" },
                              "recoveryConfirmationObservations": {
                                "const": 4,
                                "type": "number"
                              },
                              "regimeChangeObservations": {
                                "const": 96,
                                "type": "number"
                              }
                            },
                            "required": [
                              "configured",
                              "confirmationRequired",
                              "confirmationWindow",
                              "extremeResidualMultiple",
                              "name",
                              "recoveryConfirmationObservations",
                              "regimeChangeObservations"
                            ],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "configured": {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "confirmationRequired": {
                                "const": 3,
                                "type": "number"
                              },
                              "confirmationWindow": {
                                "const": 5,
                                "type": "number"
                              },
                              "extremeResidualMultiple": {
                                "const": 3,
                                "type": "number"
                              },
                              "name": { "const": "medium", "type": "string" },
                              "recoveryConfirmationObservations": {
                                "const": 3,
                                "type": "number"
                              },
                              "regimeChangeObservations": {
                                "const": 48,
                                "type": "number"
                              }
                            },
                            "required": [
                              "configured",
                              "confirmationRequired",
                              "confirmationWindow",
                              "extremeResidualMultiple",
                              "name",
                              "recoveryConfirmationObservations",
                              "regimeChangeObservations"
                            ],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "configured": {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "confirmationRequired": {
                                "const": 2,
                                "type": "number"
                              },
                              "confirmationWindow": {
                                "const": 4,
                                "type": "number"
                              },
                              "extremeResidualMultiple": {
                                "const": 2.5,
                                "type": "number"
                              },
                              "name": { "const": "high", "type": "string" },
                              "recoveryConfirmationObservations": {
                                "const": 3,
                                "type": "number"
                              },
                              "regimeChangeObservations": {
                                "const": 24,
                                "type": "number"
                              }
                            },
                            "required": [
                              "configured",
                              "confirmationRequired",
                              "confirmationWindow",
                              "extremeResidualMultiple",
                              "name",
                              "recoveryConfirmationObservations",
                              "regimeChangeObservations"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "recovery": {
                        "additionalProperties": false,
                        "properties": {
                          "confirmedObservations": {
                            "maximum": 10,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "requiredObservations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "confirmedObservations",
                          "requiredObservations"
                        ],
                        "type": "object"
                      },
                      "regimeChange": {
                        "additionalProperties": false,
                        "properties": {
                          "measurementKeys": {
                            "items": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "maxItems": 16,
                            "type": "array"
                          },
                          "mode": {
                            "enum": ["manual", "automatic"],
                            "type": "string"
                          },
                          "requiredObservations": {
                            "maximum": 1000000,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "state": {
                            "enum": [
                              "none",
                              "watching",
                              "available",
                              "applied"
                            ],
                            "type": "string"
                          },
                          "sustainedObservations": {
                            "maximum": 1000000,
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "measurementKeys",
                          "mode",
                          "requiredObservations",
                          "state",
                          "sustainedObservations"
                        ],
                        "type": "object"
                      },
                      "severity": {
                        "enum": ["info", "warning", "critical"],
                        "type": "string"
                      },
                      "suppression": {
                        "enum": [
                          "detector_unconfirmed",
                          "detector_warming",
                          "detector_shadow_mode",
                          "open_incident"
                        ],
                        "type": "string"
                      },
                      "triggers": {
                        "items": {
                          "enum": [
                            "explicit_rule",
                            "extreme_deviation",
                            "moderate_confirmation",
                            "persistent_shift"
                          ],
                          "type": "string"
                        },
                        "maxItems": 4,
                        "type": "array"
                      }
                    },
                    "required": [
                      "configurationVersion",
                      "confirmation",
                      "contributions",
                      "engineVersion",
                      "explanation",
                      "notifiable",
                      "outcome",
                      "profile",
                      "recovery",
                      "regimeChange",
                      "severity",
                      "triggers"
                    ],
                    "type": "object"
                  },
                  "normalizedMeasurements": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "definition": {
                          "additionalProperties": false,
                          "properties": {
                            "disabledRules": {
                              "items": {
                                "enum": [
                                  "minimum",
                                  "maximum",
                                  "zero",
                                  "nonzero",
                                  "absolute_delta",
                                  "percentage_delta",
                                  "ratio_minimum",
                                  "ratio_maximum"
                                ],
                                "type": "string"
                              },
                              "maxItems": 8,
                              "type": "array"
                            },
                            "maximum": { "type": "number" },
                            "maximumAbsoluteDelta": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "maximumPercentageDelta": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "metricType": {
                              "default": "gauge",
                              "enum": [
                                "gauge",
                                "count",
                                "rate",
                                "duration",
                                "counter",
                                "size"
                              ],
                              "type": "string"
                            },
                            "minimum": { "type": "number" },
                            "missingPolicy": {
                              "default": "skip",
                              "enum": ["skip", "zero", "reject"],
                              "type": "string"
                            },
                            "mode": {
                              "enum": ["heartbeat", "shadow", "active"],
                              "type": "string"
                            },
                            "ratio": {
                              "additionalProperties": false,
                              "properties": {
                                "denominator": {
                                  "maxLength": 64,
                                  "minLength": 1,
                                  "pattern": "^[a-z][a-z0-9_]*$",
                                  "type": "string"
                                },
                                "maximum": { "type": "number" },
                                "minimum": { "type": "number" }
                              },
                              "required": ["denominator"],
                              "type": "object"
                            },
                            "ruleAction": {
                              "additionalProperties": false,
                              "properties": {
                                "mode": {
                                  "enum": ["inactive", "active"],
                                  "type": "string"
                                },
                                "version": { "const": 1, "type": "number" }
                              },
                              "required": ["mode", "version"],
                              "type": "object"
                            },
                            "rulePolicy": {
                              "anyOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "consecutiveObservations": {
                                      "default": 1,
                                      "maximum": 10,
                                      "minimum": 1,
                                      "type": "integer"
                                    },
                                    "severity": {
                                      "default": "critical",
                                      "enum": ["info", "warning", "critical"],
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "sustainedConsequence": {
                                      "default": "critical",
                                      "enum": [
                                        "none",
                                        "info",
                                        "warning",
                                        "critical"
                                      ],
                                      "type": "string"
                                    },
                                    "sustainedCriterion": {
                                      "default": {
                                        "kind": "observations",
                                        "observations": 1
                                      },
                                      "oneOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "kind": {
                                              "const": "observations",
                                              "type": "string"
                                            },
                                            "observations": {
                                              "maximum": 10,
                                              "minimum": 1,
                                              "type": "integer"
                                            }
                                          },
                                          "required": ["kind", "observations"],
                                          "type": "object"
                                        },
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "kind": {
                                              "const": "elapsed_time",
                                              "type": "string"
                                            },
                                            "seconds": {
                                              "maximum": 604800,
                                              "minimum": 1,
                                              "type": "integer"
                                            }
                                          },
                                          "required": ["kind", "seconds"],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    "transientConsequence": {
                                      "default": "none",
                                      "enum": [
                                        "none",
                                        "info",
                                        "warning",
                                        "critical"
                                      ],
                                      "type": "string"
                                    },
                                    "version": { "const": 1, "type": "number" }
                                  },
                                  "required": ["version"],
                                  "type": "object"
                                }
                              ]
                            },
                            "sensitivity": {
                              "maximum": 1,
                              "minimum": 0,
                              "type": "number"
                            },
                            "transform": {
                              "default": "none",
                              "enum": ["none", "log1p"],
                              "type": "string"
                            },
                            "unit": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "zeroExpectation": {
                              "enum": ["zero", "nonzero"],
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "definitionVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "key": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "normalizationVersion": {
                          "const": 1,
                          "type": "number"
                        },
                        "normalizedValue": { "type": "number" },
                        "originalValue": { "type": "number" },
                        "previousOriginalValue": { "type": "number" },
                        "status": {
                          "enum": [
                            "value",
                            "counter_baseline",
                            "counter_reset",
                            "missing_skipped",
                            "missing_zero"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "definition",
                        "definitionVersion",
                        "key",
                        "normalizationVersion",
                        "status"
                      ],
                      "type": "object"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "observedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "omittedDetail": {
                    "items": {
                      "anyOf": [
                        {
                          "enum": [
                            "normalized_measurements",
                            "adaptive_baseline",
                            "explicit_rule",
                            "incident_policy",
                            "persistent_shift",
                            "seasonal_baseline"
                          ],
                          "type": "string"
                        },
                        {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        }
                      ]
                    },
                    "maxItems": 16,
                    "minItems": 1,
                    "type": "array"
                  },
                  "payload": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "empty", "type": "string" }
                        },
                        "required": ["kind"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "number", "type": "string" },
                          "value": { "type": "number" }
                        },
                        "required": ["kind", "value"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "measurements", "type": "string" },
                          "values": {
                            "additionalProperties": {
                              "anyOf": [
                                { "type": "number" },
                                {
                                  "anyOf": [
                                    { "type": "boolean" },
                                    { "type": "null" },
                                    {
                                      "maxLength": 256,
                                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                      "type": "string"
                                    }
                                  ]
                                }
                              ]
                            },
                            "propertyNames": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "type": "object"
                          }
                        },
                        "required": ["kind", "values"],
                        "type": "object"
                      }
                    ]
                  },
                  "provenance": {
                    "anyOf": [
                      {
                        "enum": ["live", "historical_import"],
                        "type": "string"
                      },
                      {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    ]
                  },
                  "requestId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                    "type": "string"
                  },
                  "ruleEvaluations": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "breach": {
                          "additionalProperties": false,
                          "properties": {
                            "consequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "justBecameSustained": { "type": "boolean" },
                            "phase": {
                              "enum": ["clear", "transient", "sustained"],
                              "type": "string"
                            },
                            "progress": {
                              "additionalProperties": false,
                              "properties": {
                                "elapsedSeconds": {
                                  "maximum": 604800,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "qualifyingObservations": {
                                  "maximum": 10,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "remaining": {
                                  "maximum": 604800,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "startedAt": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "elapsedSeconds",
                                "qualifyingObservations",
                                "remaining"
                              ],
                              "type": "object"
                            },
                            "sustainedConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            },
                            "sustainedCriterion": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "observations",
                                      "type": "string"
                                    },
                                    "observations": {
                                      "maximum": 10,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "observations"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "kind": {
                                      "const": "elapsed_time",
                                      "type": "string"
                                    },
                                    "seconds": {
                                      "maximum": 604800,
                                      "minimum": 1,
                                      "type": "integer"
                                    }
                                  },
                                  "required": ["kind", "seconds"],
                                  "type": "object"
                                }
                              ]
                            },
                            "transientConsequence": {
                              "enum": ["none", "info", "warning", "critical"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "consequence",
                            "justBecameSustained",
                            "phase",
                            "progress",
                            "sustainedConsequence",
                            "sustainedCriterion",
                            "transientConsequence"
                          ],
                          "type": "object"
                        },
                        "comparison": {
                          "enum": ["at_least", "at_most", "equal", "not_equal"],
                          "type": "string"
                        },
                        "computedValue": { "type": "number" },
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "confirmation": {
                          "additionalProperties": false,
                          "properties": {
                            "confirmed": { "type": "boolean" },
                            "consecutiveViolations": {
                              "maximum": 10,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "required": {
                              "maximum": 10,
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "confirmed",
                            "consecutiveViolations",
                            "required"
                          ],
                          "type": "object"
                        },
                        "denominatorMeasurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "engineVersion": {
                          "anyOf": [
                            { "const": 1, "type": "number" },
                            { "const": 2, "type": "number" }
                          ]
                        },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "kind": {
                          "enum": [
                            "minimum",
                            "maximum",
                            "zero",
                            "nonzero",
                            "absolute_delta",
                            "percentage_delta",
                            "ratio_minimum",
                            "ratio_maximum"
                          ],
                          "type": "string"
                        },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "normalizationStatus": {
                          "enum": [
                            "value",
                            "counter_baseline",
                            "counter_reset",
                            "missing_skipped",
                            "missing_zero"
                          ],
                          "type": "string"
                        },
                        "notEvaluatedReason": {
                          "enum": [
                            "measurement_missing",
                            "counter_baseline",
                            "counter_reset",
                            "previous_value_missing",
                            "previous_value_zero",
                            "ratio_denominator_missing",
                            "ratio_denominator_zero",
                            "numeric_overflow"
                          ],
                          "type": "string"
                        },
                        "observedValue": { "type": "number" },
                        "policyInput": {
                          "additionalProperties": false,
                          "properties": {
                            "actionable": { "type": "boolean" },
                            "mode": {
                              "enum": ["heartbeat", "shadow", "active"],
                              "type": "string"
                            },
                            "severity": {
                              "enum": ["info", "warning", "critical"],
                              "type": "string"
                            }
                          },
                          "required": ["actionable", "mode", "severity"],
                          "type": "object"
                        },
                        "referenceValue": { "type": "number" },
                        "ruleId": {
                          "maxLength": 160,
                          "minLength": 3,
                          "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                          "type": "string"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        },
                        "status": {
                          "enum": ["passed", "violated", "not_evaluated"],
                          "type": "string"
                        },
                        "threshold": { "type": "number" },
                        "transform": {
                          "enum": ["none", "log1p"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "comparison",
                        "configurationVersion",
                        "confirmation",
                        "engineVersion",
                        "explanation",
                        "kind",
                        "measurementKey",
                        "normalizationStatus",
                        "policyInput",
                        "ruleId",
                        "severity",
                        "status",
                        "threshold",
                        "transform"
                      ],
                      "type": "object"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "seasonalEvaluations": {
                    "items": {
                      "oneOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "dailyBucketSamples": {
                              "maximum": 24,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "dailyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                }
                              ]
                            },
                            "engineVersion": { "const": 1, "type": "number" },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "localBucket": {
                              "additionalProperties": false,
                              "properties": {
                                "dailyHour": {
                                  "maximum": 23,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "offsetMinutes": {
                                  "maximum": 1440,
                                  "minimum": -1440,
                                  "type": "integer"
                                },
                                "weeklyHour": {
                                  "maximum": 167,
                                  "minimum": 0,
                                  "type": "integer"
                                }
                              },
                              "required": [
                                "dailyHour",
                                "offsetMinutes",
                                "weeklyHour"
                              ],
                              "type": "object"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "neighborToleranceHours": {
                              "const": 1,
                              "type": "number"
                            },
                            "normalizationStatus": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "numeric_overflow",
                                "heartbeat_expectation_disabled"
                              ],
                              "type": "string"
                            },
                            "originalExpectedValue": { "type": "number" },
                            "originalLowerBound": { "type": "number" },
                            "originalObservedValue": { "type": "number" },
                            "originalScaleBasis": {
                              "enum": ["measurement", "counter_delta"],
                              "type": "string"
                            },
                            "originalUpperBound": { "type": "number" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode"],
                              "type": "object"
                            },
                            "residualScore": { "minimum": 0, "type": "number" },
                            "selectedModel": {
                              "const": "global",
                              "type": "string"
                            },
                            "selectionReason": {
                              "enum": [
                                "global_baseline_warming",
                                "insufficient_improvement",
                                "not_evaluated",
                                "seasonality_warming",
                                "sparse_bucket"
                              ],
                              "type": "string"
                            },
                            "sensitivity": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.01,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "low",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.99,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.03,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "medium",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.97,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.05,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "high",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.95,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "status": {
                              "enum": [
                                "warming",
                                "normal",
                                "suspected_anomaly",
                                "not_evaluated"
                              ],
                              "type": "string"
                            },
                            "threshold": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "timeZone": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "transform": {
                              "enum": ["none", "log1p"],
                              "type": "string"
                            },
                            "transformedExpectedValue": { "type": "number" },
                            "transformedLowerBound": { "type": "number" },
                            "transformedMad": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "transformedObservedValue": { "type": "number" },
                            "transformedScale": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "transformedUpperBound": { "type": "number" },
                            "unit": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "updateDisposition": {
                              "enum": ["full", "skipped"],
                              "type": "string"
                            },
                            "weeklyBucketSamples": {
                              "maximum": 12,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "weeklyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                }
                              ]
                            }
                          },
                          "required": [
                            "configurationVersion",
                            "dailyBucketSamples",
                            "dailyReadiness",
                            "engineVersion",
                            "explanation",
                            "localBucket",
                            "measurementKey",
                            "neighborToleranceHours",
                            "normalizationStatus",
                            "normalizationVersion",
                            "originalScaleBasis",
                            "policyInput",
                            "sensitivity",
                            "status",
                            "timeZone",
                            "transform",
                            "updateDisposition",
                            "weeklyBucketSamples",
                            "weeklyReadiness",
                            "selectedModel",
                            "selectionReason"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "dailyBucketSamples": {
                              "maximum": 24,
                              "minimum": 3,
                              "type": "integer"
                            },
                            "dailyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "const": 7,
                                      "type": "number"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 4,
                                      "type": "integer"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": 0.1,
                                      "type": "number"
                                    },
                                    "state": {
                                      "const": "validated",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "candidateWinsorizedMeanAbsoluteError",
                                    "cyclesObserved",
                                    "globalWinsorizedMeanAbsoluteError",
                                    "holdoutSamples",
                                    "relativeImprovement",
                                    "state"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "engineVersion": { "const": 1, "type": "number" },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "localBucket": {
                              "additionalProperties": false,
                              "properties": {
                                "dailyHour": {
                                  "maximum": 23,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "offsetMinutes": {
                                  "maximum": 1440,
                                  "minimum": -1440,
                                  "type": "integer"
                                },
                                "weeklyHour": {
                                  "maximum": 167,
                                  "minimum": 0,
                                  "type": "integer"
                                }
                              },
                              "required": [
                                "dailyHour",
                                "offsetMinutes",
                                "weeklyHour"
                              ],
                              "type": "object"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "neighborToleranceHours": {
                              "const": 1,
                              "type": "number"
                            },
                            "normalizationStatus": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "numeric_overflow",
                                "heartbeat_expectation_disabled"
                              ],
                              "type": "string"
                            },
                            "originalExpectedValue": { "type": "number" },
                            "originalLowerBound": { "type": "number" },
                            "originalObservedValue": { "type": "number" },
                            "originalScaleBasis": {
                              "enum": ["measurement", "counter_delta"],
                              "type": "string"
                            },
                            "originalUpperBound": { "type": "number" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode"],
                              "type": "object"
                            },
                            "residualScore": { "minimum": 0, "type": "number" },
                            "selectedModel": {
                              "const": "daily",
                              "type": "string"
                            },
                            "selectionReason": {
                              "const": "daily_improved",
                              "type": "string"
                            },
                            "sensitivity": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.01,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "low",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.99,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.03,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "medium",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.97,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.05,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "high",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.95,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "status": {
                              "enum": [
                                "warming",
                                "normal",
                                "suspected_anomaly",
                                "not_evaluated"
                              ],
                              "type": "string"
                            },
                            "threshold": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "timeZone": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "transform": {
                              "enum": ["none", "log1p"],
                              "type": "string"
                            },
                            "transformedExpectedValue": { "type": "number" },
                            "transformedLowerBound": { "type": "number" },
                            "transformedMad": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "transformedObservedValue": { "type": "number" },
                            "transformedScale": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "transformedUpperBound": { "type": "number" },
                            "unit": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "updateDisposition": {
                              "enum": ["full", "skipped"],
                              "type": "string"
                            },
                            "weeklyBucketSamples": {
                              "maximum": 12,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "weeklyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                }
                              ]
                            }
                          },
                          "required": [
                            "configurationVersion",
                            "dailyBucketSamples",
                            "dailyReadiness",
                            "engineVersion",
                            "explanation",
                            "localBucket",
                            "measurementKey",
                            "neighborToleranceHours",
                            "normalizationStatus",
                            "normalizationVersion",
                            "originalScaleBasis",
                            "policyInput",
                            "sensitivity",
                            "status",
                            "timeZone",
                            "transform",
                            "updateDisposition",
                            "weeklyBucketSamples",
                            "weeklyReadiness",
                            "selectedModel",
                            "selectionReason"
                          ],
                          "type": "object"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "configurationVersion": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "dailyBucketSamples": {
                              "maximum": 24,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "dailyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "daily",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                }
                              ]
                            },
                            "engineVersion": { "const": 1, "type": "number" },
                            "explanation": {
                              "maxLength": 512,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "localBucket": {
                              "additionalProperties": false,
                              "properties": {
                                "dailyHour": {
                                  "maximum": 23,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                "offsetMinutes": {
                                  "maximum": 1440,
                                  "minimum": -1440,
                                  "type": "integer"
                                },
                                "weeklyHour": {
                                  "maximum": 167,
                                  "minimum": 0,
                                  "type": "integer"
                                }
                              },
                              "required": [
                                "dailyHour",
                                "offsetMinutes",
                                "weeklyHour"
                              ],
                              "type": "object"
                            },
                            "measurementKey": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[a-z][a-z0-9_]*$",
                              "type": "string"
                            },
                            "neighborToleranceHours": {
                              "const": 1,
                              "type": "number"
                            },
                            "normalizationStatus": {
                              "enum": [
                                "value",
                                "counter_baseline",
                                "counter_reset",
                                "missing_skipped",
                                "missing_zero"
                              ],
                              "type": "string"
                            },
                            "normalizationVersion": {
                              "const": 1,
                              "type": "number"
                            },
                            "notEvaluatedReason": {
                              "enum": [
                                "measurement_missing",
                                "counter_baseline",
                                "counter_reset",
                                "numeric_overflow",
                                "heartbeat_expectation_disabled"
                              ],
                              "type": "string"
                            },
                            "originalExpectedValue": { "type": "number" },
                            "originalLowerBound": { "type": "number" },
                            "originalObservedValue": { "type": "number" },
                            "originalScaleBasis": {
                              "enum": ["measurement", "counter_delta"],
                              "type": "string"
                            },
                            "originalUpperBound": { "type": "number" },
                            "policyInput": {
                              "additionalProperties": false,
                              "properties": {
                                "actionable": { "type": "boolean" },
                                "mode": {
                                  "enum": ["heartbeat", "shadow", "active"],
                                  "type": "string"
                                }
                              },
                              "required": ["actionable", "mode"],
                              "type": "object"
                            },
                            "residualScore": { "minimum": 0, "type": "number" },
                            "selectedModel": {
                              "const": "weekly",
                              "type": "string"
                            },
                            "selectionReason": {
                              "const": "weekly_improved",
                              "type": "string"
                            },
                            "sensitivity": {
                              "oneOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.01,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "low",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.99,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.03,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "medium",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.97,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "configured": {
                                      "maximum": 1,
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "expectedAlertRate": {
                                      "const": 0.05,
                                      "type": "number"
                                    },
                                    "name": {
                                      "const": "high",
                                      "type": "string"
                                    },
                                    "residualQuantile": {
                                      "const": 0.95,
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "configured",
                                    "expectedAlertRate",
                                    "name",
                                    "residualQuantile"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "status": {
                              "enum": [
                                "warming",
                                "normal",
                                "suspected_anomaly",
                                "not_evaluated"
                              ],
                              "type": "string"
                            },
                            "threshold": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "timeZone": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "transform": {
                              "enum": ["none", "log1p"],
                              "type": "string"
                            },
                            "transformedExpectedValue": { "type": "number" },
                            "transformedLowerBound": { "type": "number" },
                            "transformedMad": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "transformedObservedValue": { "type": "number" },
                            "transformedScale": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "transformedUpperBound": { "type": "number" },
                            "unit": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                              "type": "string"
                            },
                            "updateDisposition": {
                              "enum": ["full", "skipped"],
                              "type": "string"
                            },
                            "weeklyBucketSamples": {
                              "maximum": 12,
                              "minimum": 3,
                              "type": "integer"
                            },
                            "weeklyReadiness": {
                              "allOf": [
                                {
                                  "oneOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 7,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "daily",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 7,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "candidateWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "cyclesObserved": {
                                          "maximum": 4,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "globalWinsorizedMeanAbsoluteError": {
                                          "minimum": 0,
                                          "type": "number"
                                        },
                                        "holdoutSamples": {
                                          "maximum": 32,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "minimumRelativeImprovement": {
                                          "const": 0.1,
                                          "type": "number"
                                        },
                                        "model": {
                                          "const": "weekly",
                                          "type": "string"
                                        },
                                        "relativeImprovement": {
                                          "maximum": 1,
                                          "minimum": -1,
                                          "type": "number"
                                        },
                                        "requiredCycles": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "requiredHoldoutSamples": {
                                          "const": 4,
                                          "type": "number"
                                        },
                                        "state": {
                                          "enum": [
                                            "warming_cycles",
                                            "warming_holdout",
                                            "insufficient_improvement",
                                            "validated"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "cyclesObserved",
                                        "holdoutSamples",
                                        "minimumRelativeImprovement",
                                        "requiredHoldoutSamples",
                                        "state",
                                        "model",
                                        "requiredCycles"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "model": {
                                      "const": "weekly",
                                      "type": "string"
                                    }
                                  },
                                  "required": ["model"],
                                  "type": "object"
                                },
                                {
                                  "additionalProperties": {},
                                  "properties": {
                                    "candidateWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "cyclesObserved": {
                                      "const": 4,
                                      "type": "number"
                                    },
                                    "globalWinsorizedMeanAbsoluteError": {
                                      "minimum": 0,
                                      "type": "number"
                                    },
                                    "holdoutSamples": {
                                      "maximum": 32,
                                      "minimum": 4,
                                      "type": "integer"
                                    },
                                    "relativeImprovement": {
                                      "maximum": 1,
                                      "minimum": 0.1,
                                      "type": "number"
                                    },
                                    "state": {
                                      "const": "validated",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "candidateWinsorizedMeanAbsoluteError",
                                    "cyclesObserved",
                                    "globalWinsorizedMeanAbsoluteError",
                                    "holdoutSamples",
                                    "relativeImprovement",
                                    "state"
                                  ],
                                  "type": "object"
                                }
                              ]
                            }
                          },
                          "required": [
                            "configurationVersion",
                            "dailyBucketSamples",
                            "dailyReadiness",
                            "engineVersion",
                            "explanation",
                            "localBucket",
                            "measurementKey",
                            "neighborToleranceHours",
                            "normalizationStatus",
                            "normalizationVersion",
                            "originalScaleBasis",
                            "policyInput",
                            "sensitivity",
                            "status",
                            "timeZone",
                            "transform",
                            "updateDisposition",
                            "weeklyBucketSamples",
                            "weeklyReadiness",
                            "selectedModel",
                            "selectionReason"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "sequence": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "shiftEvaluations": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "accumulatedMagnitude": {
                          "maximum": 64,
                          "minimum": 0,
                          "type": "number"
                        },
                        "baselineScale": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "boundedResidualContribution": {
                          "maximum": 3,
                          "minimum": -3,
                          "type": "number"
                        },
                        "configurationVersion": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "direction": {
                          "enum": ["positive", "negative"],
                          "type": "string"
                        },
                        "durationSamples": {
                          "maximum": 1000000,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "engineVersion": { "const": 3, "type": "number" },
                        "ewma": {
                          "maximum": 3,
                          "minimum": -3,
                          "type": "number"
                        },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "negativeCusum": {
                          "maximum": 64,
                          "minimum": 0,
                          "type": "number"
                        },
                        "normalizationVersion": {
                          "const": 1,
                          "type": "number"
                        },
                        "normalizedResidual": { "type": "number" },
                        "notEvaluatedReason": {
                          "enum": [
                            "measurement_missing",
                            "counter_baseline",
                            "counter_reset",
                            "numeric_overflow",
                            "heartbeat_expectation_disabled"
                          ],
                          "type": "string"
                        },
                        "pointAnomaly": { "type": "boolean" },
                        "policyInput": {
                          "additionalProperties": false,
                          "properties": {
                            "actionable": { "type": "boolean" },
                            "mode": {
                              "enum": ["heartbeat", "shadow", "active"],
                              "type": "string"
                            }
                          },
                          "required": ["actionable", "mode"],
                          "type": "object"
                        },
                        "positiveCusum": {
                          "maximum": 64,
                          "minimum": 0,
                          "type": "number"
                        },
                        "preset": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cusumAllowance": {
                                  "const": 0.75,
                                  "type": "number"
                                },
                                "cusumThreshold": {
                                  "const": 12,
                                  "type": "number"
                                },
                                "ewmaAlpha": { "const": 0.1, "type": "number" },
                                "ewmaRecoveryThreshold": {
                                  "const": 0.3,
                                  "type": "number"
                                },
                                "ewmaThreshold": {
                                  "const": 0.9,
                                  "type": "number"
                                },
                                "maximumGapIntervals": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "minimumDurationSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "name": { "const": "low", "type": "string" },
                                "recoveryConfirmationSamples": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "residualClip": { "const": 3, "type": "number" }
                              },
                              "required": [
                                "configured",
                                "maximumGapIntervals",
                                "residualClip",
                                "cusumAllowance",
                                "cusumThreshold",
                                "ewmaAlpha",
                                "ewmaRecoveryThreshold",
                                "ewmaThreshold",
                                "minimumDurationSamples",
                                "name",
                                "recoveryConfirmationSamples"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cusumAllowance": {
                                  "const": 0.5,
                                  "type": "number"
                                },
                                "cusumThreshold": {
                                  "const": 8,
                                  "type": "number"
                                },
                                "ewmaAlpha": { "const": 0.2, "type": "number" },
                                "ewmaRecoveryThreshold": {
                                  "const": 0.25,
                                  "type": "number"
                                },
                                "ewmaThreshold": {
                                  "const": 0.65,
                                  "type": "number"
                                },
                                "maximumGapIntervals": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "minimumDurationSamples": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "name": { "const": "medium", "type": "string" },
                                "recoveryConfirmationSamples": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "residualClip": { "const": 3, "type": "number" }
                              },
                              "required": [
                                "configured",
                                "maximumGapIntervals",
                                "residualClip",
                                "cusumAllowance",
                                "cusumThreshold",
                                "ewmaAlpha",
                                "ewmaRecoveryThreshold",
                                "ewmaThreshold",
                                "minimumDurationSamples",
                                "name",
                                "recoveryConfirmationSamples"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "configured": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "cusumAllowance": {
                                  "const": 0.35,
                                  "type": "number"
                                },
                                "cusumThreshold": {
                                  "const": 6,
                                  "type": "number"
                                },
                                "ewmaAlpha": { "const": 0.3, "type": "number" },
                                "ewmaRecoveryThreshold": {
                                  "const": 0.2,
                                  "type": "number"
                                },
                                "ewmaThreshold": {
                                  "const": 0.45,
                                  "type": "number"
                                },
                                "maximumGapIntervals": {
                                  "const": 4,
                                  "type": "number"
                                },
                                "minimumDurationSamples": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "name": { "const": "high", "type": "string" },
                                "recoveryConfirmationSamples": {
                                  "const": 3,
                                  "type": "number"
                                },
                                "residualClip": { "const": 3, "type": "number" }
                              },
                              "required": [
                                "configured",
                                "maximumGapIntervals",
                                "residualClip",
                                "cusumAllowance",
                                "cusumThreshold",
                                "ewmaAlpha",
                                "ewmaRecoveryThreshold",
                                "ewmaThreshold",
                                "minimumDurationSamples",
                                "name",
                                "recoveryConfirmationSamples"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "resetReason": {
                          "enum": [
                            "accepted_regime_change",
                            "baseline_model_changed",
                            "configuration_changed",
                            "counter_baseline",
                            "counter_reset",
                            "lifecycle_suspended",
                            "long_gap",
                            "maintenance"
                          ],
                          "type": "string"
                        },
                        "status": {
                          "enum": [
                            "warming",
                            "normal",
                            "accumulating",
                            "persistent_shift",
                            "recovering",
                            "reset",
                            "not_evaluated"
                          ],
                          "type": "string"
                        },
                        "wanderCalibration": {
                          "additionalProperties": false,
                          "properties": {
                            "cusumAllowance": {
                              "exclusiveMinimum": 0,
                              "maximum": 64,
                              "type": "number"
                            },
                            "cusumThreshold": {
                              "exclusiveMinimum": 0,
                              "maximum": 64,
                              "type": "number"
                            },
                            "holdoutSamples": {
                              "maximum": 1000000,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "minimumInflation": {
                              "const": 1.2,
                              "type": "number"
                            },
                            "requiredHoldoutSamples": {
                              "const": 32,
                              "type": "number"
                            },
                            "runningMeanInflation": {
                              "maximum": 4.358898943540674,
                              "minimum": 1,
                              "type": "number"
                            },
                            "state": {
                              "enum": [
                                "warming_holdout",
                                "independent",
                                "calibrated"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "cusumAllowance",
                            "cusumThreshold",
                            "holdoutSamples",
                            "minimumInflation",
                            "requiredHoldoutSamples",
                            "state"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "configurationVersion",
                        "engineVersion",
                        "explanation",
                        "measurementKey",
                        "normalizationVersion",
                        "pointAnomaly",
                        "policyInput",
                        "preset",
                        "status"
                      ],
                      "type": "object"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "status": {
                    "anyOf": [
                      {
                        "enum": ["on_time", "late", "not_expected", "learning"],
                        "type": "string"
                      },
                      {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    ]
                  },
                  "unavailableEvidence": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "evidence": {
                          "enum": [
                            "adaptive_baseline",
                            "explicit_rule",
                            "incident_policy",
                            "persistent_shift",
                            "seasonal_baseline"
                          ],
                          "type": "string"
                        },
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "reason": {
                          "enum": ["engine_version", "unreadable"],
                          "type": "string"
                        },
                        "recordedEngineVersion": {
                          "maximum": 999,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": ["evidence", "explanation", "reason"],
                      "type": "object"
                    },
                    "maxItems": 5,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "acceptedAt",
                  "configurationVersion",
                  "id",
                  "payload",
                  "requestId",
                  "sequence",
                  "status"
                ],
                "type": "object"
              },
              "type": { "const": "observation", "type": "string" }
            },
            "required": [
              "exportedAt",
              "jurisdiction",
              "monitorKey",
              "observation",
              "type"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "bucket": {
                "additionalProperties": false,
                "properties": {
                  "bucketEndedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "bucketStartedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "measurements": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        },
                        "flagged": { "type": "boolean" },
                        "last": { "type": "number" },
                        "maximum": { "type": "number" },
                        "mean": { "type": "number" },
                        "measurementKey": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        },
                        "minimum": { "type": "number" }
                      },
                      "required": [
                        "count",
                        "flagged",
                        "last",
                        "maximum",
                        "mean",
                        "measurementKey",
                        "minimum"
                      ],
                      "type": "object"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "observationCount": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "omittedMeasurementCount": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "resolutionSeconds": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "statusCounts": {
                    "additionalProperties": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    },
                    "propertyNames": {
                      "anyOf": [
                        {
                          "enum": [
                            "on_time",
                            "late",
                            "not_expected",
                            "learning"
                          ],
                          "type": "string"
                        },
                        {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^[a-z][a-z0-9_]*$",
                          "type": "string"
                        }
                      ]
                    },
                    "type": "object"
                  },
                  "type": { "const": "bucket", "type": "string" }
                },
                "required": [
                  "bucketEndedAt",
                  "bucketStartedAt",
                  "measurements",
                  "observationCount",
                  "resolutionSeconds",
                  "statusCounts",
                  "type"
                ],
                "type": "object"
              },
              "exportedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "jurisdiction": {
                "enum": ["unrestricted", "eu", "us", "fedramp"],
                "type": "string"
              },
              "monitorKey": {
                "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "type": { "const": "observation_bucket", "type": "string" }
            },
            "required": [
              "exportedAt",
              "jurisdiction",
              "monitorKey",
              "bucket",
              "type"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "exportedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "incident": {
                "additionalProperties": false,
                "properties": {
                  "acknowledgement": {
                    "additionalProperties": false,
                    "properties": {
                      "acknowledgedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "actor": {
                        "properties": {
                          "display": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                            "type": "string"
                          },
                          "id": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "kind": {
                            "anyOf": [
                              {
                                "enum": [
                                  "human",
                                  "api_credential",
                                  "mcp_client",
                                  "operator",
                                  "system"
                                ],
                                "type": "string"
                              },
                              {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["kind"],
                        "type": "object"
                      }
                    },
                    "required": ["acknowledgedAt", "actor"],
                    "type": "object"
                  },
                  "archivedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "closedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "confirmedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "detectedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "jurisdiction": {
                    "enum": ["unrestricted", "eu", "us", "fedramp"],
                    "type": "string"
                  },
                  "monitorKey": {
                    "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "notification": {
                    "enum": [
                      "requested",
                      "suppressed_by_cooldown",
                      "suppressed_by_recovery_hysteresis"
                    ],
                    "type": "string"
                  },
                  "openedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "recovery": {
                    "additionalProperties": false,
                    "properties": {
                      "confirmedBeats": {
                        "maximum": 10,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "requiredBeats": {
                        "maximum": 10,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": ["confirmedBeats", "requiredBeats"],
                    "type": "object"
                  },
                  "state": {
                    "enum": ["open", "recovering", "recovered", "resolved"],
                    "type": "string"
                  },
                  "stateMachineVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "updatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "violationFamily": {
                    "enum": ["missing_beat", "numeric_anomaly"],
                    "type": "string"
                  }
                },
                "required": [
                  "detectedAt",
                  "id",
                  "jurisdiction",
                  "monitorKey",
                  "notification",
                  "openedAt",
                  "recovery",
                  "state",
                  "stateMachineVersion",
                  "updatedAt",
                  "violationFamily"
                ],
                "type": "object"
              },
              "type": { "const": "incident", "type": "string" }
            },
            "required": ["exportedAt", "incident", "type"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "event": {
                "additionalProperties": false,
                "properties": {
                  "data": {
                    "additionalProperties": false,
                    "properties": {
                      "audit": {
                        "properties": {
                          "action": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                            "type": "string"
                          },
                          "actor": {
                            "properties": {
                              "display": {
                                "maxLength": 160,
                                "minLength": 1,
                                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                                "type": "string"
                              },
                              "id": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                "type": "string"
                              },
                              "kind": {
                                "anyOf": [
                                  {
                                    "enum": [
                                      "human",
                                      "api_credential",
                                      "mcp_client",
                                      "operator",
                                      "system"
                                    ],
                                    "type": "string"
                                  },
                                  {
                                    "maxLength": 64,
                                    "minLength": 1,
                                    "pattern": "^[a-z][a-z0-9_]*$",
                                    "type": "string"
                                  }
                                ]
                              }
                            },
                            "required": ["kind"],
                            "type": "object"
                          },
                          "correlationId": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                            "type": "string"
                          },
                          "id": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                            "type": "string"
                          },
                          "occurredAt": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "outcome": {
                            "enum": ["succeeded", "denied", "failed"],
                            "type": "string"
                          },
                          "target": {
                            "properties": {
                              "id": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                                "type": "string"
                              },
                              "type": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              }
                            },
                            "required": ["type", "id"],
                            "type": "object"
                          }
                        },
                        "required": [
                          "id",
                          "occurredAt",
                          "correlationId",
                          "actor",
                          "action",
                          "target",
                          "outcome"
                        ],
                        "type": "object"
                      },
                      "callbackIntentId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "configurationVersion": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "deadlineAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "detectionDelayMs": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "expectedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "note": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "notification": {
                        "enum": [
                          "requested",
                          "suppressed_by_cooldown",
                          "suppressed_by_recovery_hysteresis"
                        ],
                        "type": "string"
                      },
                      "observationId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                        "type": "string"
                      },
                      "reason": {
                        "enum": [
                          "deadline_missed",
                          "recovery_lapsed",
                          "beat_accepted",
                          "operator_resolved",
                          "heartbeat_disabled",
                          "anomaly_confirmed",
                          "anomaly_sustained",
                          "anomaly_cleared",
                          "new_normal_accepted"
                        ],
                        "type": "string"
                      },
                      "recovery": {
                        "additionalProperties": false,
                        "properties": {
                          "confirmedBeats": {
                            "maximum": 10,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "requiredBeats": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": ["confirmedBeats", "requiredBeats"],
                        "type": "object"
                      },
                      "sourceRequestId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                        "type": "string"
                      },
                      "version": { "const": 1, "type": "number" },
                      "violationFamily": {
                        "enum": ["missing_beat", "numeric_anomaly"],
                        "type": "string"
                      }
                    },
                    "required": ["version"],
                    "type": "object"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "incidentId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "occurredAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "sequence": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "stateAfter": {
                    "enum": ["open", "recovering", "recovered", "resolved"],
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "detected",
                      "confirmed",
                      "notification_requested",
                      "acknowledged",
                      "annotated",
                      "recovery_started",
                      "recovered",
                      "resolved",
                      "rebaselined",
                      "archived"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "data",
                  "id",
                  "incidentId",
                  "occurredAt",
                  "sequence",
                  "stateAfter",
                  "type"
                ],
                "type": "object"
              },
              "exportedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "jurisdiction": {
                "enum": ["unrestricted", "eu", "us", "fedramp"],
                "type": "string"
              },
              "monitorKey": {
                "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "type": { "const": "incident_event", "type": "string" }
            },
            "required": [
              "exportedAt",
              "jurisdiction",
              "monitorKey",
              "event",
              "type"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "endpoint": {
                "properties": {
                  "alias": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "createdAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "disabledAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "generation": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "isOrganizationDefault": { "type": "boolean" },
                  "kind": {
                    "default": "webhook",
                    "enum": [
                      "webhook",
                      "whooshbang_subscriber",
                      "whooshbang_group"
                    ],
                    "type": "string"
                  },
                  "lifecycle": {
                    "enum": ["active", "disabled"],
                    "type": "string"
                  },
                  "projectId": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "secret": {
                    "additionalProperties": false,
                    "properties": {
                      "issuedAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "overlapEndsAt": {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "previousVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 65535,
                        "type": "integer"
                      }
                    },
                    "required": ["version", "issuedAt"],
                    "type": "object"
                  },
                  "updatedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "url": {
                    "format": "uri",
                    "maxLength": 512,
                    "type": "string"
                  },
                  "whooshbang": {
                    "additionalProperties": false,
                    "properties": {
                      "actorId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "type": "string"
                      },
                      "contractVersion": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      },
                      "notifierId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      }
                    },
                    "required": ["actorId", "contractVersion", "notifierId"],
                    "type": "object"
                  },
                  "whooshbangGroup": {
                    "additionalProperties": false,
                    "properties": {
                      "contractVersion": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      },
                      "notifierId": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                        "type": "string"
                      }
                    },
                    "required": ["contractVersion", "notifierId"],
                    "type": "object"
                  }
                },
                "required": [
                  "id",
                  "projectId",
                  "alias",
                  "lifecycle",
                  "isOrganizationDefault",
                  "generation",
                  "createdAt",
                  "updatedAt"
                ],
                "type": "object"
              },
              "exportedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "type": { "const": "callback_endpoint", "type": "string" }
            },
            "required": ["exportedAt", "endpoint", "type"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "exportedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "totals": {
                "additionalProperties": false,
                "properties": {
                  "activeMonitorSeconds": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "apiCalls": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "beats": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "deliveryAttempts": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "detectorCpuHigh": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "detectorCpuLow": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "detectorCpuMedium": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "incidents": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "mcpCalls": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "measurements": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "payloadBytes": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "storageBytes": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "activeMonitorSeconds",
                  "apiCalls",
                  "beats",
                  "deliveryAttempts",
                  "detectorCpuHigh",
                  "detectorCpuLow",
                  "detectorCpuMedium",
                  "incidents",
                  "mcpCalls",
                  "measurements",
                  "payloadBytes",
                  "storageBytes"
                ],
                "type": "object"
              },
              "type": { "const": "usage", "type": "string" },
              "window": {
                "additionalProperties": false,
                "properties": {
                  "endsAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "startsAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  }
                },
                "required": ["startsAt", "endsAt"],
                "type": "object"
              }
            },
            "required": ["exportedAt", "totals", "type", "window"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "exportedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "reason": { "const": "scope", "type": "string" },
              "record": { "const": "usage", "type": "string" },
              "type": { "const": "omitted", "type": "string" }
            },
            "required": ["exportedAt", "reason", "record", "type"],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "complete": { "type": "boolean" },
              "cursor": {
                "maxLength": 512,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
                "type": "string"
              },
              "exportedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "type": { "const": "checkpoint", "type": "string" }
            },
            "required": ["exportedAt", "complete", "type"],
            "type": "object"
          }
        ],
        "title": "OrganizationExportRecord",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/organization-export.ts#OrganizationExportRecordSchema",
        "x-signalsitter-source-only-refinements": [
          "A checkpoint carries a resumption cursor unless it marks the export complete."
        ]
      },
      "OrganizationExportRequest": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "format": {
            "default": "jsonl",
            "enum": ["csv", "jsonl"],
            "type": "string"
          },
          "includeObservationBuckets": { "default": false, "type": "boolean" },
          "includeObservationProvenance": {
            "default": false,
            "type": "boolean"
          }
        },
        "title": "OrganizationExportRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/organization-export.ts#OrganizationExportRequestSchema"
      },
      "OrganizationRole": {
        "enum": ["owner", "admin", "member"],
        "title": "OrganizationRole",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#OrganizationRoleSchema"
      },
      "OrganizationUsageView": {
        "additionalProperties": false,
        "properties": {
          "aggregationVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "entitlementAlignment": {
            "additionalProperties": false,
            "properties": {
              "activeMonitors": {
                "additionalProperties": false,
                "properties": {
                  "current": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "limit": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "overLimit": { "type": "boolean" },
                  "remaining": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": ["current", "limit", "remaining", "overLimit"],
                "type": "object"
              },
              "apiRequestsPerMinute": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "freshness": {
                "additionalProperties": false,
                "properties": {
                  "assignmentVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "checkedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "leaseVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "lifecycleGeneration": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "mode": {
                    "enum": ["fresh", "offline_grace"],
                    "type": "string"
                  },
                  "offlineUntil": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "refreshAfter": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  }
                },
                "required": [
                  "leaseVersion",
                  "assignmentVersion",
                  "lifecycleGeneration",
                  "checkedAt",
                  "refreshAfter",
                  "offlineUntil",
                  "mode"
                ],
                "type": "object"
              },
              "mcpRequestsPerMinute": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "plan": {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "enum": ["free", "builder", "smart", "scale"],
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                    "type": "string"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  }
                },
                "required": ["id", "name", "version"],
                "type": "object"
              }
            },
            "required": [
              "activeMonitors",
              "apiRequestsPerMinute",
              "freshness",
              "mcpRequestsPerMinute",
              "plan"
            ],
            "type": "object"
          },
          "freshness": {
            "additionalProperties": false,
            "properties": {
              "asOf": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "coverage": {
                "additionalProperties": false,
                "properties": {
                  "expectedAuthorities": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "reconciledAuthorities": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "requestCalls": {
                    "enum": ["complete", "lower_bound", "unavailable"],
                    "type": "string"
                  },
                  "state": {
                    "enum": ["complete", "partial", "unavailable"],
                    "type": "string"
                  }
                },
                "required": [
                  "expectedAuthorities",
                  "reconciledAuthorities",
                  "requestCalls",
                  "state"
                ],
                "type": "object"
              },
              "projectedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "sourceUpdatedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "state": {
                "enum": ["fresh", "delayed", "stale", "unavailable"],
                "type": "string"
              }
            },
            "required": ["asOf", "coverage", "state"],
            "type": "object"
          },
          "organizationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "reconciliation": {
            "additionalProperties": false,
            "properties": {
              "exactGlobalQuota": { "const": false, "type": "boolean" },
              "mode": { "const": "eventual_reconciliation", "type": "string" },
              "note": {
                "const": "Usage is reconciled after durable regional projections; it is not exact global quota enforcement.",
                "type": "string"
              }
            },
            "required": ["exactGlobalQuota", "mode", "note"],
            "type": "object"
          },
          "selectedProject": {
            "additionalProperties": false,
            "properties": {
              "projectId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "totals": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "activeMonitorSeconds": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "beats": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "deliveryAttempts": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "detectorCpuHigh": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "detectorCpuLow": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "detectorCpuMedium": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "incidents": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "measurements": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "payloadBytes": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "storageBytes": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "activeMonitorSeconds",
                      "beats",
                      "deliveryAttempts",
                      "detectorCpuHigh",
                      "detectorCpuLow",
                      "detectorCpuMedium",
                      "incidents",
                      "measurements",
                      "payloadBytes",
                      "storageBytes"
                    ],
                    "type": "object"
                  },
                  { "type": "null" }
                ]
              }
            },
            "required": ["projectId", "totals"],
            "type": "object"
          },
          "totals": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "activeMonitorSeconds": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "apiCalls": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "beats": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "deliveryAttempts": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "detectorCpuHigh": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "detectorCpuLow": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "detectorCpuMedium": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "incidents": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "mcpCalls": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "measurements": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "payloadBytes": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "storageBytes": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "activeMonitorSeconds",
                  "apiCalls",
                  "beats",
                  "deliveryAttempts",
                  "detectorCpuHigh",
                  "detectorCpuLow",
                  "detectorCpuMedium",
                  "incidents",
                  "mcpCalls",
                  "measurements",
                  "payloadBytes",
                  "storageBytes"
                ],
                "type": "object"
              },
              { "type": "null" }
            ]
          },
          "window": {
            "additionalProperties": false,
            "properties": {
              "endsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "startsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              }
            },
            "required": ["startsAt", "endsAt"],
            "type": "object"
          }
        },
        "required": [
          "aggregationVersion",
          "entitlementAlignment",
          "freshness",
          "organizationId",
          "reconciliation",
          "totals",
          "window"
        ],
        "title": "OrganizationUsageView",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/usage.ts#OrganizationUsageViewSchema",
        "x-signalsitter-source-only-refinements": [
          "totals is null exactly when freshness is unavailable",
          "the usage window ends no later than the report asOf timestamp"
        ]
      },
      "PlanChangeImpact": {
        "additionalProperties": false,
        "properties": {
          "monitors": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "effects": {
                  "items": {
                    "enum": [
                      "retained",
                      "suspended_over_allotment",
                      "interval_raised",
                      "measurements_reduced",
                      "detectors_reduced"
                    ],
                    "type": "string"
                  },
                  "maxItems": 5,
                  "minItems": 1,
                  "type": "array"
                },
                "intervalSecondsAfter": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "intervalSecondsBefore": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "measurementsAfter": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "measurementsBefore": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "monitorId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "retained": { "type": "boolean" }
              },
              "required": ["monitorId", "effects", "retained"],
              "type": "object"
            },
            "maxItems": 100,
            "type": "array"
          },
          "monitorsAffected": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "monitorsRetained": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "monitorsSuspended": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "organizationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "targetPlan": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "enum": ["free", "builder", "smart", "scale"],
                "type": "string"
              },
              "name": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              }
            },
            "required": ["id", "name", "version"],
            "type": "object"
          },
          "truncated": { "type": "boolean" }
        },
        "required": [
          "organizationId",
          "monitors",
          "monitorsAffected",
          "monitorsRetained",
          "monitorsSuspended",
          "truncated",
          "targetPlan"
        ],
        "title": "PlanChangeImpact",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/billing.ts#PlanChangeImpactSchema",
        "x-signalsitter-source-only-refinements": [
          "An impact is truncated exactly when it lists fewer monitors than it affects.",
          "Suspended monitors are a subset of affected monitors, and a monitor is suspended exactly when it is not retained.",
          "A raised interval states both the cadence before and the cadence after, and the later cadence is the longer one."
        ]
      },
      "PlanEntitlements": {
        "additionalProperties": false,
        "properties": {
          "activeMonitors": {
            "maximum": 100000,
            "minimum": 1,
            "type": "integer"
          },
          "apiRequestsPerMinute": {
            "maximum": 1000000,
            "minimum": 1,
            "type": "integer"
          },
          "callbackEndpoints": {
            "maximum": 50,
            "minimum": 0,
            "type": "integer"
          },
          "detectorFeatures": {
            "items": {
              "enum": [
                "heartbeat",
                "explicit_rule",
                "adaptive_baseline",
                "persistent_shift",
                "seasonal_baseline"
              ],
              "type": "string"
            },
            "maxItems": 5,
            "minItems": 1,
            "type": "array"
          },
          "fiveMinuteRetentionSeconds": {
            "default": 0,
            "maximum": 31536000,
            "minimum": 0,
            "type": "integer"
          },
          "hourlyRetentionSeconds": {
            "default": 0,
            "maximum": 31536000,
            "minimum": 0,
            "type": "integer"
          },
          "maximumMeasurementsPerObservation": {
            "maximum": 16,
            "minimum": 0,
            "type": "integer"
          },
          "maximumStoredObservations": {
            "maximum": 1000000,
            "minimum": 64,
            "type": "integer"
          },
          "mcpRequestsPerMinute": {
            "maximum": 1000000,
            "minimum": 1,
            "type": "integer"
          },
          "minimumIntervalSeconds": {
            "maximum": 31536000,
            "minimum": 60,
            "type": "integer"
          },
          "observationRetentionSeconds": {
            "maximum": 31536000,
            "minimum": 3600,
            "type": "integer"
          }
        },
        "required": [
          "activeMonitors",
          "minimumIntervalSeconds",
          "maximumMeasurementsPerObservation",
          "maximumStoredObservations",
          "observationRetentionSeconds",
          "callbackEndpoints",
          "detectorFeatures",
          "apiRequestsPerMinute",
          "mcpRequestsPerMinute"
        ],
        "title": "PlanEntitlements",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/entitlements.ts#PlanEntitlementsSchema",
        "x-signalsitter-source-only-refinements": [
          "Detector features are unique and every plan retains heartbeat monitoring.",
          "Every enabled aggregate-retention horizon covers the raw-retention horizon, and hourly retention covers enabled five-minute retention."
        ]
      },
      "ProblemDetails": {
        "properties": {
          "code": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^signalsitter\\.[a-z][a-z0-9]*(?:[._][a-z0-9]+)*$",
            "type": "string"
          },
          "correlationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
            "type": "string"
          },
          "detail": {
            "maxLength": 1024,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "fieldErrors": {
            "items": {
              "properties": {
                "code": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "message": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "path": {
                  "allOf": [
                    { "pattern": "^[^\\u0000-\\u001F\\u007F]*$" },
                    { "pattern": "^(?:|(?:\\/(?:[^~]|~[01])*)+)$" }
                  ],
                  "maxLength": 256,
                  "type": "string"
                }
              },
              "required": ["path", "code", "message"],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "instance": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\s\\u0000-\\u001F\\u007F]+$",
            "type": "string"
          },
          "limit": {
            "additionalProperties": false,
            "properties": {
              "attempted": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "current": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "detectorFeature": {
                "enum": [
                  "heartbeat",
                  "explicit_rule",
                  "adaptive_baseline",
                  "persistent_shift",
                  "seasonal_baseline"
                ],
                "type": "string"
              },
              "dimension": {
                "enum": [
                  "active_monitors",
                  "beat_cadence",
                  "minimum_interval_seconds",
                  "measurements_per_observation",
                  "stored_observations",
                  "observation_retention_seconds",
                  "callback_endpoints",
                  "detector_feature",
                  "api_requests_per_minute",
                  "mcp_requests_per_minute",
                  "service_state",
                  "entitlement_lease"
                ],
                "type": "string"
              },
              "limit": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "plan": {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "enum": ["free", "builder", "smart", "scale"],
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
                    "type": "string"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  }
                },
                "required": ["id", "name", "version"],
                "type": "object"
              },
              "remediation": {
                "enum": [
                  "upgrade_plan",
                  "reduce_usage",
                  "increase_interval",
                  "remove_feature",
                  "retry_after_refresh",
                  "contact_support",
                  "export_data"
                ],
                "type": "string"
              },
              "serviceState": {
                "enum": [
                  "active",
                  "payment_grace",
                  "abuse_suspended",
                  "canceled",
                  "deleting"
                ],
                "type": "string"
              }
            },
            "required": ["dimension", "remediation"],
            "type": "object"
          },
          "remediation": {
            "items": {
              "properties": {
                "code": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "documentation": {
                  "allOf": [
                    { "pattern": "^[^\\s\\u0000-\\u001F\\u007F]+$" },
                    { "pattern": "^(?:\\/(?!\\/)|[Hh][Tt][Tt][Pp][Ss]:\\/\\/)" }
                  ],
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                "message": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                }
              },
              "required": ["code", "message"],
              "type": "object"
            },
            "maxItems": 8,
            "type": "array"
          },
          "retryable": { "type": "boolean" },
          "retryAfterSeconds": {
            "exclusiveMinimum": 0,
            "maximum": 86400,
            "type": "integer"
          },
          "status": { "maximum": 599, "minimum": 400, "type": "integer" },
          "title": {
            "maxLength": 160,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "type": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\s\\u0000-\\u001F\\u007F]+$",
            "type": "string"
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code",
          "correlationId",
          "retryable"
        ],
        "title": "ProblemDetails",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/problems.ts#ProblemDetailsSchema",
        "x-signalsitter-source-only-refinements": [
          "URI references must pass full URI-reference parsing, including percent escapes, authority brackets, and scheme syntax.",
          "Documentation links must parse as credential-free HTTPS URLs or root-relative paths.",
          "retryAfterSeconds is allowed only when retryable is true."
        ]
      },
      "Project": {
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "lifecycle": { "enum": ["active", "archived"], "type": "string" },
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "projectId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "version": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["createdAt", "lifecycle", "name", "projectId", "version"],
        "title": "Project",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/projects.ts#ProjectSchema"
      },
      "ProjectCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "required": ["name"],
        "title": "ProjectCreateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/projects.ts#ProjectCreateRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "A name may not be blank once surrounding whitespace is removed."
        ]
      },
      "ProjectDeletionReceipt": {
        "additionalProperties": false,
        "properties": {
          "completedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "counts": {
            "additionalProperties": false,
            "properties": {
              "callbackEndpoints": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "credentials": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "incidents": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "monitors": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "usageAggregateRows": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "callbackEndpoints",
              "credentials",
              "incidents",
              "monitors",
              "usageAggregateRows"
            ],
            "type": "object"
          },
          "lifecycleGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "projectId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "replayed": { "type": "boolean" },
          "requestedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "state": {
            "enum": ["reserved", "erasing", "completed"],
            "type": "string"
          }
        },
        "required": [
          "counts",
          "lifecycleGeneration",
          "projectId",
          "replayed",
          "requestedAt",
          "state"
        ],
        "title": "ProjectDeletionReceipt",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/projects.ts#ProjectDeletionReceiptSchema",
        "x-signalsitter-source-only-refinements": [
          "Only a completed project deletion records completedAt."
        ]
      },
      "ProjectDeletionRequest": {
        "additionalProperties": false,
        "properties": {
          "confirmProjectId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["confirmProjectId"],
        "title": "ProjectDeletionRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/projects.ts#ProjectDeletionRequestSchema"
      },
      "ProjectId": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
        "title": "ProjectId",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#ProjectIdSchema"
      },
      "ProjectLifecycleRequest": {
        "additionalProperties": false,
        "properties": {
          "action": { "enum": ["archive", "restore"], "type": "string" }
        },
        "required": ["action"],
        "title": "ProjectLifecycleRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/projects.ts#ProjectLifecycleRequestSchema"
      },
      "ProjectLifecycleResult": {
        "additionalProperties": false,
        "properties": {
          "action": { "enum": ["archive", "restore"], "type": "string" },
          "lifecycleGeneration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "project": {
            "additionalProperties": false,
            "properties": {
              "createdAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "lifecycle": { "enum": ["active", "archived"], "type": "string" },
              "name": {
                "maxLength": 120,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "projectId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "createdAt",
              "lifecycle",
              "name",
              "projectId",
              "version"
            ],
            "type": "object"
          },
          "replayed": { "type": "boolean" }
        },
        "required": ["action", "lifecycleGeneration", "project", "replayed"],
        "title": "ProjectLifecycleResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/projects.ts#ProjectLifecycleResultSchema",
        "x-signalsitter-source-only-refinements": [
          "The nested project preserves its name refinement."
        ]
      },
      "ProjectListPage": {
        "properties": {
          "items": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "createdAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "lifecycle": {
                  "enum": ["active", "archived"],
                  "type": "string"
                },
                "name": {
                  "maxLength": 120,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "projectId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "createdAt",
                "lifecycle",
                "name",
                "projectId",
                "version"
              ],
              "type": "object"
            },
            "maxItems": 200,
            "type": "array"
          },
          "nextCursor": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          }
        },
        "required": ["items"],
        "title": "ProjectListPage",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/projects.ts#ProjectListPageSchema",
        "x-signalsitter-source-only-refinements": [
          "Each item preserves the project name refinement."
        ]
      },
      "ProjectRenameRequest": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          }
        },
        "required": ["name"],
        "title": "ProjectRenameRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/projects.ts#ProjectRenameRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "A name may not be blank once surrounding whitespace is removed."
        ]
      },
      "PublishAcceptance": {
        "properties": {
          "accepted": { "const": true, "type": "boolean" },
          "configuration": {
            "properties": {
              "appliedFields": {
                "items": {
                  "maxLength": 256,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*$",
                  "type": "string"
                },
                "maxItems": 96,
                "type": "array"
              },
              "callbackSigningSecret": {
                "properties": {
                  "onlyShownOnce": { "const": true, "type": "boolean" },
                  "overlapEndsAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "previousVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 65535,
                    "type": "integer"
                  },
                  "revealedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "secret": {
                    "pattern": "^sigcb_v1_[A-Za-z0-9_-]{43}$",
                    "type": "string"
                  },
                  "version": {
                    "exclusiveMinimum": 0,
                    "maximum": 65535,
                    "type": "integer"
                  }
                },
                "required": [
                  "secret",
                  "revealedAt",
                  "onlyShownOnce",
                  "version"
                ],
                "type": "object"
              },
              "configurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "ignoredFields": {
                "items": {
                  "maxLength": 256,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*$",
                  "type": "string"
                },
                "maxItems": 96,
                "type": "array"
              },
              "status": {
                "enum": ["not_requested", "applied", "ignored"],
                "type": "string"
              },
              "warnings": {
                "items": {
                  "properties": {
                    "code": {
                      "maxLength": 128,
                      "minLength": 1,
                      "pattern": "^signalsitter\\.[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "field": {
                      "maxLength": 256,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*$",
                      "type": "string"
                    },
                    "message": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    }
                  },
                  "required": ["code", "message"],
                  "type": "object"
                },
                "maxItems": 96,
                "type": "array"
              }
            },
            "required": [
              "status",
              "configurationVersion",
              "appliedFields",
              "ignoredFields",
              "warnings"
            ],
            "type": "object"
          },
          "detail": { "maxLength": 200, "minLength": 1, "type": "string" },
          "heartbeatCadenceProvenance": {
            "additionalProperties": false,
            "properties": {
              "algorithmVersion": {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "measuredIntervalMilliseconds": {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              "observationIds": {
                "items": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                  "type": "string"
                },
                "maxItems": 5,
                "minItems": 1,
                "type": "array"
              },
              "qualifiedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              }
            },
            "required": [
              "algorithmVersion",
              "measuredIntervalMilliseconds",
              "observationIds",
              "qualifiedAt"
            ],
            "type": "object"
          },
          "heartbeatExpectation": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "default": 60,
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "intervalSeconds": {
                    "maximum": 31536000,
                    "minimum": 60,
                    "type": "integer"
                  },
                  "state": { "const": "enabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["intervalSeconds", "state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "state": { "const": "disabled", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "graceSeconds": {
                    "description": "Seconds of lateness tolerated after the interval. Values below 60 are raised to 60.",
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "state": { "const": "automatic", "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["state", "version"],
                "type": "object"
              }
            ]
          },
          "heartbeatLearning": {
            "additionalProperties": false,
            "properties": {
              "measuredIntervalSeconds": {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              "requiredSamples": {
                "exclusiveMinimum": 0,
                "maximum": 64,
                "type": "integer"
              },
              "samples": { "maximum": 64, "minimum": 0, "type": "integer" },
              "status": {
                "anyOf": [
                  {
                    "enum": [
                      "collecting",
                      "inconsistent",
                      "unsupported_cadence"
                    ],
                    "type": "string"
                  },
                  {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["requiredSamples", "samples", "status"],
            "type": "object"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "lifecycle": {
            "enum": ["active", "paused", "archived"],
            "type": "string"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "nextDeadline": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "observation": {
            "properties": {
              "acceptedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "sequence": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "status": {
                "anyOf": [
                  {
                    "enum": ["on_time", "late", "not_expected", "learning"],
                    "type": "string"
                  },
                  {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["id", "sequence", "acceptedAt", "status"],
            "type": "object"
          },
          "policy": {
            "additionalProperties": false,
            "properties": {
              "allowanceVersion": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              },
              "checkedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "mode": { "enum": ["fresh", "offline_grace"], "type": "string" },
              "offlineUntil": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "refreshAfter": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              }
            },
            "required": [
              "allowanceVersion",
              "checkedAt",
              "mode",
              "offlineUntil",
              "refreshAfter"
            ],
            "type": "object"
          },
          "replayed": { "type": "boolean" },
          "serverTime": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": [
          "accepted",
          "replayed",
          "serverTime",
          "monitorKey",
          "jurisdiction",
          "observation",
          "configuration",
          "heartbeatExpectation"
        ],
        "title": "PublishAcceptance",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/publish.ts#PublishAcceptanceSchema",
        "x-signalsitter-source-only-refinements": [
          "Nested configuration result status must agree with applied and ignored field lists and stable warning codes."
        ]
      },
      "PublishConfigHeader": {
        "maxLength": 8192,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9_-]+$",
        "title": "PublishConfigHeader",
        "type": "string",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/publish.ts#PublishConfigHeaderSchema",
        "x-signalsitter-source-only-refinements": [
          "The encoded value must decode canonically to a bounded versioned UTF-8 JSON configuration envelope."
        ]
      },
      "PublishConfigurationResult": {
        "properties": {
          "appliedFields": {
            "items": {
              "maxLength": 256,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*$",
              "type": "string"
            },
            "maxItems": 96,
            "type": "array"
          },
          "callbackSigningSecret": {
            "properties": {
              "onlyShownOnce": { "const": true, "type": "boolean" },
              "overlapEndsAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "previousVersion": {
                "exclusiveMinimum": 0,
                "maximum": 65535,
                "type": "integer"
              },
              "revealedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "secret": {
                "pattern": "^sigcb_v1_[A-Za-z0-9_-]{43}$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 65535,
                "type": "integer"
              }
            },
            "required": ["secret", "revealedAt", "onlyShownOnce", "version"],
            "type": "object"
          },
          "configurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "ignoredFields": {
            "items": {
              "maxLength": 256,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*$",
              "type": "string"
            },
            "maxItems": 96,
            "type": "array"
          },
          "status": {
            "enum": ["not_requested", "applied", "ignored"],
            "type": "string"
          },
          "warnings": {
            "items": {
              "properties": {
                "code": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^signalsitter\\.[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "field": {
                  "maxLength": 256,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*$",
                  "type": "string"
                },
                "message": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                }
              },
              "required": ["code", "message"],
              "type": "object"
            },
            "maxItems": 96,
            "type": "array"
          }
        },
        "required": [
          "status",
          "configurationVersion",
          "appliedFields",
          "ignoredFields",
          "warnings"
        ],
        "title": "PublishConfigurationResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/publish.ts#PublishConfigurationResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Applied, ignored, and not-requested statuses must agree with field lists and stable warning codes."
        ]
      },
      "PublishCredentialEnvelope": {
        "properties": {
          "credentialId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expiresAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "generation": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "issuedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "keyVersion": {
            "exclusiveMinimum": 0,
            "maximum": 65535,
            "type": "integer"
          },
          "organizationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "preset": {
            "enum": ["read", "write", "readwrite", "manage"],
            "type": "string"
          },
          "projectId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "scopes": {
            "items": {
              "enum": [
                "callbacks:read",
                "callbacks:write",
                "credentials:write",
                "incidents:read",
                "incidents:write",
                "monitors:read",
                "monitors:write",
                "observations:read",
                "organization:write",
                "organization:destroy",
                "projects:read",
                "projects:write",
                "projects:administer",
                "usage:read"
              ],
              "type": "string"
            },
            "maxItems": 14,
            "minItems": 1,
            "type": "array"
          },
          "version": {
            "anyOf": [
              { "const": 3, "type": "number" },
              { "const": 4, "type": "number" }
            ]
          }
        },
        "required": [
          "version",
          "keyVersion",
          "credentialId",
          "organizationId",
          "projectId",
          "preset",
          "scopes",
          "generation",
          "issuedAt"
        ],
        "title": "PublishCredentialEnvelope",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/credentials.ts#PublishCredentialEnvelopeSchema",
        "x-signalsitter-source-only-refinements": [
          "Envelope scopes exactly match the preset and optional expiry follows issuance."
        ]
      },
      "PublishCredentialLifecycleLease": {
        "properties": {
          "acceptedVersions": {
            "items": {
              "properties": {
                "generation": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "validUntil": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                }
              },
              "required": ["generation"],
              "type": "object"
            },
            "maxItems": 2,
            "type": "array"
          },
          "allowance": {
            "additionalProperties": false,
            "default": {
              "maximumPendingProjections": 64,
              "maximumStoredObservations": 10080,
              "minimumIntervalSeconds": 60,
              "observationRetentionSeconds": 604800,
              "retentionPruneBatchSize": 64,
              "version": 1
            },
            "properties": {
              "maximumPendingProjections": {
                "default": 64,
                "maximum": 1024,
                "minimum": 8,
                "type": "integer"
              },
              "maximumStoredObservations": {
                "default": 10080,
                "maximum": 1000000,
                "minimum": 64,
                "type": "integer"
              },
              "minimumIntervalSeconds": {
                "maximum": 9007199254740991,
                "minimum": 60,
                "type": "integer"
              },
              "observationRetentionSeconds": {
                "default": 604800,
                "maximum": 31536000,
                "minimum": 3600,
                "type": "integer"
              },
              "retentionPruneBatchSize": {
                "default": 64,
                "maximum": 256,
                "minimum": 1,
                "type": "integer"
              },
              "version": {
                "default": 1,
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              }
            },
            "required": ["minimumIntervalSeconds"],
            "type": "object"
          },
          "credentialExpiresAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "credentialId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "credentialState": {
            "enum": ["active", "revoked"],
            "type": "string"
          },
          "lifecycleGeneration": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "organizationId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "organizationState": {
            "enum": ["active", "suspended"],
            "type": "string"
          },
          "refreshAfter": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "refreshedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "validUntil": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "version": { "const": 1, "type": "number" }
        },
        "required": [
          "version",
          "credentialId",
          "organizationId",
          "credentialState",
          "organizationState",
          "lifecycleGeneration",
          "acceptedVersions",
          "refreshedAt",
          "validUntil"
        ],
        "title": "PublishCredentialLifecycleLease",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/credentials.ts#PublishCredentialLifecycleLeaseSchema",
        "x-signalsitter-source-only-refinements": [
          "Accepted generations are unique, only usable identities have accepted versions, and lease validity stays within the offline ceiling."
        ]
      },
      "PublishObservationBody": {
        "anyOf": [
          { "type": "number" },
          {
            "additionalProperties": {
              "anyOf": [
                { "type": "number" },
                {
                  "anyOf": [
                    { "type": "boolean" },
                    { "type": "null" },
                    {
                      "maxLength": 256,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    }
                  ]
                }
              ]
            },
            "propertyNames": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
              "type": "string"
            },
            "type": "object"
          }
        ],
        "title": "PublishObservationBody",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/publish.ts#PublishObservationBodySchema",
        "x-signalsitter-source-only-refinements": [
          "Measurement objects contain one to sixteen finite numeric values with lowercase letter/number/underscore keys starting with a letter, plus bounded shallow scalar metadata.",
          "Numeric-looking strings are rejected as ambiguous; send a JSON number or non-numeric metadata."
        ]
      },
      "PublishPolicyFreshness": {
        "additionalProperties": false,
        "properties": {
          "allowanceVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "checkedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "mode": { "enum": ["fresh", "offline_grace"], "type": "string" },
          "offlineUntil": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "refreshAfter": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "required": [
          "allowanceVersion",
          "checkedAt",
          "mode",
          "offlineUntil",
          "refreshAfter"
        ],
        "title": "PublishPolicyFreshness",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/publish.ts#PublishPolicyFreshnessSchema",
        "x-signalsitter-source-only-refinements": [
          "Policy freshness requires checkedAt < refreshAfter < offlineUntil."
        ]
      },
      "RegimeChangeAcceptance": {
        "additionalProperties": false,
        "properties": {
          "acceptedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "audit": {
            "properties": {
              "action": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                "type": "string"
              },
              "actor": {
                "properties": {
                  "display": {
                    "maxLength": 160,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "kind": {
                    "anyOf": [
                      {
                        "enum": [
                          "human",
                          "api_credential",
                          "mcp_client",
                          "operator",
                          "system"
                        ],
                        "type": "string"
                      },
                      {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["kind"],
                "type": "object"
              },
              "correlationId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
                "type": "string"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "occurredAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "outcome": {
                "enum": ["succeeded", "denied", "failed"],
                "type": "string"
              },
              "target": {
                "properties": {
                  "id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                    "type": "string"
                  },
                  "type": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                },
                "required": ["type", "id"],
                "type": "object"
              }
            },
            "required": [
              "id",
              "occurredAt",
              "correlationId",
              "actor",
              "action",
              "target",
              "outcome"
            ],
            "type": "object"
          },
          "configurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "incidentId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "measurements": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "baselineSamples": {
                  "maximum": 128,
                  "minimum": 0,
                  "type": "integer"
                },
                "expectedValue": { "type": "number" },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "residualSamples": {
                  "maximum": 128,
                  "minimum": 0,
                  "type": "integer"
                },
                "shiftDurationSamples": {
                  "maximum": 1000000,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "baselineSamples",
                "measurementKey",
                "residualSamples"
              ],
              "type": "object"
            },
            "maxItems": 16,
            "type": "array"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "observationsPreserved": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "regimeChange": {
            "additionalProperties": false,
            "properties": {
              "measurementKeys": {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "maxItems": 16,
                "type": "array"
              },
              "mode": { "enum": ["manual", "automatic"], "type": "string" },
              "requiredObservations": {
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              "state": {
                "enum": ["none", "watching", "available", "applied"],
                "type": "string"
              },
              "sustainedObservations": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "measurementKeys",
              "mode",
              "requiredObservations",
              "state",
              "sustainedObservations"
            ],
            "type": "object"
          },
          "replayed": { "type": "boolean" }
        },
        "required": [
          "jurisdiction",
          "monitorKey",
          "configurationVersion",
          "measurements",
          "observationsPreserved",
          "regimeChange",
          "acceptedAt",
          "audit",
          "id",
          "replayed"
        ],
        "title": "RegimeChangeAcceptance",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/regime-change.ts#RegimeChangeAcceptanceSchema",
        "x-signalsitter-source-only-refinements": [
          "The embedded audit record must name the acceptance it belongs to.",
          "The embedded regime-change state and audit record apply their own consistency rules."
        ]
      },
      "RegimeChangeAcceptRequest": {
        "additionalProperties": false,
        "properties": {},
        "title": "RegimeChangeAcceptRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#RegimeChangeAcceptRequestSchema"
      },
      "RegimeChangeBaseline": {
        "additionalProperties": false,
        "properties": {
          "baselineSamples": {
            "maximum": 128,
            "minimum": 0,
            "type": "integer"
          },
          "expectedValue": { "type": "number" },
          "measurementKey": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*$",
            "type": "string"
          },
          "residualSamples": {
            "maximum": 128,
            "minimum": 0,
            "type": "integer"
          },
          "shiftDurationSamples": {
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": ["baselineSamples", "measurementKey", "residualSamples"],
        "title": "RegimeChangeBaseline",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/regime-change.ts#RegimeChangeBaselineSchema"
      },
      "RegimeChangePreview": {
        "additionalProperties": false,
        "properties": {
          "configurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "measurements": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "baselineSamples": {
                  "maximum": 128,
                  "minimum": 0,
                  "type": "integer"
                },
                "expectedValue": { "type": "number" },
                "measurementKey": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "residualSamples": {
                  "maximum": 128,
                  "minimum": 0,
                  "type": "integer"
                },
                "shiftDurationSamples": {
                  "maximum": 1000000,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "baselineSamples",
                "measurementKey",
                "residualSamples"
              ],
              "type": "object"
            },
            "maxItems": 16,
            "type": "array"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "observationsPreserved": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "previewedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "regimeChange": {
            "additionalProperties": false,
            "properties": {
              "measurementKeys": {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "maxItems": 16,
                "type": "array"
              },
              "mode": { "enum": ["manual", "automatic"], "type": "string" },
              "requiredObservations": {
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              "state": {
                "enum": ["none", "watching", "available", "applied"],
                "type": "string"
              },
              "sustainedObservations": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "measurementKeys",
              "mode",
              "requiredObservations",
              "state",
              "sustainedObservations"
            ],
            "type": "object"
          },
          "unavailableEvidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "evidence": {
                  "enum": [
                    "adaptive_baseline",
                    "explicit_rule",
                    "incident_policy",
                    "persistent_shift",
                    "seasonal_baseline"
                  ],
                  "type": "string"
                },
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "reason": {
                  "enum": ["engine_version", "unreadable"],
                  "type": "string"
                },
                "recordedEngineVersion": {
                  "maximum": 999,
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": ["evidence", "explanation", "reason"],
              "type": "object"
            },
            "maxItems": 5,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "jurisdiction",
          "monitorKey",
          "configurationVersion",
          "measurements",
          "observationsPreserved",
          "regimeChange",
          "previewedAt"
        ],
        "title": "RegimeChangePreview",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/regime-change.ts#RegimeChangePreviewSchema",
        "x-signalsitter-source-only-refinements": [
          "Unavailable-evidence entries name each stored record at most once, carry this contract's own explanation for their reason, and state a recorded engine version exactly when the engine version is the reason and never the version this build runs.",
          "The embedded regime-change state applies its own consistency rules."
        ]
      },
      "RequestId": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$",
        "title": "RequestId",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#RequestIdSchema"
      },
      "RestRuleWorkbenchApplyRequest": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "const": true, "type": "boolean" },
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "confirm",
          "expectedConfigurationVersion",
          "expectedDraftVersion",
          "draftId"
        ],
        "title": "RestRuleWorkbenchApplyRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#RestRuleWorkbenchApplyRequestSchema"
      },
      "RestRuleWorkbenchCancelRequest": {
        "additionalProperties": false,
        "properties": {
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["expectedDraftVersion", "draftId"],
        "title": "RestRuleWorkbenchCancelRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#RestRuleWorkbenchCancelRequestSchema"
      },
      "RestRuleWorkbenchDraftCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "historyLimit": { "maximum": 200, "minimum": 1, "type": "integer" },
          "measurementKey": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*$",
            "type": "string"
          }
        },
        "required": ["measurementKey"],
        "title": "RestRuleWorkbenchDraftCreateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#RestRuleWorkbenchDraftCreateRequestSchema"
      },
      "RestRuleWorkbenchDraftReadRequest": {
        "additionalProperties": false,
        "properties": {
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["draftId"],
        "title": "RestRuleWorkbenchDraftReadRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#RestRuleWorkbenchDraftReadRequestSchema"
      },
      "RestRuleWorkbenchDraftUpdateRequest": {
        "additionalProperties": false,
        "properties": {
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "proposal": {
            "additionalProperties": false,
            "properties": {
              "definition": {
                "additionalProperties": false,
                "properties": {
                  "disabledRules": {
                    "items": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "maxItems": 8,
                    "type": "array"
                  },
                  "maximum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "maximumAbsoluteDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "maximumPercentageDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "metricType": {
                    "enum": [
                      "gauge",
                      "count",
                      "rate",
                      "duration",
                      "counter",
                      "size"
                    ],
                    "type": "string"
                  },
                  "minimum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "missingPolicy": {
                    "enum": ["skip", "zero", "reject"],
                    "type": "string"
                  },
                  "ratio": {
                    "additionalProperties": false,
                    "properties": {
                      "denominator": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "maximum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      },
                      "minimum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      }
                    },
                    "type": "object"
                  },
                  "ruleAction": {
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "enum": ["inactive", "active"],
                        "type": "string"
                      },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["mode", "version"],
                    "type": "object"
                  },
                  "rulePolicy": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "consecutiveObservations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "sustainedConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "sustainedCriterion": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "observations",
                                    "type": "string"
                                  },
                                  "observations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "observations"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "elapsed_time",
                                    "type": "string"
                                  },
                                  "seconds": {
                                    "maximum": 604800,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "seconds"],
                                "type": "object"
                              }
                            ]
                          },
                          "transientConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["version"],
                        "type": "object"
                      }
                    ]
                  },
                  "transform": { "enum": ["none", "log1p"], "type": "string" },
                  "unit": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "zeroExpectation": {
                    "anyOf": [
                      { "enum": ["zero", "nonzero"], "type": "string" },
                      { "type": "null" }
                    ]
                  }
                },
                "type": "object"
              },
              "measurementKey": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            },
            "required": ["definition", "measurementKey"],
            "type": "object"
          }
        },
        "required": ["expectedDraftVersion", "proposal", "draftId"],
        "title": "RestRuleWorkbenchDraftUpdateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#RestRuleWorkbenchDraftUpdateRequestSchema",
        "x-signalsitter-source-only-refinements": [
          "The nested measurement patch applies the shared coupled-field and breach-policy refinements."
        ]
      },
      "RestRuleWorkbenchReplayRequest": {
        "additionalProperties": false,
        "properties": {
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["expectedDraftVersion", "draftId"],
        "title": "RestRuleWorkbenchReplayRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rest.ts#RestRuleWorkbenchReplayRequestSchema"
      },
      "RetentionSweepResult": {
        "additionalProperties": false,
        "properties": {
          "sweptAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "tables": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "removed": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "saturated": { "type": "boolean" },
                "table": { "maxLength": 64, "minLength": 1, "type": "string" }
              },
              "required": ["removed", "saturated", "table"],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          }
        },
        "required": ["sweptAt", "tables"],
        "title": "RetentionSweepResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/retention.ts#RetentionSweepResultSchema"
      },
      "RetryAfterHeader": {
        "pattern": "^[1-9][0-9]{0,4}$",
        "title": "RetryAfterHeader",
        "type": "string",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/primitives.ts#RetryAfterHeaderSchema"
      },
      "RuleWorkbenchApplyCommand": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "const": true, "type": "boolean" },
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": [
          "confirm",
          "expectedConfigurationVersion",
          "expectedDraftVersion",
          "jurisdiction",
          "monitorKey",
          "draftId",
          "idempotencyKey"
        ],
        "title": "RuleWorkbenchApplyCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchApplyCommandSchema"
      },
      "RuleWorkbenchApplyRequest": {
        "additionalProperties": false,
        "properties": {
          "confirm": { "const": true, "type": "boolean" },
          "expectedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "confirm",
          "expectedConfigurationVersion",
          "expectedDraftVersion"
        ],
        "title": "RuleWorkbenchApplyRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchApplyRequestSchema"
      },
      "RuleWorkbenchApplyResult": {
        "additionalProperties": false,
        "properties": {
          "configurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "draft": {
            "additionalProperties": false,
            "properties": {
              "appliedConfigurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "baseConfigurationVersion": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "closedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "createdAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "history": {
                "additionalProperties": false,
                "properties": {
                  "fromSequence": {
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "frozenAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "observationCount": {
                    "maximum": 200,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "throughSequence": {
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": ["frozenAt", "observationCount"],
                "type": "object"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "jurisdiction": {
                "enum": ["unrestricted", "eu", "us", "fedramp"],
                "type": "string"
              },
              "monitorKey": {
                "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
                "type": "string"
              },
              "proposal": {
                "additionalProperties": false,
                "properties": {
                  "definition": {
                    "additionalProperties": false,
                    "properties": {
                      "disabledRules": {
                        "items": {
                          "enum": [
                            "minimum",
                            "maximum",
                            "zero",
                            "nonzero",
                            "absolute_delta",
                            "percentage_delta",
                            "ratio_minimum",
                            "ratio_maximum"
                          ],
                          "type": "string"
                        },
                        "maxItems": 8,
                        "type": "array"
                      },
                      "maximum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      },
                      "maximumAbsoluteDelta": {
                        "anyOf": [
                          { "minimum": 0, "type": "number" },
                          { "type": "null" }
                        ]
                      },
                      "maximumPercentageDelta": {
                        "anyOf": [
                          { "minimum": 0, "type": "number" },
                          { "type": "null" }
                        ]
                      },
                      "metricType": {
                        "enum": [
                          "gauge",
                          "count",
                          "rate",
                          "duration",
                          "counter",
                          "size"
                        ],
                        "type": "string"
                      },
                      "minimum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      },
                      "missingPolicy": {
                        "enum": ["skip", "zero", "reject"],
                        "type": "string"
                      },
                      "ratio": {
                        "additionalProperties": false,
                        "properties": {
                          "denominator": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "maximum": {
                            "anyOf": [{ "type": "number" }, { "type": "null" }]
                          },
                          "minimum": {
                            "anyOf": [{ "type": "number" }, { "type": "null" }]
                          }
                        },
                        "type": "object"
                      },
                      "ruleAction": {
                        "additionalProperties": false,
                        "properties": {
                          "mode": {
                            "enum": ["inactive", "active"],
                            "type": "string"
                          },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["mode", "version"],
                        "type": "object"
                      },
                      "rulePolicy": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "consecutiveObservations": {
                                "maximum": 10,
                                "minimum": 1,
                                "type": "integer"
                              },
                              "severity": {
                                "enum": ["info", "warning", "critical"],
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "sustainedConsequence": {
                                "enum": ["none", "info", "warning", "critical"],
                                "type": "string"
                              },
                              "sustainedCriterion": {
                                "oneOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "observations",
                                        "type": "string"
                                      },
                                      "observations": {
                                        "maximum": 10,
                                        "minimum": 1,
                                        "type": "integer"
                                      }
                                    },
                                    "required": ["kind", "observations"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "elapsed_time",
                                        "type": "string"
                                      },
                                      "seconds": {
                                        "maximum": 604800,
                                        "minimum": 1,
                                        "type": "integer"
                                      }
                                    },
                                    "required": ["kind", "seconds"],
                                    "type": "object"
                                  }
                                ]
                              },
                              "transientConsequence": {
                                "enum": ["none", "info", "warning", "critical"],
                                "type": "string"
                              },
                              "version": { "const": 1, "type": "number" }
                            },
                            "required": ["version"],
                            "type": "object"
                          }
                        ]
                      },
                      "transform": {
                        "enum": ["none", "log1p"],
                        "type": "string"
                      },
                      "unit": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                        "type": "string"
                      },
                      "zeroExpectation": {
                        "anyOf": [
                          { "enum": ["zero", "nonzero"], "type": "string" },
                          { "type": "null" }
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "measurementKey": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                },
                "required": ["definition", "measurementKey"],
                "type": "object"
              },
              "status": {
                "anyOf": [
                  { "enum": ["open", "applied", "canceled"], "type": "string" },
                  {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  }
                ]
              },
              "updatedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "version": {
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "baseConfigurationVersion",
              "createdAt",
              "history",
              "id",
              "jurisdiction",
              "monitorKey",
              "proposal",
              "status",
              "updatedAt",
              "version"
            ],
            "type": "object"
          }
        },
        "required": ["configurationVersion", "draft"],
        "title": "RuleWorkbenchApplyResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchApplyResultSchema",
        "x-signalsitter-source-only-refinements": [
          "An apply result carries an applied draft at the resulting configuration version."
        ]
      },
      "RuleWorkbenchCancelCommand": {
        "additionalProperties": false,
        "properties": {
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": [
          "expectedDraftVersion",
          "jurisdiction",
          "monitorKey",
          "draftId",
          "idempotencyKey"
        ],
        "title": "RuleWorkbenchCancelCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchCancelCommandSchema"
      },
      "RuleWorkbenchCancelRequest": {
        "additionalProperties": false,
        "properties": {
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["expectedDraftVersion"],
        "title": "RuleWorkbenchCancelRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchCancelRequestSchema"
      },
      "RuleWorkbenchCancelResult": {
        "additionalProperties": false,
        "properties": {
          "appliedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "baseConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "closedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "history": {
            "additionalProperties": false,
            "properties": {
              "fromSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              },
              "frozenAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "observationCount": {
                "maximum": 200,
                "minimum": 0,
                "type": "integer"
              },
              "throughSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": ["frozenAt", "observationCount"],
            "type": "object"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "proposal": {
            "additionalProperties": false,
            "properties": {
              "definition": {
                "additionalProperties": false,
                "properties": {
                  "disabledRules": {
                    "items": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "maxItems": 8,
                    "type": "array"
                  },
                  "maximum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "maximumAbsoluteDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "maximumPercentageDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "metricType": {
                    "enum": [
                      "gauge",
                      "count",
                      "rate",
                      "duration",
                      "counter",
                      "size"
                    ],
                    "type": "string"
                  },
                  "minimum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "missingPolicy": {
                    "enum": ["skip", "zero", "reject"],
                    "type": "string"
                  },
                  "ratio": {
                    "additionalProperties": false,
                    "properties": {
                      "denominator": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "maximum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      },
                      "minimum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      }
                    },
                    "type": "object"
                  },
                  "ruleAction": {
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "enum": ["inactive", "active"],
                        "type": "string"
                      },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["mode", "version"],
                    "type": "object"
                  },
                  "rulePolicy": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "consecutiveObservations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "sustainedConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "sustainedCriterion": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "observations",
                                    "type": "string"
                                  },
                                  "observations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "observations"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "elapsed_time",
                                    "type": "string"
                                  },
                                  "seconds": {
                                    "maximum": 604800,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "seconds"],
                                "type": "object"
                              }
                            ]
                          },
                          "transientConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["version"],
                        "type": "object"
                      }
                    ]
                  },
                  "transform": { "enum": ["none", "log1p"], "type": "string" },
                  "unit": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "zeroExpectation": {
                    "anyOf": [
                      { "enum": ["zero", "nonzero"], "type": "string" },
                      { "type": "null" }
                    ]
                  }
                },
                "type": "object"
              },
              "measurementKey": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            },
            "required": ["definition", "measurementKey"],
            "type": "object"
          },
          "status": {
            "anyOf": [
              { "enum": ["open", "applied", "canceled"], "type": "string" },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "updatedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "version": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "baseConfigurationVersion",
          "createdAt",
          "history",
          "id",
          "jurisdiction",
          "monitorKey",
          "proposal",
          "status",
          "updatedAt",
          "version"
        ],
        "title": "RuleWorkbenchCancelResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchCancelResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Draft lifecycle timestamps and applied configuration version agree with draft status."
        ]
      },
      "RuleWorkbenchDraft": {
        "additionalProperties": false,
        "properties": {
          "appliedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "baseConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "closedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "history": {
            "additionalProperties": false,
            "properties": {
              "fromSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              },
              "frozenAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "observationCount": {
                "maximum": 200,
                "minimum": 0,
                "type": "integer"
              },
              "throughSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": ["frozenAt", "observationCount"],
            "type": "object"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "proposal": {
            "additionalProperties": false,
            "properties": {
              "definition": {
                "additionalProperties": false,
                "properties": {
                  "disabledRules": {
                    "items": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "maxItems": 8,
                    "type": "array"
                  },
                  "maximum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "maximumAbsoluteDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "maximumPercentageDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "metricType": {
                    "enum": [
                      "gauge",
                      "count",
                      "rate",
                      "duration",
                      "counter",
                      "size"
                    ],
                    "type": "string"
                  },
                  "minimum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "missingPolicy": {
                    "enum": ["skip", "zero", "reject"],
                    "type": "string"
                  },
                  "ratio": {
                    "additionalProperties": false,
                    "properties": {
                      "denominator": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "maximum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      },
                      "minimum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      }
                    },
                    "type": "object"
                  },
                  "ruleAction": {
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "enum": ["inactive", "active"],
                        "type": "string"
                      },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["mode", "version"],
                    "type": "object"
                  },
                  "rulePolicy": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "consecutiveObservations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "sustainedConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "sustainedCriterion": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "observations",
                                    "type": "string"
                                  },
                                  "observations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "observations"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "elapsed_time",
                                    "type": "string"
                                  },
                                  "seconds": {
                                    "maximum": 604800,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "seconds"],
                                "type": "object"
                              }
                            ]
                          },
                          "transientConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["version"],
                        "type": "object"
                      }
                    ]
                  },
                  "transform": { "enum": ["none", "log1p"], "type": "string" },
                  "unit": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "zeroExpectation": {
                    "anyOf": [
                      { "enum": ["zero", "nonzero"], "type": "string" },
                      { "type": "null" }
                    ]
                  }
                },
                "type": "object"
              },
              "measurementKey": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            },
            "required": ["definition", "measurementKey"],
            "type": "object"
          },
          "status": {
            "anyOf": [
              { "enum": ["open", "applied", "canceled"], "type": "string" },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "updatedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "version": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "baseConfigurationVersion",
          "createdAt",
          "history",
          "id",
          "jurisdiction",
          "monitorKey",
          "proposal",
          "status",
          "updatedAt",
          "version"
        ],
        "title": "RuleWorkbenchDraft",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchDraftSchema",
        "x-signalsitter-source-only-refinements": [
          "Draft lifecycle timestamps and applied configuration version agree with draft status."
        ]
      },
      "RuleWorkbenchDraftCreateCommand": {
        "additionalProperties": false,
        "properties": {
          "historyLimit": { "maximum": 200, "minimum": 1, "type": "integer" },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "measurementKey": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*$",
            "type": "string"
          },
          "monitorKey": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": [
          "measurementKey",
          "jurisdiction",
          "monitorKey",
          "idempotencyKey"
        ],
        "title": "RuleWorkbenchDraftCreateCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchDraftCreateCommandSchema"
      },
      "RuleWorkbenchDraftCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "historyLimit": { "maximum": 200, "minimum": 1, "type": "integer" },
          "measurementKey": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*$",
            "type": "string"
          }
        },
        "required": ["measurementKey"],
        "title": "RuleWorkbenchDraftCreateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchDraftCreateRequestSchema"
      },
      "RuleWorkbenchDraftCreateResult": {
        "additionalProperties": false,
        "properties": {
          "appliedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "baseConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "closedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "history": {
            "additionalProperties": false,
            "properties": {
              "fromSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              },
              "frozenAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "observationCount": {
                "maximum": 200,
                "minimum": 0,
                "type": "integer"
              },
              "throughSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": ["frozenAt", "observationCount"],
            "type": "object"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "proposal": {
            "additionalProperties": false,
            "properties": {
              "definition": {
                "additionalProperties": false,
                "properties": {
                  "disabledRules": {
                    "items": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "maxItems": 8,
                    "type": "array"
                  },
                  "maximum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "maximumAbsoluteDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "maximumPercentageDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "metricType": {
                    "enum": [
                      "gauge",
                      "count",
                      "rate",
                      "duration",
                      "counter",
                      "size"
                    ],
                    "type": "string"
                  },
                  "minimum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "missingPolicy": {
                    "enum": ["skip", "zero", "reject"],
                    "type": "string"
                  },
                  "ratio": {
                    "additionalProperties": false,
                    "properties": {
                      "denominator": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "maximum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      },
                      "minimum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      }
                    },
                    "type": "object"
                  },
                  "ruleAction": {
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "enum": ["inactive", "active"],
                        "type": "string"
                      },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["mode", "version"],
                    "type": "object"
                  },
                  "rulePolicy": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "consecutiveObservations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "sustainedConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "sustainedCriterion": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "observations",
                                    "type": "string"
                                  },
                                  "observations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "observations"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "elapsed_time",
                                    "type": "string"
                                  },
                                  "seconds": {
                                    "maximum": 604800,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "seconds"],
                                "type": "object"
                              }
                            ]
                          },
                          "transientConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["version"],
                        "type": "object"
                      }
                    ]
                  },
                  "transform": { "enum": ["none", "log1p"], "type": "string" },
                  "unit": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "zeroExpectation": {
                    "anyOf": [
                      { "enum": ["zero", "nonzero"], "type": "string" },
                      { "type": "null" }
                    ]
                  }
                },
                "type": "object"
              },
              "measurementKey": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            },
            "required": ["definition", "measurementKey"],
            "type": "object"
          },
          "status": {
            "anyOf": [
              { "enum": ["open", "applied", "canceled"], "type": "string" },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "updatedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "version": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "baseConfigurationVersion",
          "createdAt",
          "history",
          "id",
          "jurisdiction",
          "monitorKey",
          "proposal",
          "status",
          "updatedAt",
          "version"
        ],
        "title": "RuleWorkbenchDraftCreateResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchDraftCreateResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Draft lifecycle timestamps and applied configuration version agree with draft status."
        ]
      },
      "RuleWorkbenchDraftReadCommand": {
        "additionalProperties": false,
        "properties": {
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": ["jurisdiction", "monitorKey", "draftId"],
        "title": "RuleWorkbenchDraftReadCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchDraftReadCommandSchema"
      },
      "RuleWorkbenchDraftReadRequest": {
        "additionalProperties": false,
        "properties": {},
        "title": "RuleWorkbenchDraftReadRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchDraftReadRequestSchema"
      },
      "RuleWorkbenchDraftReadResult": {
        "additionalProperties": false,
        "properties": {
          "appliedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "baseConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "closedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "history": {
            "additionalProperties": false,
            "properties": {
              "fromSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              },
              "frozenAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "observationCount": {
                "maximum": 200,
                "minimum": 0,
                "type": "integer"
              },
              "throughSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": ["frozenAt", "observationCount"],
            "type": "object"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "proposal": {
            "additionalProperties": false,
            "properties": {
              "definition": {
                "additionalProperties": false,
                "properties": {
                  "disabledRules": {
                    "items": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "maxItems": 8,
                    "type": "array"
                  },
                  "maximum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "maximumAbsoluteDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "maximumPercentageDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "metricType": {
                    "enum": [
                      "gauge",
                      "count",
                      "rate",
                      "duration",
                      "counter",
                      "size"
                    ],
                    "type": "string"
                  },
                  "minimum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "missingPolicy": {
                    "enum": ["skip", "zero", "reject"],
                    "type": "string"
                  },
                  "ratio": {
                    "additionalProperties": false,
                    "properties": {
                      "denominator": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "maximum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      },
                      "minimum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      }
                    },
                    "type": "object"
                  },
                  "ruleAction": {
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "enum": ["inactive", "active"],
                        "type": "string"
                      },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["mode", "version"],
                    "type": "object"
                  },
                  "rulePolicy": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "consecutiveObservations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "sustainedConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "sustainedCriterion": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "observations",
                                    "type": "string"
                                  },
                                  "observations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "observations"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "elapsed_time",
                                    "type": "string"
                                  },
                                  "seconds": {
                                    "maximum": 604800,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "seconds"],
                                "type": "object"
                              }
                            ]
                          },
                          "transientConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["version"],
                        "type": "object"
                      }
                    ]
                  },
                  "transform": { "enum": ["none", "log1p"], "type": "string" },
                  "unit": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "zeroExpectation": {
                    "anyOf": [
                      { "enum": ["zero", "nonzero"], "type": "string" },
                      { "type": "null" }
                    ]
                  }
                },
                "type": "object"
              },
              "measurementKey": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            },
            "required": ["definition", "measurementKey"],
            "type": "object"
          },
          "status": {
            "anyOf": [
              { "enum": ["open", "applied", "canceled"], "type": "string" },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "updatedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "version": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "baseConfigurationVersion",
          "createdAt",
          "history",
          "id",
          "jurisdiction",
          "monitorKey",
          "proposal",
          "status",
          "updatedAt",
          "version"
        ],
        "title": "RuleWorkbenchDraftReadResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchDraftReadResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Draft lifecycle timestamps and applied configuration version agree with draft status."
        ]
      },
      "RuleWorkbenchDraftUpdateCommand": {
        "additionalProperties": false,
        "properties": {
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "idempotencyKey": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "proposal": {
            "additionalProperties": false,
            "properties": {
              "definition": {
                "additionalProperties": false,
                "properties": {
                  "disabledRules": {
                    "items": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "maxItems": 8,
                    "type": "array"
                  },
                  "maximum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "maximumAbsoluteDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "maximumPercentageDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "metricType": {
                    "enum": [
                      "gauge",
                      "count",
                      "rate",
                      "duration",
                      "counter",
                      "size"
                    ],
                    "type": "string"
                  },
                  "minimum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "missingPolicy": {
                    "enum": ["skip", "zero", "reject"],
                    "type": "string"
                  },
                  "ratio": {
                    "additionalProperties": false,
                    "properties": {
                      "denominator": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "maximum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      },
                      "minimum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      }
                    },
                    "type": "object"
                  },
                  "ruleAction": {
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "enum": ["inactive", "active"],
                        "type": "string"
                      },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["mode", "version"],
                    "type": "object"
                  },
                  "rulePolicy": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "consecutiveObservations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "sustainedConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "sustainedCriterion": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "observations",
                                    "type": "string"
                                  },
                                  "observations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "observations"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "elapsed_time",
                                    "type": "string"
                                  },
                                  "seconds": {
                                    "maximum": 604800,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "seconds"],
                                "type": "object"
                              }
                            ]
                          },
                          "transientConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["version"],
                        "type": "object"
                      }
                    ]
                  },
                  "transform": { "enum": ["none", "log1p"], "type": "string" },
                  "unit": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "zeroExpectation": {
                    "anyOf": [
                      { "enum": ["zero", "nonzero"], "type": "string" },
                      { "type": "null" }
                    ]
                  }
                },
                "type": "object"
              },
              "measurementKey": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            },
            "required": ["definition", "measurementKey"],
            "type": "object"
          }
        },
        "required": [
          "expectedDraftVersion",
          "proposal",
          "jurisdiction",
          "monitorKey",
          "draftId",
          "idempotencyKey"
        ],
        "title": "RuleWorkbenchDraftUpdateCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchDraftUpdateCommandSchema"
      },
      "RuleWorkbenchDraftUpdateRequest": {
        "additionalProperties": false,
        "properties": {
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "proposal": {
            "additionalProperties": false,
            "properties": {
              "definition": {
                "additionalProperties": false,
                "properties": {
                  "disabledRules": {
                    "items": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "maxItems": 8,
                    "type": "array"
                  },
                  "maximum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "maximumAbsoluteDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "maximumPercentageDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "metricType": {
                    "enum": [
                      "gauge",
                      "count",
                      "rate",
                      "duration",
                      "counter",
                      "size"
                    ],
                    "type": "string"
                  },
                  "minimum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "missingPolicy": {
                    "enum": ["skip", "zero", "reject"],
                    "type": "string"
                  },
                  "ratio": {
                    "additionalProperties": false,
                    "properties": {
                      "denominator": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "maximum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      },
                      "minimum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      }
                    },
                    "type": "object"
                  },
                  "ruleAction": {
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "enum": ["inactive", "active"],
                        "type": "string"
                      },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["mode", "version"],
                    "type": "object"
                  },
                  "rulePolicy": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "consecutiveObservations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "sustainedConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "sustainedCriterion": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "observations",
                                    "type": "string"
                                  },
                                  "observations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "observations"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "elapsed_time",
                                    "type": "string"
                                  },
                                  "seconds": {
                                    "maximum": 604800,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "seconds"],
                                "type": "object"
                              }
                            ]
                          },
                          "transientConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["version"],
                        "type": "object"
                      }
                    ]
                  },
                  "transform": { "enum": ["none", "log1p"], "type": "string" },
                  "unit": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "zeroExpectation": {
                    "anyOf": [
                      { "enum": ["zero", "nonzero"], "type": "string" },
                      { "type": "null" }
                    ]
                  }
                },
                "type": "object"
              },
              "measurementKey": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            },
            "required": ["definition", "measurementKey"],
            "type": "object"
          }
        },
        "required": ["expectedDraftVersion", "proposal"],
        "title": "RuleWorkbenchDraftUpdateRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchDraftUpdateRequestSchema"
      },
      "RuleWorkbenchDraftUpdateResult": {
        "additionalProperties": false,
        "properties": {
          "appliedConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "baseConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "closedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "history": {
            "additionalProperties": false,
            "properties": {
              "fromSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              },
              "frozenAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "observationCount": {
                "maximum": 200,
                "minimum": 0,
                "type": "integer"
              },
              "throughSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": ["frozenAt", "observationCount"],
            "type": "object"
          },
          "id": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "description": "Deprecated V1 response spelling for the canonical monitorId; paths, request inputs, and SDK method parameters use monitorId.",
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "proposal": {
            "additionalProperties": false,
            "properties": {
              "definition": {
                "additionalProperties": false,
                "properties": {
                  "disabledRules": {
                    "items": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "maxItems": 8,
                    "type": "array"
                  },
                  "maximum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "maximumAbsoluteDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "maximumPercentageDelta": {
                    "anyOf": [
                      { "minimum": 0, "type": "number" },
                      { "type": "null" }
                    ]
                  },
                  "metricType": {
                    "enum": [
                      "gauge",
                      "count",
                      "rate",
                      "duration",
                      "counter",
                      "size"
                    ],
                    "type": "string"
                  },
                  "minimum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "missingPolicy": {
                    "enum": ["skip", "zero", "reject"],
                    "type": "string"
                  },
                  "ratio": {
                    "additionalProperties": false,
                    "properties": {
                      "denominator": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "maximum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      },
                      "minimum": {
                        "anyOf": [{ "type": "number" }, { "type": "null" }]
                      }
                    },
                    "type": "object"
                  },
                  "ruleAction": {
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "enum": ["inactive", "active"],
                        "type": "string"
                      },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["mode", "version"],
                    "type": "object"
                  },
                  "rulePolicy": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "consecutiveObservations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "sustainedConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "sustainedCriterion": {
                            "oneOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "observations",
                                    "type": "string"
                                  },
                                  "observations": {
                                    "maximum": 10,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "observations"],
                                "type": "object"
                              },
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "kind": {
                                    "const": "elapsed_time",
                                    "type": "string"
                                  },
                                  "seconds": {
                                    "maximum": 604800,
                                    "minimum": 1,
                                    "type": "integer"
                                  }
                                },
                                "required": ["kind", "seconds"],
                                "type": "object"
                              }
                            ]
                          },
                          "transientConsequence": {
                            "enum": ["none", "info", "warning", "critical"],
                            "type": "string"
                          },
                          "version": { "const": 1, "type": "number" }
                        },
                        "required": ["version"],
                        "type": "object"
                      }
                    ]
                  },
                  "transform": { "enum": ["none", "log1p"], "type": "string" },
                  "unit": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "zeroExpectation": {
                    "anyOf": [
                      { "enum": ["zero", "nonzero"], "type": "string" },
                      { "type": "null" }
                    ]
                  }
                },
                "type": "object"
              },
              "measurementKey": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            },
            "required": ["definition", "measurementKey"],
            "type": "object"
          },
          "status": {
            "anyOf": [
              { "enum": ["open", "applied", "canceled"], "type": "string" },
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              }
            ]
          },
          "updatedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "version": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "baseConfigurationVersion",
          "createdAt",
          "history",
          "id",
          "jurisdiction",
          "monitorKey",
          "proposal",
          "status",
          "updatedAt",
          "version"
        ],
        "title": "RuleWorkbenchDraftUpdateResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchDraftUpdateResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Draft lifecycle timestamps and applied configuration version agree with draft status."
        ]
      },
      "RuleWorkbenchEpisodeDiff": {
        "additionalProperties": false,
        "properties": {
          "activeEpisodeCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "addedEpisodeCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "addedEpisodes": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "observationsInEpisode": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "openedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "openedAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "recoveredAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "recoveredAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "severity": {
                  "enum": ["info", "warning", "critical"],
                  "type": "string"
                },
                "triggers": {
                  "items": {
                    "enum": [
                      "explicit_rule",
                      "extreme_deviation",
                      "moderate_confirmation",
                      "persistent_shift"
                    ],
                    "type": "string"
                  },
                  "maxItems": 4,
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "explanation",
                "observationsInEpisode",
                "openedAt",
                "openedAtSequence",
                "severity",
                "triggers"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "changedEpisodeCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "changedEpisodes": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "active": {
                  "additionalProperties": false,
                  "properties": {
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "observationsInEpisode": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "openedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "openedAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "recoveredAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "recoveredAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "triggers": {
                      "items": {
                        "enum": [
                          "explicit_rule",
                          "extreme_deviation",
                          "moderate_confirmation",
                          "persistent_shift"
                        ],
                        "type": "string"
                      },
                      "maxItems": 4,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "explanation",
                    "observationsInEpisode",
                    "openedAt",
                    "openedAtSequence",
                    "severity",
                    "triggers"
                  ],
                  "type": "object"
                },
                "changes": {
                  "items": {
                    "enum": [
                      "opened_at",
                      "recovered_at",
                      "severity",
                      "triggers"
                    ],
                    "type": "string"
                  },
                  "maxItems": 4,
                  "minItems": 1,
                  "type": "array"
                },
                "proposed": {
                  "additionalProperties": false,
                  "properties": {
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "observationsInEpisode": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "openedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "openedAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "recoveredAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "recoveredAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "triggers": {
                      "items": {
                        "enum": [
                          "explicit_rule",
                          "extreme_deviation",
                          "moderate_confirmation",
                          "persistent_shift"
                        ],
                        "type": "string"
                      },
                      "maxItems": 4,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "explanation",
                    "observationsInEpisode",
                    "openedAt",
                    "openedAtSequence",
                    "severity",
                    "triggers"
                  ],
                  "type": "object"
                }
              },
              "required": ["active", "changes", "proposed"],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "proposedEpisodeCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "removedEpisodeCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "removedEpisodes": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "observationsInEpisode": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "openedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "openedAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "recoveredAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "recoveredAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "severity": {
                  "enum": ["info", "warning", "critical"],
                  "type": "string"
                },
                "triggers": {
                  "items": {
                    "enum": [
                      "explicit_rule",
                      "extreme_deviation",
                      "moderate_confirmation",
                      "persistent_shift"
                    ],
                    "type": "string"
                  },
                  "maxItems": 4,
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "explanation",
                "observationsInEpisode",
                "openedAt",
                "openedAtSequence",
                "severity",
                "triggers"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "truncated": { "type": "boolean" },
          "unchangedEpisodes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "activeEpisodeCount",
          "addedEpisodeCount",
          "addedEpisodes",
          "changedEpisodeCount",
          "changedEpisodes",
          "proposedEpisodeCount",
          "removedEpisodeCount",
          "removedEpisodes",
          "truncated",
          "unchangedEpisodes"
        ],
        "title": "RuleWorkbenchEpisodeDiff",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchEpisodeDiffSchema",
        "x-signalsitter-source-only-refinements": [
          "Exact added, removed, changed, and unchanged totals partition both timelines; detail arrays fill their bound and disclose truncation exactly."
        ]
      },
      "RuleWorkbenchFrozenHistory": {
        "additionalProperties": false,
        "properties": {
          "fromSequence": {
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          },
          "frozenAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "observationCount": {
            "maximum": 200,
            "minimum": 0,
            "type": "integer"
          },
          "throughSequence": {
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": ["frozenAt", "observationCount"],
        "title": "RuleWorkbenchFrozenHistory",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchFrozenHistorySchema",
        "x-signalsitter-source-only-refinements": [
          "A non-empty frozen history names an ordered boundary large enough to contain its count; an empty history names neither end."
        ]
      },
      "RuleWorkbenchGraphPoint": {
        "additionalProperties": false,
        "properties": {
          "active": {
            "additionalProperties": false,
            "properties": {
              "incident": {
                "additionalProperties": false,
                "properties": {
                  "explanation": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "outcome": {
                    "enum": [
                      "confirming",
                      "incident_opened",
                      "incident_sustained",
                      "recovery_pending",
                      "recovery_confirmed"
                    ],
                    "type": "string"
                  },
                  "severity": {
                    "enum": ["info", "warning", "critical"],
                    "type": "string"
                  },
                  "triggers": {
                    "items": {
                      "enum": [
                        "explicit_rule",
                        "extreme_deviation",
                        "moderate_confirmation",
                        "persistent_shift"
                      ],
                      "type": "string"
                    },
                    "maxItems": 4,
                    "type": "array"
                  }
                },
                "required": ["explanation", "outcome", "severity", "triggers"],
                "type": "object"
              },
              "measurement": {
                "additionalProperties": false,
                "properties": {
                  "status": {
                    "enum": [
                      "value",
                      "counter_baseline",
                      "counter_reset",
                      "missing_skipped",
                      "missing_zero",
                      "unconfigured"
                    ],
                    "type": "string"
                  },
                  "value": { "type": "number" }
                },
                "required": ["status"],
                "type": "object"
              },
              "ruleEvaluations": {
                "items": {
                  "properties": {
                    "actionable": { "type": "boolean" },
                    "breach": {
                      "additionalProperties": false,
                      "properties": {
                        "consequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "justBecameSustained": { "type": "boolean" },
                        "phase": {
                          "enum": ["clear", "transient", "sustained"],
                          "type": "string"
                        },
                        "progress": {
                          "additionalProperties": false,
                          "properties": {
                            "elapsedSeconds": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "qualifyingObservations": {
                              "maximum": 10,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "remaining": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "startedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "elapsedSeconds",
                            "qualifyingObservations",
                            "remaining"
                          ],
                          "type": "object"
                        },
                        "sustainedConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "sustainedCriterion": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "observations",
                                  "type": "string"
                                },
                                "observations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "observations"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "elapsed_time",
                                  "type": "string"
                                },
                                "seconds": {
                                  "maximum": 604800,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "seconds"],
                              "type": "object"
                            }
                          ]
                        },
                        "transientConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "consequence",
                        "justBecameSustained",
                        "phase",
                        "progress",
                        "sustainedConsequence",
                        "sustainedCriterion",
                        "transientConsequence"
                      ],
                      "type": "object"
                    },
                    "comparison": {
                      "enum": ["at_least", "at_most", "equal", "not_equal"],
                      "type": "string"
                    },
                    "computedValue": { "type": "number" },
                    "denominatorMeasurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "previous_value_missing",
                        "previous_value_zero",
                        "ratio_denominator_missing",
                        "ratio_denominator_zero",
                        "numeric_overflow"
                      ],
                      "type": "string"
                    },
                    "referenceValue": { "type": "number" },
                    "ruleId": {
                      "maxLength": 160,
                      "minLength": 3,
                      "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                      "type": "string"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "status": {
                      "enum": ["passed", "violated", "not_evaluated"],
                      "type": "string"
                    },
                    "threshold": { "type": "number" }
                  },
                  "required": [
                    "actionable",
                    "comparison",
                    "kind",
                    "ruleId",
                    "severity",
                    "status",
                    "threshold"
                  ],
                  "type": "object"
                },
                "maxItems": 32,
                "type": "array"
              }
            },
            "required": ["measurement", "ruleEvaluations"],
            "type": "object"
          },
          "observedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "proposed": {
            "additionalProperties": false,
            "properties": {
              "incident": {
                "additionalProperties": false,
                "properties": {
                  "explanation": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                    "type": "string"
                  },
                  "outcome": {
                    "enum": [
                      "confirming",
                      "incident_opened",
                      "incident_sustained",
                      "recovery_pending",
                      "recovery_confirmed"
                    ],
                    "type": "string"
                  },
                  "severity": {
                    "enum": ["info", "warning", "critical"],
                    "type": "string"
                  },
                  "triggers": {
                    "items": {
                      "enum": [
                        "explicit_rule",
                        "extreme_deviation",
                        "moderate_confirmation",
                        "persistent_shift"
                      ],
                      "type": "string"
                    },
                    "maxItems": 4,
                    "type": "array"
                  }
                },
                "required": ["explanation", "outcome", "severity", "triggers"],
                "type": "object"
              },
              "measurement": {
                "additionalProperties": false,
                "properties": {
                  "status": {
                    "enum": [
                      "value",
                      "counter_baseline",
                      "counter_reset",
                      "missing_skipped",
                      "missing_zero",
                      "unconfigured"
                    ],
                    "type": "string"
                  },
                  "value": { "type": "number" }
                },
                "required": ["status"],
                "type": "object"
              },
              "ruleEvaluations": {
                "items": {
                  "properties": {
                    "actionable": { "type": "boolean" },
                    "breach": {
                      "additionalProperties": false,
                      "properties": {
                        "consequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "justBecameSustained": { "type": "boolean" },
                        "phase": {
                          "enum": ["clear", "transient", "sustained"],
                          "type": "string"
                        },
                        "progress": {
                          "additionalProperties": false,
                          "properties": {
                            "elapsedSeconds": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "qualifyingObservations": {
                              "maximum": 10,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "remaining": {
                              "maximum": 604800,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "startedAt": {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "elapsedSeconds",
                            "qualifyingObservations",
                            "remaining"
                          ],
                          "type": "object"
                        },
                        "sustainedConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        },
                        "sustainedCriterion": {
                          "oneOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "observations",
                                  "type": "string"
                                },
                                "observations": {
                                  "maximum": 10,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "observations"],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "kind": {
                                  "const": "elapsed_time",
                                  "type": "string"
                                },
                                "seconds": {
                                  "maximum": 604800,
                                  "minimum": 1,
                                  "type": "integer"
                                }
                              },
                              "required": ["kind", "seconds"],
                              "type": "object"
                            }
                          ]
                        },
                        "transientConsequence": {
                          "enum": ["none", "info", "warning", "critical"],
                          "type": "string"
                        }
                      },
                      "required": [
                        "consequence",
                        "justBecameSustained",
                        "phase",
                        "progress",
                        "sustainedConsequence",
                        "sustainedCriterion",
                        "transientConsequence"
                      ],
                      "type": "object"
                    },
                    "comparison": {
                      "enum": ["at_least", "at_most", "equal", "not_equal"],
                      "type": "string"
                    },
                    "computedValue": { "type": "number" },
                    "denominatorMeasurementKey": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "zero",
                        "nonzero",
                        "absolute_delta",
                        "percentage_delta",
                        "ratio_minimum",
                        "ratio_maximum"
                      ],
                      "type": "string"
                    },
                    "notEvaluatedReason": {
                      "enum": [
                        "measurement_missing",
                        "counter_baseline",
                        "counter_reset",
                        "previous_value_missing",
                        "previous_value_zero",
                        "ratio_denominator_missing",
                        "ratio_denominator_zero",
                        "numeric_overflow"
                      ],
                      "type": "string"
                    },
                    "referenceValue": { "type": "number" },
                    "ruleId": {
                      "maxLength": 160,
                      "minLength": 3,
                      "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                      "type": "string"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "status": {
                      "enum": ["passed", "violated", "not_evaluated"],
                      "type": "string"
                    },
                    "threshold": { "type": "number" }
                  },
                  "required": [
                    "actionable",
                    "comparison",
                    "kind",
                    "ruleId",
                    "severity",
                    "status",
                    "threshold"
                  ],
                  "type": "object"
                },
                "maxItems": 32,
                "type": "array"
              }
            },
            "required": ["measurement", "ruleEvaluations"],
            "type": "object"
          },
          "sequence": {
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": ["active", "observedAt", "proposed", "sequence"],
        "title": "RuleWorkbenchGraphPoint",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchGraphPointSchema",
        "x-signalsitter-source-only-refinements": [
          "Plotted values agree with normalization status, and incident markers name triggers exactly for triggered outcomes."
        ]
      },
      "RuleWorkbenchMeasurementDefinitionPatch": {
        "additionalProperties": false,
        "properties": {
          "disabledRules": {
            "items": {
              "enum": [
                "minimum",
                "maximum",
                "zero",
                "nonzero",
                "absolute_delta",
                "percentage_delta",
                "ratio_minimum",
                "ratio_maximum"
              ],
              "type": "string"
            },
            "maxItems": 8,
            "type": "array"
          },
          "maximum": { "anyOf": [{ "type": "number" }, { "type": "null" }] },
          "maximumAbsoluteDelta": {
            "anyOf": [{ "minimum": 0, "type": "number" }, { "type": "null" }]
          },
          "maximumPercentageDelta": {
            "anyOf": [{ "minimum": 0, "type": "number" }, { "type": "null" }]
          },
          "metricType": {
            "enum": ["gauge", "count", "rate", "duration", "counter", "size"],
            "type": "string"
          },
          "minimum": { "anyOf": [{ "type": "number" }, { "type": "null" }] },
          "missingPolicy": {
            "enum": ["skip", "zero", "reject"],
            "type": "string"
          },
          "ratio": {
            "additionalProperties": false,
            "properties": {
              "denominator": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              },
              "maximum": {
                "anyOf": [{ "type": "number" }, { "type": "null" }]
              },
              "minimum": { "anyOf": [{ "type": "number" }, { "type": "null" }] }
            },
            "type": "object"
          },
          "ruleAction": {
            "additionalProperties": false,
            "properties": {
              "mode": { "enum": ["inactive", "active"], "type": "string" },
              "version": { "const": 1, "type": "number" }
            },
            "required": ["mode", "version"],
            "type": "object"
          },
          "rulePolicy": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "consecutiveObservations": {
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "severity": {
                    "enum": ["info", "warning", "critical"],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "sustainedConsequence": {
                    "enum": ["none", "info", "warning", "critical"],
                    "type": "string"
                  },
                  "sustainedCriterion": {
                    "oneOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "observations", "type": "string" },
                          "observations": {
                            "maximum": 10,
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": ["kind", "observations"],
                        "type": "object"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "kind": { "const": "elapsed_time", "type": "string" },
                          "seconds": {
                            "maximum": 604800,
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": ["kind", "seconds"],
                        "type": "object"
                      }
                    ]
                  },
                  "transientConsequence": {
                    "enum": ["none", "info", "warning", "critical"],
                    "type": "string"
                  },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["version"],
                "type": "object"
              }
            ]
          },
          "transform": { "enum": ["none", "log1p"], "type": "string" },
          "unit": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "zeroExpectation": {
            "anyOf": [
              { "enum": ["zero", "nonzero"], "type": "string" },
              { "type": "null" }
            ]
          }
        },
        "title": "RuleWorkbenchMeasurementDefinitionPatch",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchMeasurementDefinitionPatchSchema",
        "x-signalsitter-source-only-refinements": [
          "The patch rejects learned-detector mode and sensitivity settings while retaining shared coupled-field refinements."
        ]
      },
      "RuleWorkbenchMeasurementProposal": {
        "additionalProperties": false,
        "properties": {
          "definition": {
            "additionalProperties": false,
            "properties": {
              "disabledRules": {
                "items": {
                  "enum": [
                    "minimum",
                    "maximum",
                    "zero",
                    "nonzero",
                    "absolute_delta",
                    "percentage_delta",
                    "ratio_minimum",
                    "ratio_maximum"
                  ],
                  "type": "string"
                },
                "maxItems": 8,
                "type": "array"
              },
              "maximum": {
                "anyOf": [{ "type": "number" }, { "type": "null" }]
              },
              "maximumAbsoluteDelta": {
                "anyOf": [
                  { "minimum": 0, "type": "number" },
                  { "type": "null" }
                ]
              },
              "maximumPercentageDelta": {
                "anyOf": [
                  { "minimum": 0, "type": "number" },
                  { "type": "null" }
                ]
              },
              "metricType": {
                "enum": [
                  "gauge",
                  "count",
                  "rate",
                  "duration",
                  "counter",
                  "size"
                ],
                "type": "string"
              },
              "minimum": {
                "anyOf": [{ "type": "number" }, { "type": "null" }]
              },
              "missingPolicy": {
                "enum": ["skip", "zero", "reject"],
                "type": "string"
              },
              "ratio": {
                "additionalProperties": false,
                "properties": {
                  "denominator": {
                    "maxLength": 64,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "type": "string"
                  },
                  "maximum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  },
                  "minimum": {
                    "anyOf": [{ "type": "number" }, { "type": "null" }]
                  }
                },
                "type": "object"
              },
              "ruleAction": {
                "additionalProperties": false,
                "properties": {
                  "mode": { "enum": ["inactive", "active"], "type": "string" },
                  "version": { "const": 1, "type": "number" }
                },
                "required": ["mode", "version"],
                "type": "object"
              },
              "rulePolicy": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "consecutiveObservations": {
                        "maximum": 10,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "severity": {
                        "enum": ["info", "warning", "critical"],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "sustainedConsequence": {
                        "enum": ["none", "info", "warning", "critical"],
                        "type": "string"
                      },
                      "sustainedCriterion": {
                        "oneOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": {
                                "const": "observations",
                                "type": "string"
                              },
                              "observations": {
                                "maximum": 10,
                                "minimum": 1,
                                "type": "integer"
                              }
                            },
                            "required": ["kind", "observations"],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "kind": {
                                "const": "elapsed_time",
                                "type": "string"
                              },
                              "seconds": {
                                "maximum": 604800,
                                "minimum": 1,
                                "type": "integer"
                              }
                            },
                            "required": ["kind", "seconds"],
                            "type": "object"
                          }
                        ]
                      },
                      "transientConsequence": {
                        "enum": ["none", "info", "warning", "critical"],
                        "type": "string"
                      },
                      "version": { "const": 1, "type": "number" }
                    },
                    "required": ["version"],
                    "type": "object"
                  }
                ]
              },
              "transform": { "enum": ["none", "log1p"], "type": "string" },
              "unit": {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "zeroExpectation": {
                "anyOf": [
                  { "enum": ["zero", "nonzero"], "type": "string" },
                  { "type": "null" }
                ]
              }
            },
            "type": "object"
          },
          "measurementKey": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*$",
            "type": "string"
          }
        },
        "required": ["definition", "measurementKey"],
        "title": "RuleWorkbenchMeasurementProposal",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchMeasurementProposalSchema",
        "x-signalsitter-source-only-refinements": [
          "The nested measurement patch applies the shared coupled-field and breach-policy refinements."
        ]
      },
      "RuleWorkbenchReplayCommand": {
        "additionalProperties": false,
        "properties": {
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "jurisdiction": {
            "enum": ["unrestricted", "eu", "us", "fedramp"],
            "type": "string"
          },
          "monitorKey": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          }
        },
        "required": [
          "expectedDraftVersion",
          "jurisdiction",
          "monitorKey",
          "draftId"
        ],
        "title": "RuleWorkbenchReplayCommand",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchReplayCommandSchema"
      },
      "RuleWorkbenchReplayCost": {
        "additionalProperties": false,
        "properties": {
          "detectorStageEvaluations": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "graphPointsReturned": {
            "maximum": 200,
            "minimum": 0,
            "type": "integer"
          },
          "measurementEvaluations": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "observationsEvaluated": {
            "maximum": 200,
            "minimum": 0,
            "type": "integer"
          },
          "ruleEvaluations": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "timelineEvaluations": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "detectorStageEvaluations",
          "graphPointsReturned",
          "measurementEvaluations",
          "observationsEvaluated",
          "ruleEvaluations",
          "timelineEvaluations"
        ],
        "title": "RuleWorkbenchReplayCost",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchReplayCostSchema",
        "x-signalsitter-source-only-refinements": [
          "Workbench replay evaluates active and proposed timelines once each."
        ]
      },
      "RuleWorkbenchReplayRequest": {
        "additionalProperties": false,
        "properties": {
          "expectedDraftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["expectedDraftVersion"],
        "title": "RuleWorkbenchReplayRequest",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchReplayRequestSchema"
      },
      "RuleWorkbenchReplayResult": {
        "additionalProperties": false,
        "properties": {
          "activeEpisodeCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "activeEpisodes": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "observationsInEpisode": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "openedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "openedAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "recoveredAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "recoveredAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "severity": {
                  "enum": ["info", "warning", "critical"],
                  "type": "string"
                },
                "triggers": {
                  "items": {
                    "enum": [
                      "explicit_rule",
                      "extreme_deviation",
                      "moderate_confirmation",
                      "persistent_shift"
                    ],
                    "type": "string"
                  },
                  "maxItems": 4,
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "explanation",
                "observationsInEpisode",
                "openedAt",
                "openedAtSequence",
                "severity",
                "triggers"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "baseConfigurationVersion": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "cost": {
            "additionalProperties": false,
            "properties": {
              "detectorStageEvaluations": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "graphPointsReturned": {
                "maximum": 200,
                "minimum": 0,
                "type": "integer"
              },
              "measurementEvaluations": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "observationsEvaluated": {
                "maximum": 200,
                "minimum": 0,
                "type": "integer"
              },
              "ruleEvaluations": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "timelineEvaluations": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "detectorStageEvaluations",
              "graphPointsReturned",
              "measurementEvaluations",
              "observationsEvaluated",
              "ruleEvaluations",
              "timelineEvaluations"
            ],
            "type": "object"
          },
          "diff": {
            "additionalProperties": false,
            "properties": {
              "activeEpisodeCount": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "addedEpisodeCount": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "addedEpisodes": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "observationsInEpisode": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "openedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "openedAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "recoveredAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "recoveredAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "triggers": {
                      "items": {
                        "enum": [
                          "explicit_rule",
                          "extreme_deviation",
                          "moderate_confirmation",
                          "persistent_shift"
                        ],
                        "type": "string"
                      },
                      "maxItems": 4,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "explanation",
                    "observationsInEpisode",
                    "openedAt",
                    "openedAtSequence",
                    "severity",
                    "triggers"
                  ],
                  "type": "object"
                },
                "maxItems": 32,
                "type": "array"
              },
              "changedEpisodeCount": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "changedEpisodes": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "active": {
                      "additionalProperties": false,
                      "properties": {
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "observationsInEpisode": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "openedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "openedAtSequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "recoveredAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "recoveredAtSequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        },
                        "triggers": {
                          "items": {
                            "enum": [
                              "explicit_rule",
                              "extreme_deviation",
                              "moderate_confirmation",
                              "persistent_shift"
                            ],
                            "type": "string"
                          },
                          "maxItems": 4,
                          "minItems": 1,
                          "type": "array"
                        }
                      },
                      "required": [
                        "explanation",
                        "observationsInEpisode",
                        "openedAt",
                        "openedAtSequence",
                        "severity",
                        "triggers"
                      ],
                      "type": "object"
                    },
                    "changes": {
                      "items": {
                        "enum": [
                          "opened_at",
                          "recovered_at",
                          "severity",
                          "triggers"
                        ],
                        "type": "string"
                      },
                      "maxItems": 4,
                      "minItems": 1,
                      "type": "array"
                    },
                    "proposed": {
                      "additionalProperties": false,
                      "properties": {
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "observationsInEpisode": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "openedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "openedAtSequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "recoveredAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "recoveredAtSequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        },
                        "triggers": {
                          "items": {
                            "enum": [
                              "explicit_rule",
                              "extreme_deviation",
                              "moderate_confirmation",
                              "persistent_shift"
                            ],
                            "type": "string"
                          },
                          "maxItems": 4,
                          "minItems": 1,
                          "type": "array"
                        }
                      },
                      "required": [
                        "explanation",
                        "observationsInEpisode",
                        "openedAt",
                        "openedAtSequence",
                        "severity",
                        "triggers"
                      ],
                      "type": "object"
                    }
                  },
                  "required": ["active", "changes", "proposed"],
                  "type": "object"
                },
                "maxItems": 32,
                "type": "array"
              },
              "proposedEpisodeCount": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "removedEpisodeCount": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "removedEpisodes": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "explanation": {
                      "maxLength": 512,
                      "minLength": 1,
                      "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                      "type": "string"
                    },
                    "observationsInEpisode": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "openedAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "openedAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "recoveredAt": {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "type": "string"
                    },
                    "recoveredAtSequence": {
                      "maximum": 9007199254740991,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "severity": {
                      "enum": ["info", "warning", "critical"],
                      "type": "string"
                    },
                    "triggers": {
                      "items": {
                        "enum": [
                          "explicit_rule",
                          "extreme_deviation",
                          "moderate_confirmation",
                          "persistent_shift"
                        ],
                        "type": "string"
                      },
                      "maxItems": 4,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "explanation",
                    "observationsInEpisode",
                    "openedAt",
                    "openedAtSequence",
                    "severity",
                    "triggers"
                  ],
                  "type": "object"
                },
                "maxItems": 32,
                "type": "array"
              },
              "truncated": { "type": "boolean" },
              "unchangedEpisodes": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "activeEpisodeCount",
              "addedEpisodeCount",
              "addedEpisodes",
              "changedEpisodeCount",
              "changedEpisodes",
              "proposedEpisodeCount",
              "removedEpisodeCount",
              "removedEpisodes",
              "truncated",
              "unchangedEpisodes"
            ],
            "type": "object"
          },
          "draftId": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
            "type": "string"
          },
          "draftVersion": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "episodesTruncated": { "type": "boolean" },
          "history": {
            "additionalProperties": false,
            "properties": {
              "fromSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              },
              "frozenAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "type": "string"
              },
              "observationCount": {
                "maximum": 200,
                "minimum": 0,
                "type": "integer"
              },
              "throughSequence": {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": ["frozenAt", "observationCount"],
            "type": "object"
          },
          "measurementKey": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*$",
            "type": "string"
          },
          "overlays": {
            "additionalProperties": false,
            "properties": {
              "linearTrend": {
                "additionalProperties": false,
                "properties": {
                  "points": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "observedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "sequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "value": { "type": "number" }
                      },
                      "required": ["observedAt", "sequence", "value"],
                      "type": "object"
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "readiness": {
                    "enum": ["insufficient_samples", "ready"],
                    "type": "string"
                  },
                  "slopePerSecond": { "type": "number" }
                },
                "required": ["points", "readiness"],
                "type": "object"
              },
              "smoothedAverage": {
                "additionalProperties": false,
                "properties": {
                  "halfLifeSeconds": {
                    "exclusiveMinimum": 0,
                    "type": "number"
                  },
                  "points": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "observedAt": {
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "sequence": {
                          "maximum": 9007199254740991,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "value": { "type": "number" }
                      },
                      "required": ["observedAt", "sequence", "value"],
                      "type": "object"
                    },
                    "maxItems": 200,
                    "type": "array"
                  },
                  "readiness": {
                    "enum": ["insufficient_samples", "ready"],
                    "type": "string"
                  }
                },
                "required": ["points", "readiness"],
                "type": "object"
              }
            },
            "required": ["linearTrend", "smoothedAverage"],
            "type": "object"
          },
          "points": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "active": {
                  "additionalProperties": false,
                  "properties": {
                    "incident": {
                      "additionalProperties": false,
                      "properties": {
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "outcome": {
                          "enum": [
                            "confirming",
                            "incident_opened",
                            "incident_sustained",
                            "recovery_pending",
                            "recovery_confirmed"
                          ],
                          "type": "string"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        },
                        "triggers": {
                          "items": {
                            "enum": [
                              "explicit_rule",
                              "extreme_deviation",
                              "moderate_confirmation",
                              "persistent_shift"
                            ],
                            "type": "string"
                          },
                          "maxItems": 4,
                          "type": "array"
                        }
                      },
                      "required": [
                        "explanation",
                        "outcome",
                        "severity",
                        "triggers"
                      ],
                      "type": "object"
                    },
                    "measurement": {
                      "additionalProperties": false,
                      "properties": {
                        "status": {
                          "enum": [
                            "value",
                            "counter_baseline",
                            "counter_reset",
                            "missing_skipped",
                            "missing_zero",
                            "unconfigured"
                          ],
                          "type": "string"
                        },
                        "value": { "type": "number" }
                      },
                      "required": ["status"],
                      "type": "object"
                    },
                    "ruleEvaluations": {
                      "items": {
                        "properties": {
                          "actionable": { "type": "boolean" },
                          "breach": {
                            "additionalProperties": false,
                            "properties": {
                              "consequence": {
                                "enum": ["none", "info", "warning", "critical"],
                                "type": "string"
                              },
                              "justBecameSustained": { "type": "boolean" },
                              "phase": {
                                "enum": ["clear", "transient", "sustained"],
                                "type": "string"
                              },
                              "progress": {
                                "additionalProperties": false,
                                "properties": {
                                  "elapsedSeconds": {
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "qualifyingObservations": {
                                    "maximum": 10,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "remaining": {
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "startedAt": {
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "elapsedSeconds",
                                  "qualifyingObservations",
                                  "remaining"
                                ],
                                "type": "object"
                              },
                              "sustainedConsequence": {
                                "enum": ["none", "info", "warning", "critical"],
                                "type": "string"
                              },
                              "sustainedCriterion": {
                                "oneOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "observations",
                                        "type": "string"
                                      },
                                      "observations": {
                                        "maximum": 10,
                                        "minimum": 1,
                                        "type": "integer"
                                      }
                                    },
                                    "required": ["kind", "observations"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "elapsed_time",
                                        "type": "string"
                                      },
                                      "seconds": {
                                        "maximum": 604800,
                                        "minimum": 1,
                                        "type": "integer"
                                      }
                                    },
                                    "required": ["kind", "seconds"],
                                    "type": "object"
                                  }
                                ]
                              },
                              "transientConsequence": {
                                "enum": ["none", "info", "warning", "critical"],
                                "type": "string"
                              }
                            },
                            "required": [
                              "consequence",
                              "justBecameSustained",
                              "phase",
                              "progress",
                              "sustainedConsequence",
                              "sustainedCriterion",
                              "transientConsequence"
                            ],
                            "type": "object"
                          },
                          "comparison": {
                            "enum": [
                              "at_least",
                              "at_most",
                              "equal",
                              "not_equal"
                            ],
                            "type": "string"
                          },
                          "computedValue": { "type": "number" },
                          "denominatorMeasurementKey": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "kind": {
                            "enum": [
                              "minimum",
                              "maximum",
                              "zero",
                              "nonzero",
                              "absolute_delta",
                              "percentage_delta",
                              "ratio_minimum",
                              "ratio_maximum"
                            ],
                            "type": "string"
                          },
                          "notEvaluatedReason": {
                            "enum": [
                              "measurement_missing",
                              "counter_baseline",
                              "counter_reset",
                              "previous_value_missing",
                              "previous_value_zero",
                              "ratio_denominator_missing",
                              "ratio_denominator_zero",
                              "numeric_overflow"
                            ],
                            "type": "string"
                          },
                          "referenceValue": { "type": "number" },
                          "ruleId": {
                            "maxLength": 160,
                            "minLength": 3,
                            "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                            "type": "string"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          },
                          "status": {
                            "enum": ["passed", "violated", "not_evaluated"],
                            "type": "string"
                          },
                          "threshold": { "type": "number" }
                        },
                        "required": [
                          "actionable",
                          "comparison",
                          "kind",
                          "ruleId",
                          "severity",
                          "status",
                          "threshold"
                        ],
                        "type": "object"
                      },
                      "maxItems": 32,
                      "type": "array"
                    }
                  },
                  "required": ["measurement", "ruleEvaluations"],
                  "type": "object"
                },
                "observedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "proposed": {
                  "additionalProperties": false,
                  "properties": {
                    "incident": {
                      "additionalProperties": false,
                      "properties": {
                        "explanation": {
                          "maxLength": 512,
                          "minLength": 1,
                          "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                          "type": "string"
                        },
                        "outcome": {
                          "enum": [
                            "confirming",
                            "incident_opened",
                            "incident_sustained",
                            "recovery_pending",
                            "recovery_confirmed"
                          ],
                          "type": "string"
                        },
                        "severity": {
                          "enum": ["info", "warning", "critical"],
                          "type": "string"
                        },
                        "triggers": {
                          "items": {
                            "enum": [
                              "explicit_rule",
                              "extreme_deviation",
                              "moderate_confirmation",
                              "persistent_shift"
                            ],
                            "type": "string"
                          },
                          "maxItems": 4,
                          "type": "array"
                        }
                      },
                      "required": [
                        "explanation",
                        "outcome",
                        "severity",
                        "triggers"
                      ],
                      "type": "object"
                    },
                    "measurement": {
                      "additionalProperties": false,
                      "properties": {
                        "status": {
                          "enum": [
                            "value",
                            "counter_baseline",
                            "counter_reset",
                            "missing_skipped",
                            "missing_zero",
                            "unconfigured"
                          ],
                          "type": "string"
                        },
                        "value": { "type": "number" }
                      },
                      "required": ["status"],
                      "type": "object"
                    },
                    "ruleEvaluations": {
                      "items": {
                        "properties": {
                          "actionable": { "type": "boolean" },
                          "breach": {
                            "additionalProperties": false,
                            "properties": {
                              "consequence": {
                                "enum": ["none", "info", "warning", "critical"],
                                "type": "string"
                              },
                              "justBecameSustained": { "type": "boolean" },
                              "phase": {
                                "enum": ["clear", "transient", "sustained"],
                                "type": "string"
                              },
                              "progress": {
                                "additionalProperties": false,
                                "properties": {
                                  "elapsedSeconds": {
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "qualifyingObservations": {
                                    "maximum": 10,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "remaining": {
                                    "maximum": 604800,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  "startedAt": {
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "elapsedSeconds",
                                  "qualifyingObservations",
                                  "remaining"
                                ],
                                "type": "object"
                              },
                              "sustainedConsequence": {
                                "enum": ["none", "info", "warning", "critical"],
                                "type": "string"
                              },
                              "sustainedCriterion": {
                                "oneOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "observations",
                                        "type": "string"
                                      },
                                      "observations": {
                                        "maximum": 10,
                                        "minimum": 1,
                                        "type": "integer"
                                      }
                                    },
                                    "required": ["kind", "observations"],
                                    "type": "object"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "kind": {
                                        "const": "elapsed_time",
                                        "type": "string"
                                      },
                                      "seconds": {
                                        "maximum": 604800,
                                        "minimum": 1,
                                        "type": "integer"
                                      }
                                    },
                                    "required": ["kind", "seconds"],
                                    "type": "object"
                                  }
                                ]
                              },
                              "transientConsequence": {
                                "enum": ["none", "info", "warning", "critical"],
                                "type": "string"
                              }
                            },
                            "required": [
                              "consequence",
                              "justBecameSustained",
                              "phase",
                              "progress",
                              "sustainedConsequence",
                              "sustainedCriterion",
                              "transientConsequence"
                            ],
                            "type": "object"
                          },
                          "comparison": {
                            "enum": [
                              "at_least",
                              "at_most",
                              "equal",
                              "not_equal"
                            ],
                            "type": "string"
                          },
                          "computedValue": { "type": "number" },
                          "denominatorMeasurementKey": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "kind": {
                            "enum": [
                              "minimum",
                              "maximum",
                              "zero",
                              "nonzero",
                              "absolute_delta",
                              "percentage_delta",
                              "ratio_minimum",
                              "ratio_maximum"
                            ],
                            "type": "string"
                          },
                          "notEvaluatedReason": {
                            "enum": [
                              "measurement_missing",
                              "counter_baseline",
                              "counter_reset",
                              "previous_value_missing",
                              "previous_value_zero",
                              "ratio_denominator_missing",
                              "ratio_denominator_zero",
                              "numeric_overflow"
                            ],
                            "type": "string"
                          },
                          "referenceValue": { "type": "number" },
                          "ruleId": {
                            "maxLength": 160,
                            "minLength": 3,
                            "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
                            "type": "string"
                          },
                          "severity": {
                            "enum": ["info", "warning", "critical"],
                            "type": "string"
                          },
                          "status": {
                            "enum": ["passed", "violated", "not_evaluated"],
                            "type": "string"
                          },
                          "threshold": { "type": "number" }
                        },
                        "required": [
                          "actionable",
                          "comparison",
                          "kind",
                          "ruleId",
                          "severity",
                          "status",
                          "threshold"
                        ],
                        "type": "object"
                      },
                      "maxItems": 32,
                      "type": "array"
                    }
                  },
                  "required": ["measurement", "ruleEvaluations"],
                  "type": "object"
                },
                "sequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": ["active", "observedAt", "proposed", "sequence"],
              "type": "object"
            },
            "maxItems": 200,
            "type": "array"
          },
          "proposedEpisodeCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "proposedEpisodes": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "explanation": {
                  "maxLength": 512,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                  "type": "string"
                },
                "observationsInEpisode": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "openedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "openedAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "recoveredAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "type": "string"
                },
                "recoveredAtSequence": {
                  "maximum": 9007199254740991,
                  "minimum": 1,
                  "type": "integer"
                },
                "severity": {
                  "enum": ["info", "warning", "critical"],
                  "type": "string"
                },
                "triggers": {
                  "items": {
                    "enum": [
                      "explicit_rule",
                      "extreme_deviation",
                      "moderate_confirmation",
                      "persistent_shift"
                    ],
                    "type": "string"
                  },
                  "maxItems": 4,
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "explanation",
                "observationsInEpisode",
                "openedAt",
                "openedAtSequence",
                "severity",
                "triggers"
              ],
              "type": "object"
            },
            "maxItems": 32,
            "type": "array"
          },
          "replayedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "sampling": {
            "additionalProperties": false,
            "properties": {
              "explanation": {
                "maxLength": 512,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
                "type": "string"
              },
              "mode": { "enum": ["none", "uniform"], "type": "string" },
              "omittedPointCount": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "preservedIncidentMarkerCount": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "returnedPointCount": {
                "maximum": 200,
                "minimum": 0,
                "type": "integer"
              },
              "sourcePointCount": {
                "maximum": 200,
                "minimum": 0,
                "type": "integer"
              },
              "totalIncidentMarkerCount": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "explanation",
              "mode",
              "omittedPointCount",
              "preservedIncidentMarkerCount",
              "returnedPointCount",
              "sourcePointCount",
              "totalIncidentMarkerCount"
            ],
            "type": "object"
          },
          "statistics": {
            "additionalProperties": false,
            "properties": {
              "coveredTimeSeconds": { "minimum": 0, "type": "number" },
              "currentValue": { "type": "number" },
              "gapCount": { "maximum": 200, "minimum": 0, "type": "integer" },
              "maximum": { "type": "number" },
              "mean": { "type": "number" },
              "minimum": { "type": "number" },
              "readiness": { "enum": ["empty", "ready"], "type": "string" },
              "sampleCount": {
                "maximum": 200,
                "minimum": 0,
                "type": "integer"
              },
              "standardDeviation": { "minimum": 0, "type": "number" }
            },
            "required": [
              "coveredTimeSeconds",
              "gapCount",
              "readiness",
              "sampleCount"
            ],
            "type": "object"
          }
        },
        "required": [
          "activeEpisodeCount",
          "activeEpisodes",
          "baseConfigurationVersion",
          "cost",
          "diff",
          "draftId",
          "draftVersion",
          "episodesTruncated",
          "history",
          "measurementKey",
          "points",
          "proposedEpisodeCount",
          "proposedEpisodes",
          "replayedAt",
          "sampling"
        ],
        "title": "RuleWorkbenchReplayResult",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchReplayResultSchema",
        "x-signalsitter-source-only-refinements": [
          "Replay timeline, diff, frozen-history, graph, sampling, and deterministic cost counts agree; replay follows the freeze; and any episode truncation is disclosed."
        ]
      },
      "RuleWorkbenchRuleSample": {
        "properties": {
          "actionable": { "type": "boolean" },
          "breach": {
            "additionalProperties": false,
            "properties": {
              "consequence": {
                "enum": ["none", "info", "warning", "critical"],
                "type": "string"
              },
              "justBecameSustained": { "type": "boolean" },
              "phase": {
                "enum": ["clear", "transient", "sustained"],
                "type": "string"
              },
              "progress": {
                "additionalProperties": false,
                "properties": {
                  "elapsedSeconds": {
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "qualifyingObservations": {
                    "maximum": 10,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "remaining": {
                    "maximum": 604800,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "startedAt": {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  }
                },
                "required": [
                  "elapsedSeconds",
                  "qualifyingObservations",
                  "remaining"
                ],
                "type": "object"
              },
              "sustainedConsequence": {
                "enum": ["none", "info", "warning", "critical"],
                "type": "string"
              },
              "sustainedCriterion": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "observations", "type": "string" },
                      "observations": {
                        "maximum": 10,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": ["kind", "observations"],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": { "const": "elapsed_time", "type": "string" },
                      "seconds": {
                        "maximum": 604800,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": ["kind", "seconds"],
                    "type": "object"
                  }
                ]
              },
              "transientConsequence": {
                "enum": ["none", "info", "warning", "critical"],
                "type": "string"
              }
            },
            "required": [
              "consequence",
              "justBecameSustained",
              "phase",
              "progress",
              "sustainedConsequence",
              "sustainedCriterion",
              "transientConsequence"
            ],
            "type": "object"
          },
          "comparison": {
            "enum": ["at_least", "at_most", "equal", "not_equal"],
            "type": "string"
          },
          "computedValue": { "type": "number" },
          "denominatorMeasurementKey": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9_]*$",
            "type": "string"
          },
          "kind": {
            "enum": [
              "minimum",
              "maximum",
              "zero",
              "nonzero",
              "absolute_delta",
              "percentage_delta",
              "ratio_minimum",
              "ratio_maximum"
            ],
            "type": "string"
          },
          "notEvaluatedReason": {
            "enum": [
              "measurement_missing",
              "counter_baseline",
              "counter_reset",
              "previous_value_missing",
              "previous_value_zero",
              "ratio_denominator_missing",
              "ratio_denominator_zero",
              "numeric_overflow"
            ],
            "type": "string"
          },
          "referenceValue": { "type": "number" },
          "ruleId": {
            "maxLength": 160,
            "minLength": 3,
            "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
            "type": "string"
          },
          "severity": {
            "enum": ["info", "warning", "critical"],
            "type": "string"
          },
          "status": {
            "enum": ["passed", "violated", "not_evaluated"],
            "type": "string"
          },
          "threshold": { "type": "number" }
        },
        "required": [
          "actionable",
          "comparison",
          "kind",
          "ruleId",
          "severity",
          "status",
          "threshold"
        ],
        "title": "RuleWorkbenchRuleSample",
        "type": "object",
        "x-signalsitter-runtime-validation": "The generated schema represents the canonical source input constraints.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchRuleSampleSchema"
      },
      "RuleWorkbenchSampling": {
        "additionalProperties": false,
        "properties": {
          "explanation": {
            "maxLength": 512,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]*$",
            "type": "string"
          },
          "mode": { "enum": ["none", "uniform"], "type": "string" },
          "omittedPointCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "preservedIncidentMarkerCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "returnedPointCount": {
            "maximum": 200,
            "minimum": 0,
            "type": "integer"
          },
          "sourcePointCount": {
            "maximum": 200,
            "minimum": 0,
            "type": "integer"
          },
          "totalIncidentMarkerCount": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "explanation",
          "mode",
          "omittedPointCount",
          "preservedIncidentMarkerCount",
          "returnedPointCount",
          "sourcePointCount",
          "totalIncidentMarkerCount"
        ],
        "title": "RuleWorkbenchSampling",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/rule-workbench.ts#RuleWorkbenchSamplingSchema",
        "x-signalsitter-source-only-refinements": [
          "Sampling accounts for every source point and incident marker; unsampled data omits neither."
        ]
      },
      "SchemaChangeRecord": {
        "properties": {
          "affectedContract": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "classification": {
            "enum": ["additive", "deprecation", "breaking"],
            "type": "string"
          },
          "migrationVersion": {
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          },
          "replacement": { "maxLength": 256, "minLength": 1, "type": "string" },
          "reviewedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "summary": { "maxLength": 512, "minLength": 1, "type": "string" }
        },
        "required": [
          "classification",
          "summary",
          "affectedContract",
          "reviewedAt"
        ],
        "title": "SchemaChangeRecord",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/compatibility.ts#SchemaChangeRecordSchema",
        "x-signalsitter-source-only-refinements": [
          "Breaking changes require a migration version and deprecations require a replacement."
        ]
      },
      "VersionedPlan": {
        "additionalProperties": false,
        "properties": {
          "entitlements": {
            "additionalProperties": false,
            "properties": {
              "activeMonitors": {
                "maximum": 100000,
                "minimum": 1,
                "type": "integer"
              },
              "apiRequestsPerMinute": {
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              "callbackEndpoints": {
                "maximum": 50,
                "minimum": 0,
                "type": "integer"
              },
              "detectorFeatures": {
                "items": {
                  "enum": [
                    "heartbeat",
                    "explicit_rule",
                    "adaptive_baseline",
                    "persistent_shift",
                    "seasonal_baseline"
                  ],
                  "type": "string"
                },
                "maxItems": 5,
                "minItems": 1,
                "type": "array"
              },
              "fiveMinuteRetentionSeconds": {
                "default": 0,
                "maximum": 31536000,
                "minimum": 0,
                "type": "integer"
              },
              "hourlyRetentionSeconds": {
                "default": 0,
                "maximum": 31536000,
                "minimum": 0,
                "type": "integer"
              },
              "maximumMeasurementsPerObservation": {
                "maximum": 16,
                "minimum": 0,
                "type": "integer"
              },
              "maximumStoredObservations": {
                "maximum": 1000000,
                "minimum": 64,
                "type": "integer"
              },
              "mcpRequestsPerMinute": {
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              "minimumIntervalSeconds": {
                "maximum": 31536000,
                "minimum": 60,
                "type": "integer"
              },
              "observationRetentionSeconds": {
                "maximum": 31536000,
                "minimum": 3600,
                "type": "integer"
              }
            },
            "required": [
              "activeMonitors",
              "minimumIntervalSeconds",
              "maximumMeasurementsPerObservation",
              "maximumStoredObservations",
              "observationRetentionSeconds",
              "callbackEndpoints",
              "detectorFeatures",
              "apiRequestsPerMinute",
              "mcpRequestsPerMinute"
            ],
            "type": "object"
          },
          "id": {
            "enum": ["free", "builder", "smart", "scale"],
            "type": "string"
          },
          "name": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}]+$",
            "type": "string"
          },
          "version": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": ["id", "name", "version", "entitlements"],
        "title": "VersionedPlan",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/entitlements.ts#VersionedPlanSchema",
        "x-signalsitter-source-only-refinements": [
          "Plan entitlements preserve detector uniqueness, heartbeat availability, and ordered enabled retention horizons."
        ]
      },
      "WhooshBangRecipientSession": {
        "additionalProperties": {},
        "properties": {
          "browser_capability": { "minLength": 1, "type": "string" },
          "hosted_url": { "minLength": 1, "type": "string" },
          "session": {
            "additionalProperties": {},
            "properties": {},
            "type": "object"
          }
        },
        "required": ["browser_capability", "hosted_url", "session"],
        "title": "WhooshBangRecipientSession",
        "type": "object",
        "x-signalsitter-runtime-validation": "The source Zod schema is authoritative; apply its listed source-only refinements after JSON Schema validation.",
        "x-signalsitter-source": "packages/contracts/src/notifications.ts#WhooshBangRecipientSessionSchema",
        "x-signalsitter-source-only-refinements": [
          "WhooshBang owns this response; unlisted members are preserved rather than validated."
        ]
      }
    },
    "securitySchemes": {
      "apiCredential": {
        "bearerFormat": "SignalSitter API credential",
        "description": "Organization-bound SignalSitter API credential. Never place credentials in query parameters.",
        "scheme": "bearer",
        "type": "http"
      },
      "clerkSession": {
        "bearerFormat": "Clerk session JWT",
        "description": "Verified Clerk organization session for browser and human administration.",
        "scheme": "bearer",
        "type": "http"
      },
      "publishCredential": {
        "bearerFormat": "SignalSitter publish credential",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Generated public administration operations, the public heartbeat publish operation, shared V1 contract components, and an explicitly marked development-only fixture operation.",
    "title": "SignalSitter V1 contract artifacts",
    "version": "1.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/_contract/v1/fixtures/{fixtureId}": {
      "get": {
        "operationId": "getContractFixture",
        "parameters": [
          {
            "in": "path",
            "name": "fixtureId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/ContractFixtureId" }
          },
          {
            "in": "header",
            "name": "Signalsitter-Mock-Scenario",
            "required": false,
            "schema": { "$ref": "#/components/schemas/ContractFixtureBehavior" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractFixtureSuccess"
                }
              }
            },
            "description": "Deterministic fixture response",
            "headers": {
              "ETag": {
                "description": "Strong entity tag matching the response body.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid fixture request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication scenario",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authorization scenario",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Tenant-safe not-found scenario",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Conflict scenario",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Retry ambiguity scenario",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [],
        "summary": "Read a deterministic development contract fixture",
        "tags": ["Contract development"],
        "x-signalsitter-mock-only": true
      }
    },
    "/{monitor_key}": {
      "post": {
        "operationId": "publishHeartbeat",
        "parameters": [
          {
            "description": "Customer-defined monitor key.",
            "in": "path",
            "name": "monitor_key",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorKey" }
          },
          {
            "description": "Required key deduplicating the observation and configuration patch together.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": { "$ref": "#/components/schemas/IdempotencyKey" }
          },
          {
            "description": "Optional Signalsitter-Name common monitor setting.",
            "in": "header",
            "name": "Signalsitter-Name",
            "required": false,
            "schema": { "maxLength": 1024, "minLength": 1, "type": "string" }
          },
          {
            "description": "Optional Signalsitter-Interval common monitor setting.",
            "in": "header",
            "name": "Signalsitter-Interval",
            "required": false,
            "schema": { "maxLength": 1024, "minLength": 1, "type": "string" }
          },
          {
            "description": "Optional Signalsitter-Grace common monitor setting.",
            "in": "header",
            "name": "Signalsitter-Grace",
            "required": false,
            "schema": { "maxLength": 1024, "minLength": 1, "type": "string" }
          },
          {
            "description": "Optional Signalsitter-Heartbeat common monitor setting.",
            "in": "header",
            "name": "Signalsitter-Heartbeat",
            "required": false,
            "schema": { "maxLength": 1024, "minLength": 1, "type": "string" }
          },
          {
            "description": "Optional Signalsitter-Callback common monitor setting.",
            "in": "header",
            "name": "Signalsitter-Callback",
            "required": false,
            "schema": { "maxLength": 1024, "minLength": 1, "type": "string" }
          },
          {
            "description": "Optional Signalsitter-Metric-Type common monitor setting.",
            "in": "header",
            "name": "Signalsitter-Metric-Type",
            "required": false,
            "schema": { "maxLength": 1024, "minLength": 1, "type": "string" }
          },
          {
            "description": "Optional Signalsitter-Min common monitor setting.",
            "in": "header",
            "name": "Signalsitter-Min",
            "required": false,
            "schema": { "maxLength": 1024, "minLength": 1, "type": "string" }
          },
          {
            "description": "Optional Signalsitter-Max common monitor setting.",
            "in": "header",
            "name": "Signalsitter-Max",
            "required": false,
            "schema": { "maxLength": 1024, "minLength": 1, "type": "string" }
          },
          {
            "description": "Optional Signalsitter-Sensitivity common monitor setting.",
            "in": "header",
            "name": "Signalsitter-Sensitivity",
            "required": false,
            "schema": { "maxLength": 1024, "minLength": 1, "type": "string" }
          },
          {
            "description": "Optional Signalsitter-Mode common monitor setting.",
            "in": "header",
            "name": "Signalsitter-Mode",
            "required": false,
            "schema": { "maxLength": 1024, "minLength": 1, "type": "string" }
          },
          {
            "description": "Canonical unpadded base64url versioned advanced configuration.",
            "in": "header",
            "name": "Signalsitter-Config",
            "required": false,
            "schema": { "$ref": "#/components/schemas/PublishConfigHeader" }
          },
          {
            "description": "Restricted-jurisdiction fallback used only on the unrestricted host.",
            "in": "header",
            "name": "Signalsitter-Jurisdiction",
            "required": false,
            "schema": { "enum": ["eu", "fedramp", "us"], "type": "string" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishObservationBody"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/PublishAcceptance" }
              }
            },
            "description": "Observation durably accepted",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid publish request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Publish authentication required",
            "headers": {
              "WWW-Authenticate": {
                "description": "Bearer challenge for an invalid or missing publish credential.",
                "required": true,
                "schema": { "type": "string" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Publish permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency-key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Publish input too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported observation media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Retryable publish uncertainty",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "publishCredential": [] }],
        "summary": "Durably accept one heartbeat observation",
        "tags": ["Heartbeat ingest"],
        "x-signalsitter-ingest-hosts": [
          "ingest.signalsitter.com",
          "eu.ingest.signalsitter.com"
        ]
      }
    },
    "/v1/activation/events": {
      "post": {
        "operationId": "recordCredentialMcpActivationEvent",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CredentialMcpActivationEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CredentialMcpActivationEventResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Record a privacy-safe credential and MCP activation event",
        "tags": ["Activation"]
      }
    },
    "/v1/billing/checkout-sessions": {
      "post": {
        "operationId": "createBillingCheckoutSession",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingCheckoutSessionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/BillingSession" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "201": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/BillingSession" }
              }
            },
            "description": "Credential created",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Start a checkout for the verified organization",
        "tags": ["Billing"]
      }
    },
    "/v1/billing/portal-sessions": {
      "post": {
        "operationId": "createBillingPortalSession",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingPortalSessionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/BillingSession" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "201": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/BillingSession" }
              }
            },
            "description": "Credential created",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Open the billing portal for the verified organization's existing customer",
        "tags": ["Billing"]
      }
    },
    "/v1/callbacks": {
      "get": {
        "operationId": "listCallbackEndpoints",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackEndpointListPage"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "List reusable organization callback endpoints",
        "tags": ["Callback endpoints"]
      },
      "post": {
        "operationId": "createCallbackEndpoint",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackEndpointCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackEndpointIssueResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackEndpointIssueResult"
                }
              }
            },
            "description": "Credential created",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Create a webhook, WhooshBang subscriber, or WhooshBang group callback endpoint, revealing a webhook signing secret exactly once",
        "tags": ["Callback endpoints"]
      }
    },
    "/v1/callbacks/{endpointId}": {
      "delete": {
        "operationId": "removeCallbackEndpoint",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque callback endpoint identifier from a prior read.",
            "in": "path",
            "name": "endpointId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/CallbackEndpointId" }
          },
          {
            "description": "Strong resource generation ETag from a prior read.",
            "in": "header",
            "name": "If-Match",
            "required": true,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackEndpointRemovalResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency or concurrent mutation conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "412": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition failed",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "428": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Permanently remove a callback endpoint, its signing secret, and its idempotency history; to stop deliveries reversibly, PATCH lifecycle to disabled instead",
        "tags": ["Callback endpoints"]
      },
      "get": {
        "operationId": "getCallbackEndpoint",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque callback endpoint identifier from a prior read.",
            "in": "path",
            "name": "endpointId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/CallbackEndpointId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackEndpointMetadata"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read one callback endpoint",
        "tags": ["Callback endpoints"]
      },
      "patch": {
        "operationId": "updateCallbackEndpoint",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque callback endpoint identifier from a prior read.",
            "in": "path",
            "name": "endpointId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/CallbackEndpointId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "description": "Strong resource generation ETag from a prior read.",
            "in": "header",
            "name": "If-Match",
            "required": true,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackEndpointUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackEndpointMetadata"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency or concurrent mutation conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "412": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition failed",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "428": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Update a callback endpoint's alias, destination, or lifecycle; setting lifecycle switches deliveries off and back on",
        "tags": ["Callback endpoints"]
      }
    },
    "/v1/callbacks/{endpointId}/rotate": {
      "post": {
        "operationId": "rotateCallbackEndpointSecret",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque callback endpoint identifier from a prior read.",
            "in": "path",
            "name": "endpointId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/CallbackEndpointId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "description": "Strong resource generation ETag from a prior read.",
            "in": "header",
            "name": "If-Match",
            "required": true,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackEndpointRotateSecretRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackEndpointIssueResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency or concurrent mutation conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "412": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition failed",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "428": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Rotate the signing secret with a bounded overlap and reveal it once",
        "tags": ["Callback endpoints"]
      }
    },
    "/v1/callbacks/{endpointId}/test": {
      "post": {
        "operationId": "testCallbackEndpoint",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque callback endpoint identifier from a prior read.",
            "in": "path",
            "name": "endpointId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/CallbackEndpointId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackEndpointTestResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Send one signed test delivery and report what the destination answered; the result gates nothing",
        "tags": ["Callback endpoints"]
      }
    },
    "/v1/credentials": {
      "get": {
        "operationId": "listApiCredentials",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCredentialListPage"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "List API credential metadata",
        "tags": ["API credentials"]
      },
      "post": {
        "operationId": "createApiCredential",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiCredentialCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCredentialIssueResult"
                }
              }
            },
            "description": "Idempotent replay",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "Location": {
                "description": "Canonical credential resource path.",
                "required": true,
                "schema": {
                  "format": "uri-reference",
                  "maxLength": 512,
                  "type": "string"
                }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCredentialIssueResult"
                }
              }
            },
            "description": "Credential created",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "Location": {
                "description": "Canonical credential resource path.",
                "required": true,
                "schema": {
                  "format": "uri-reference",
                  "maxLength": 512,
                  "type": "string"
                }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Create an API credential and reveal its secret once",
        "tags": ["API credentials"]
      }
    },
    "/v1/credentials/{credentialId}": {
      "delete": {
        "operationId": "revokeApiCredential",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "in": "path",
            "name": "credentialId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/ApiCredentialId" }
          },
          {
            "description": "Strong resource generation ETag from a prior read.",
            "in": "header",
            "name": "If-Match",
            "required": true,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCredentialMetadata"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency or concurrent mutation conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "412": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition failed",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "428": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Revoke an API credential",
        "tags": ["API credentials"]
      },
      "get": {
        "operationId": "getApiCredential",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "in": "path",
            "name": "credentialId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/ApiCredentialId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCredentialMetadata"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read API credential metadata",
        "tags": ["API credentials"]
      }
    },
    "/v1/credentials/{credentialId}/rotate": {
      "post": {
        "operationId": "rotateApiCredential",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "in": "path",
            "name": "credentialId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/ApiCredentialId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "description": "Strong resource generation ETag from a prior read.",
            "in": "header",
            "name": "If-Match",
            "required": true,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiCredentialRotateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCredentialIssueResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency or concurrent mutation conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "412": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition failed",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "428": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Rotate an API credential and reveal the replacement secret once",
        "tags": ["API credentials"]
      }
    },
    "/v1/incidents": {
      "get": {
        "operationId": "listIncidents",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Include archived records. Archived records are excluded by default.",
            "in": "query",
            "name": "includeArchived",
            "required": false,
            "schema": { "default": false, "type": "boolean" }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Return only incidents in this state.",
            "in": "query",
            "name": "state",
            "required": false,
            "schema": { "$ref": "#/components/schemas/IncidentState" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/IncidentPage" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "List the organization's incidents newest first across every monitor",
        "tags": ["Incidents"]
      }
    },
    "/v1/mcp/connection-tests": {
      "post": {
        "operationId": "testMcpConnection",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McpConnectionTestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpConnectionTestResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Test a transient API credential through MCP initialization and tool discovery",
        "tags": ["MCP"]
      }
    },
    "/v1/monitors": {
      "get": {
        "operationId": "listMonitors",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Include archived records. Archived records are excluded by default.",
            "in": "query",
            "name": "includeArchived",
            "required": false,
            "schema": { "default": false, "type": "boolean" }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/MonitorSummaryPage" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "List the organization's monitors from the directory with live status fields",
        "tags": ["Monitors"]
      },
      "post": {
        "operationId": "createMonitor",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/MonitorCreateRequest" }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/MonitorCreateResult" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "201": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/MonitorCreateResult" }
              }
            },
            "description": "Credential created",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Create and configure a monitor ready for its first live beat",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}": {
      "delete": {
        "operationId": "deleteMonitor",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "description": "Strong resource generation ETag from a prior read.",
            "in": "header",
            "name": "If-Match",
            "required": true,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorDeletionResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency or concurrent mutation conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "412": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition failed",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "428": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Irreversibly delete a monitor and permanently consume its key",
        "tags": ["Monitors"]
      },
      "get": {
        "operationId": "getMonitorDetail",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Include additive observation source-time and provenance fields. Disabled by default so previously generated strict V1 clients remain compatible.",
            "in": "query",
            "name": "includeObservationProvenance",
            "required": false,
            "schema": { "default": false, "type": "boolean" }
          },
          {
            "description": "Comma-separated measurement keys to project as compact retained datapoints. Supplying it, together with retainedHistoryLimit, adds the additive retainedHistory member to the response; omitting it leaves the response exactly as it was.",
            "in": "query",
            "name": "retainedHistoryMetrics",
            "required": false,
            "schema": { "type": "string" }
          },
          {
            "description": "How many of the newest retained datapoints to project, from 1 to the historical-import maximum. Required whenever retainedHistoryMetrics is supplied.",
            "in": "query",
            "name": "retainedHistoryLimit",
            "required": false,
            "schema": { "maximum": 500, "minimum": 1, "type": "integer" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/MonitorDetail" }
              }
            },
            "description": "Successful response",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read one authoritative monitor and its latest observation",
        "tags": ["Monitors"]
      },
      "patch": {
        "operationId": "updateMonitorConfiguration",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "description": "Strong resource generation ETag from a prior read.",
            "in": "header",
            "name": "If-Match",
            "required": true,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorConfigurationUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorControlResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency or concurrent mutation conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "412": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition failed",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "428": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Update monitor cadence, grace, measurement definitions, and incident policy",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/activation": {
      "get": {
        "operationId": "getMonitorActivation",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/MonitorActivation" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Wait for the first accepted live beat and its next deadline",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/anomaly-feedback": {
      "get": {
        "operationId": "listMonitorAnomalyFeedback",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/AnomalyFeedbackPage" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read every anomaly verdict recorded against one monitor",
        "tags": ["Incidents"]
      }
    },
    "/v1/monitors/{monitorId}/anomaly-replay": {
      "post": {
        "operationId": "replayMonitorAnomalies",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/AnomalyReplayRequest" }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/AnomalyReplayResult" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Replay recent observations through a proposed configuration without changing anything",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/callback": {
      "get": {
        "operationId": "getMonitorCallbackBinding",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorCallbackBindingView"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read a monitor's callback binding and what it resolves to",
        "tags": ["Callback endpoints"]
      },
      "put": {
        "operationId": "setMonitorCallbackBinding",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorCallbackBindingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorCallbackBindingResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Bind a monitor to the default, a named endpoint, an inline URL, or nothing",
        "tags": ["Callback endpoints"]
      }
    },
    "/v1/monitors/{monitorId}/changes": {
      "get": {
        "operationId": "listMonitorChanges",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/MonitorChangePage" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "List monitor configuration and lifecycle changes newest first by configuration version",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/historical-observations": {
      "post": {
        "operationId": "importHistoricalObservations",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HistoricalObservationImportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoricalObservationImportReceipt"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Import one sealed batch of analysis-only observations before the first live beat",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/incidents": {
      "get": {
        "operationId": "listMonitorIncidents",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Include archived records. Archived records are excluded by default.",
            "in": "query",
            "name": "includeArchived",
            "required": false,
            "schema": { "default": false, "type": "boolean" }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Return only incidents in this state.",
            "in": "query",
            "name": "state",
            "required": false,
            "schema": { "$ref": "#/components/schemas/IncidentState" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/IncidentPage" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "List monitor incidents newest first using an opaque cursor",
        "tags": ["Incidents"]
      }
    },
    "/v1/monitors/{monitorId}/incidents/{incidentId}": {
      "get": {
        "operationId": "getMonitorIncident",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque incident identifier from a prior incident read.",
            "in": "path",
            "name": "incidentId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/IncidentId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/Incident" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read one incident and its current state-machine position",
        "tags": ["Incidents"]
      }
    },
    "/v1/monitors/{monitorId}/incidents/{incidentId}/acknowledge": {
      "post": {
        "operationId": "acknowledgeMonitorIncident",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque incident identifier from a prior incident read.",
            "in": "path",
            "name": "incidentId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/IncidentId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentControlRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentControlResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Acknowledge an incident without closing it",
        "tags": ["Incidents"]
      }
    },
    "/v1/monitors/{monitorId}/incidents/{incidentId}/annotations": {
      "post": {
        "operationId": "annotateMonitorIncident",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque incident identifier from a prior incident read.",
            "in": "path",
            "name": "incidentId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/IncidentId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentAnnotateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentControlResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Append an immutable operator annotation to an incident",
        "tags": ["Incidents"]
      }
    },
    "/v1/monitors/{monitorId}/incidents/{incidentId}/anomaly-feedback": {
      "post": {
        "operationId": "submitMonitorAnomalyFeedback",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque incident identifier from a prior incident read.",
            "in": "path",
            "name": "incidentId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/IncidentId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnomalyFeedbackSubmitRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnomalyFeedbackRecord"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Record whether one anomaly was useful, expected, or wrong",
        "tags": ["Incidents"]
      }
    },
    "/v1/monitors/{monitorId}/incidents/{incidentId}/deliveries": {
      "get": {
        "operationId": "listMonitorIncidentDeliveries",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque incident identifier from a prior incident read.",
            "in": "path",
            "name": "incidentId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/IncidentId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackDeliveryDiagnosticsList"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read every callback delivery owed for one incident, with its attempt history",
        "tags": ["Incidents"]
      }
    },
    "/v1/monitors/{monitorId}/incidents/{incidentId}/deliveries/{intentId}/redeliver": {
      "post": {
        "operationId": "redeliverMonitorIncidentDelivery",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque incident identifier from a prior incident read.",
            "in": "path",
            "name": "incidentId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/IncidentId" }
          },
          {
            "description": "Opaque delivery identifier from a prior incident delivery read.",
            "in": "path",
            "name": "intentId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/CallbackIntentId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackDeliveryRedeliverRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbackDeliveryRedeliverResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Ask for one more delivery attempt against a settled delivery",
        "tags": ["Incidents"]
      }
    },
    "/v1/monitors/{monitorId}/incidents/{incidentId}/resolve": {
      "post": {
        "operationId": "resolveMonitorIncident",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque incident identifier from a prior incident read.",
            "in": "path",
            "name": "incidentId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/IncidentId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentControlRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentControlResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Resolve an incident and close its violation family",
        "tags": ["Incidents"]
      }
    },
    "/v1/monitors/{monitorId}/incidents/{incidentId}/timeline": {
      "get": {
        "operationId": "getMonitorIncidentTimeline",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque incident identifier from a prior incident read.",
            "in": "path",
            "name": "incidentId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/IncidentId" }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentTimelinePage"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read the immutable incident timeline in occurrence order",
        "tags": ["Incidents"]
      }
    },
    "/v1/monitors/{monitorId}/lifecycle": {
      "post": {
        "operationId": "controlMonitorLifecycle",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "description": "Strong resource generation ETag from a prior read.",
            "in": "header",
            "name": "If-Match",
            "required": true,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorLifecycleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorControlResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency or concurrent mutation conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "412": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition failed",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "428": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Pause, resume, archive, restore, or schedule monitor maintenance",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/new-normal": {
      "get": {
        "operationId": "previewMonitorNewNormal",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/RegimeChangePreview" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Preview what accepting a new normal would discard",
        "tags": ["Monitors"]
      },
      "post": {
        "operationId": "acceptMonitorNewNormal",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegimeChangeAcceptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegimeChangeAcceptance"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Accept the monitor's current behavior as its new normal",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/observation-series": {
      "get": {
        "operationId": "readMonitorObservationSeries",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Inclusive RFC 3339 lower bound for accepted observation timestamps.",
            "in": "query",
            "name": "since",
            "required": true,
            "schema": { "format": "date-time", "type": "string" }
          },
          {
            "description": "Inclusive RFC 3339 upper bound for accepted observation timestamps.",
            "in": "query",
            "name": "until",
            "required": true,
            "schema": { "format": "date-time", "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorObservationSeries"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read a bounded time-bucketed numerical observation series",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/observations": {
      "get": {
        "operationId": "listMonitorObservations",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Include additive observation source-time and provenance fields. Disabled by default so previously generated strict V1 clients remain compatible.",
            "in": "query",
            "name": "includeObservationProvenance",
            "required": false,
            "schema": { "default": false, "type": "boolean" }
          },
          {
            "description": "Include retained aggregate buckets beyond the raw observation window. Independent of observation provenance and disabled by default for previously generated clients. Repeat the selected export format when resuming; bucket capability is preserved by the export cursor.",
            "in": "query",
            "name": "includeObservationBuckets",
            "required": false,
            "schema": { "default": false, "type": "boolean" }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Inclusive RFC 3339 lower bound for accepted observation timestamps.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": { "format": "date-time", "type": "string" }
          },
          {
            "description": "Inclusive RFC 3339 upper bound for accepted observation timestamps.",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": { "format": "date-time", "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorObservationPage"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "List accepted monitor observations newest first using an opaque cursor",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/rule-workbench/drafts": {
      "post": {
        "operationId": "createMonitorRuleWorkbenchDraft",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestRuleWorkbenchDraftCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/RuleWorkbenchDraft" }
              }
            },
            "description": "Credential created",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Create a versioned rule draft over one frozen retained-history window",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/rule-workbench/drafts/apply": {
      "post": {
        "operationId": "applyMonitorRuleWorkbenchDraft",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestRuleWorkbenchApplyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RuleWorkbenchApplyResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Explicitly confirm and apply a draft when both draft and configuration versions match",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/rule-workbench/drafts/cancel": {
      "post": {
        "operationId": "cancelMonitorRuleWorkbenchDraft",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestRuleWorkbenchCancelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/RuleWorkbenchDraft" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Cancel an open rule draft without changing monitor configuration",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/rule-workbench/drafts/read": {
      "post": {
        "operationId": "getMonitorRuleWorkbenchDraft",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestRuleWorkbenchDraftReadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/RuleWorkbenchDraft" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read a versioned rule workbench draft",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/rule-workbench/drafts/replay": {
      "post": {
        "operationId": "replayMonitorRuleWorkbench",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestRuleWorkbenchReplayRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RuleWorkbenchReplayResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Replay active and proposed rules over the draft's frozen retained history",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/rule-workbench/drafts/update": {
      "post": {
        "operationId": "updateMonitorRuleWorkbenchDraft",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestRuleWorkbenchDraftUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/RuleWorkbenchDraft" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Update a rule proposal only when the draft version still matches",
        "tags": ["Monitors"]
      }
    },
    "/v1/monitors/{monitorId}/test-beat": {
      "post": {
        "operationId": "testMonitorBeat",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Immutable public monitor identifier, normally sufficient within the verified organization.",
            "in": "path",
            "name": "monitorId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/MonitorId" }
          },
          {
            "description": "Optional disambiguator used only when this organization owns the same monitor ID in more than one jurisdiction.",
            "in": "query",
            "name": "jurisdiction",
            "required": false,
            "schema": { "$ref": "#/components/schemas/MonitorJurisdiction" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorTestBeatRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorTestBeatResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Validate a test beat without creating a production event",
        "tags": ["Monitors"]
      }
    },
    "/v1/notifications/recipient-session": {
      "post": {
        "operationId": "openNotificationRecipientSession",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Preferred language for the recipient panel, as a language tag. Optional; WhooshBang falls back to the project's configured default.",
            "in": "query",
            "name": "locale",
            "required": false,
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhooshBangRecipientSession"
                }
              }
            },
            "description": "Credential created",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Open a WhooshBang recipient session for the signed-in person, so they can connect a messenger to their own notifications",
        "tags": ["Notifications"]
      }
    },
    "/v1/onboarding/events": {
      "post": {
        "operationId": "recordMonitorOnboardingEvent",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorOnboardingEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorOnboardingEventResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Record a privacy-safe monitor onboarding activation event",
        "tags": ["Monitors"]
      }
    },
    "/v1/openapi.json": {
      "get": {
        "operationId": "getOpenApiDocument",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Previously returned generated-document ETag for a conditional read.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.oai.openapi+json": {
                "schema": { "type": "object" }
              }
            },
            "description": "Generated OpenAPI 3.1 document",
            "headers": {
              "ETag": {
                "description": "Strong generated-document entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "304": {
            "description": "The generated document matches If-None-Match.",
            "headers": {
              "ETag": {
                "description": "Strong generated-document entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [],
        "summary": "Read the generated SignalSitter V1 OpenAPI document",
        "tags": ["API metadata"]
      }
    },
    "/v1/organization": {
      "get": {
        "operationId": "getOrganizationContext",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/OrganizationContext" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read the verified organization and principal context",
        "tags": ["Organization"]
      }
    },
    "/v1/organization/abuse-suspension/reactivation": {
      "post": {
        "operationId": "reactivateOrganizationAbuseSuspension",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationAbuseStatus"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Reactivate ingest after an organization abuse suspension",
        "tags": ["Organization"]
      }
    },
    "/v1/organization/billing": {
      "get": {
        "operationId": "getOrganizationBilling",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationBillingView"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read the organization's subscription status, dispute state, and grace boundary",
        "tags": ["Billing"]
      }
    },
    "/v1/organization/billing/allotment-transitions": {
      "get": {
        "operationId": "listBillingAllotmentTransitions",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAllotmentTransitionChangePage"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "List monitor suspensions and releases caused by applied plan transitions",
        "tags": ["Billing"]
      }
    },
    "/v1/organization/billing/cancellation-impact": {
      "get": {
        "operationId": "getBillingCancellationImpact",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/PlanChangeImpact" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read what ending the subscription would do to each existing monitor",
        "tags": ["Billing"]
      }
    },
    "/v1/organization/billing/checkout-availability": {
      "get": {
        "operationId": "getBillingCheckoutAvailability",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCheckoutAvailability"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read whether the verified organization may start browser Checkout",
        "tags": ["Billing"]
      }
    },
    "/v1/organization/callback-default": {
      "get": {
        "operationId": "getOrganizationCallbackDefault",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationCallbackDefault"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read the endpoint monitors inherit when they select the default",
        "tags": ["Callback endpoints"]
      },
      "put": {
        "operationId": "setOrganizationCallbackDefault",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationCallbackDefaultRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationCallbackDefault"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Select or clear the organization default callback endpoint",
        "tags": ["Callback endpoints"]
      }
    },
    "/v1/organization/default-jurisdiction": {
      "get": {
        "operationId": "getOrganizationDefaultJurisdiction",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDefaultJurisdiction"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read where monitors are created when the request names no jurisdiction",
        "tags": ["Organization"]
      },
      "put": {
        "operationId": "setOrganizationDefaultJurisdiction",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationDefaultJurisdictionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDefaultJurisdiction"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Choose where future monitors are created; existing monitors never move",
        "tags": ["Organization"]
      }
    },
    "/v1/organization/deletion": {
      "post": {
        "operationId": "deleteOrganization",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationDeletionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDeletionReceipt"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency key conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "End the verified organization: cut off access immediately and schedule durable erasure",
        "tags": ["Organization"]
      }
    },
    "/v1/organization/entitlements": {
      "get": {
        "operationId": "getOrganizationEntitlements",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationEntitlementView"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read the organization's plan, entitlements, usage, and lease freshness",
        "tags": ["Organization"]
      }
    },
    "/v1/organization/export": {
      "get": {
        "operationId": "exportOrganization",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Include additive observation source-time and provenance fields. Disabled by default so previously generated strict V1 clients remain compatible.",
            "in": "query",
            "name": "includeObservationProvenance",
            "required": false,
            "schema": { "default": false, "type": "boolean" }
          },
          {
            "description": "Include retained aggregate buckets beyond the raw observation window. Independent of observation provenance and disabled by default for previously generated clients. Repeat the selected export format when resuming; bucket capability is preserved by the export cursor.",
            "in": "query",
            "name": "includeObservationBuckets",
            "required": false,
            "schema": { "default": false, "type": "boolean" }
          }
        ],
        "responses": {
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Stream the organization's monitors, observations, incidents, and usage without secrets",
        "tags": ["Organization"]
      }
    },
    "/v1/organization/usage": {
      "get": {
        "operationId": "getOrganizationUsage",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationUsageView"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read bounded organization usage, projection freshness, and entitlement alignment",
        "tags": ["Organization"]
      }
    },
    "/v1/projects": {
      "get": {
        "operationId": "listProjects",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ProjectListPage" }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "List the organization's projects",
        "tags": ["Projects"]
      },
      "post": {
        "operationId": "createProject",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/ProjectCreateRequest" }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/Project" }
              }
            },
            "description": "Credential created",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Create a project",
        "tags": ["Projects"]
      }
    },
    "/v1/projects/{projectId}": {
      "delete": {
        "operationId": "deleteProject",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque project identifier from a prior project read or listing.",
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/ProjectId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "description": "Strong resource generation ETag from a prior read.",
            "in": "header",
            "name": "If-Match",
            "required": true,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectDeletionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDeletionReceipt"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDeletionReceipt"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency or concurrent mutation conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "412": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition failed",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "428": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Reserve irreversible erasure of one project",
        "tags": ["Projects"]
      },
      "get": {
        "operationId": "getProject",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque project identifier from a prior project read or listing.",
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/ProjectId" }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/Project" }
              }
            },
            "description": "Successful response",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Read one project",
        "tags": ["Projects"]
      },
      "patch": {
        "operationId": "renameProject",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque project identifier from a prior project read or listing.",
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/ProjectId" }
          },
          {
            "description": "Strong resource generation ETag from a prior read.",
            "in": "header",
            "name": "If-Match",
            "required": true,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/ProjectRenameRequest" }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/Project" }
              }
            },
            "description": "Successful response",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency or concurrent mutation conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "412": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition failed",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "428": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Rename a project without changing its identifier",
        "tags": ["Projects"]
      }
    },
    "/v1/projects/{projectId}/lifecycle": {
      "post": {
        "operationId": "controlProjectLifecycle",
        "parameters": [
          {
            "description": "Optional caller correlation identifier propagated to the response.",
            "in": "header",
            "name": "X-Correlation-ID",
            "required": false,
            "schema": { "$ref": "#/components/schemas/CorrelationId" }
          },
          {
            "description": "Opaque project identifier from a prior project read or listing.",
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": { "$ref": "#/components/schemas/ProjectId" }
          },
          {
            "description": "Opaque retry key retained for the public idempotency window.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._~:/+-]*$",
              "type": "string"
            }
          },
          {
            "description": "Strong resource generation ETag from a prior read.",
            "in": "header",
            "name": "If-Match",
            "required": true,
            "schema": { "$ref": "#/components/schemas/EntityTag" }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectLifecycleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectLifecycleResult"
                }
              }
            },
            "description": "Successful response",
            "headers": {
              "ETag": {
                "description": "Strong credential generation entity tag.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/EntityTag" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Invalid request",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Permission denied",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Resource not found",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Idempotency or concurrent mutation conflict",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "412": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition failed",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "413": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Request payload too large",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Unsupported request media type",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "428": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Entity tag precondition required",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Authentication rate limited",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Internal server error",
            "headers": {
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          },
          "503": {
            "content": {
              "application/problem+json": {
                "schema": { "$ref": "#/components/schemas/ProblemDetails" }
              }
            },
            "description": "Service temporarily unavailable",
            "headers": {
              "Retry-After": {
                "description": "Required retry delay in seconds.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RetryAfterHeader" }
              },
              "X-Correlation-ID": {
                "description": "Correlation identifier shared by related operations.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/CorrelationId" }
              },
              "X-Request-ID": {
                "description": "Request identifier for this response.",
                "required": true,
                "schema": { "$ref": "#/components/schemas/RequestId" }
              }
            }
          }
        },
        "security": [{ "apiCredential": [] }, { "clerkSession": [] }],
        "summary": "Archive or restore one project",
        "tags": ["Projects"]
      }
    }
  },
  "x-signalsitter-scope": "public-api-and-development-fixtures"
}
