{
  "$defs": {
    "Assessment": {
      "additionalProperties": false,
      "properties": {
        "capability_id": {
          "title": "Capability Id",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/SourceSpan"
        },
        "in_ir": {
          "title": "In Ir",
          "type": "boolean"
        },
        "dimensions": {
          "$ref": "#/$defs/Dimensions"
        },
        "effects": {
          "$ref": "#/$defs/Effects"
        },
        "state": {
          "$ref": "#/$defs/State"
        },
        "can_generate_interface": {
          "title": "Can Generate Interface",
          "type": "boolean"
        }
      },
      "required": [
        "capability_id",
        "source",
        "in_ir",
        "dimensions",
        "effects",
        "state",
        "can_generate_interface"
      ],
      "title": "Assessment",
      "type": "object"
    },
    "CallParameter": {
      "additionalProperties": false,
      "description": "Selected JSON or an explicit unknown value with its bounded type name.",
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "value": {
          "$ref": "#/$defs/FrozenJSON"
        },
        "value_type": {
          "anyOf": [
            {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Value Type"
        },
        "origin": {
          "enum": [
            "runtime",
            "unknown"
          ],
          "title": "Origin",
          "type": "string"
        }
      },
      "required": [
        "name",
        "value",
        "origin"
      ],
      "title": "CallParameter",
      "type": "object"
    },
    "CallParameterChange": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "a": {
          "anyOf": [
            {
              "$ref": "#/$defs/CallParameter"
            },
            {
              "type": "null"
            }
          ]
        },
        "b": {
          "anyOf": [
            {
              "$ref": "#/$defs/CallParameter"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "$ref": "#/$defs/ChangeState"
        },
        "type_state": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "name",
        "a",
        "b",
        "state",
        "type_state"
      ],
      "title": "CallParameterChange",
      "type": "object"
    },
    "CapabilityEntry": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "title": "Id",
          "type": "string"
        },
        "module": {
          "title": "Module",
          "type": "string"
        },
        "source_path": {
          "title": "Source Path",
          "type": "string"
        },
        "source_digest": {
          "$ref": "#/$defs/Digest"
        },
        "ir_digest": {
          "$ref": "#/$defs/Digest"
        },
        "readiness_digest": {
          "$ref": "#/$defs/Digest"
        },
        "readiness": {
          "$ref": "#/$defs/State"
        },
        "can_generate_interface": {
          "title": "Can Generate Interface",
          "type": "boolean"
        },
        "execution": {
          "$ref": "#/$defs/ExecutionForm"
        },
        "span": {
          "$ref": "#/$defs/SourceSpan"
        }
      },
      "required": [
        "id",
        "module",
        "source_path",
        "source_digest",
        "ir_digest",
        "readiness_digest",
        "readiness",
        "can_generate_interface",
        "execution",
        "span"
      ],
      "title": "CapabilityEntry",
      "type": "object"
    },
    "CapabilityFocus": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "capability",
          "default": "capability",
          "title": "Kind",
          "type": "string"
        },
        "capability_id": {
          "title": "Capability Id",
          "type": "string"
        },
        "module": {
          "title": "Module",
          "type": "string"
        },
        "source_path": {
          "title": "Source Path",
          "type": "string"
        },
        "capability": {
          "anyOf": [
            {
              "$ref": "#/$defs/CapabilityEntry"
            },
            {
              "type": "null"
            }
          ]
        },
        "local_readiness": {
          "$ref": "#/$defs/Assessment"
        },
        "repository_state": {
          "$ref": "#/$defs/State"
        },
        "selected_state": {
          "$ref": "#/$defs/State"
        },
        "interface_eligible": {
          "title": "Interface Eligible",
          "type": "boolean"
        },
        "global_evidence_complete": {
          "title": "Global Evidence Complete",
          "type": "boolean"
        },
        "reasons": {
          "items": {
            "$ref": "#/$defs/apizr__repository_readiness__model__Reason"
          },
          "title": "Reasons",
          "type": "array"
        }
      },
      "required": [
        "capability_id",
        "module",
        "source_path",
        "capability",
        "local_readiness",
        "repository_state",
        "selected_state",
        "interface_eligible",
        "global_evidence_complete",
        "reasons"
      ],
      "title": "CapabilityFocus",
      "type": "object"
    },
    "CapabilityOwner": {
      "additionalProperties": false,
      "properties": {
        "capability": {
          "enum": [
            "metric_signals",
            "output_candidates",
            "randomness_controls",
            "input_reads"
          ],
          "title": "Capability",
          "type": "string"
        },
        "provider": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProducerIdentity"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "enum": [
            "static",
            "unknown"
          ],
          "title": "State",
          "type": "string"
        }
      },
      "required": [
        "capability",
        "provider",
        "state"
      ],
      "title": "CapabilityOwner",
      "type": "object"
    },
    "CaptureChange": {
      "additionalProperties": false,
      "properties": {
        "mode_a": {
          "$ref": "#/$defs/CaptureMode"
        },
        "mode_b": {
          "$ref": "#/$defs/CaptureMode"
        },
        "a": {
          "anyOf": [
            {
              "$ref": "#/$defs/CaptureIdentity"
            },
            {
              "type": "null"
            }
          ]
        },
        "b": {
          "anyOf": [
            {
              "$ref": "#/$defs/CaptureIdentity"
            },
            {
              "type": "null"
            }
          ]
        },
        "mode_state": {
          "$ref": "#/$defs/ChangeState"
        },
        "identity_state": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "mode_a",
        "mode_b",
        "a",
        "b",
        "mode_state",
        "identity_state"
      ],
      "title": "CaptureChange",
      "type": "object"
    },
    "CaptureIdentity": {
      "additionalProperties": false,
      "properties": {
        "mode": {
          "$ref": "#/$defs/CaptureMode"
        },
        "producer": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Producer",
          "type": "string"
        },
        "producer_version": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Producer Version",
          "type": "string"
        },
        "function": {
          "$ref": "#/$defs/FunctionBinding",
          "default": {
            "module": null,
            "qualified_name": null,
            "definition_id": null,
            "source_digest": null,
            "origin": "unknown"
          }
        },
        "cell": {
          "$ref": "#/$defs/CellIdentity",
          "default": {
            "cell_id": null,
            "execution_count": null,
            "source_digest": null,
            "origin": "unknown"
          }
        },
        "selected_parameters": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 256,
          "title": "Selected Parameters",
          "type": "array"
        }
      },
      "required": [
        "mode",
        "producer",
        "producer_version"
      ],
      "title": "CaptureIdentity",
      "type": "object"
    },
    "CaptureMode": {
      "enum": [
        "cli_run",
        "sdk_session",
        "decorated_call",
        "jupyter_cell",
        "unknown"
      ],
      "title": "CaptureMode",
      "type": "string"
    },
    "CellIdentity": {
      "additionalProperties": false,
      "properties": {
        "cell_id": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cell Id"
        },
        "execution_count": {
          "anyOf": [
            {
              "maximum": 9223372036854775807,
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Execution Count"
        },
        "source_digest": {
          "anyOf": [
            {
              "pattern": "^[0-9a-f]{64}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source Digest"
        },
        "origin": {
          "default": "unknown",
          "enum": [
            "runtime",
            "unknown"
          ],
          "title": "Origin",
          "type": "string"
        }
      },
      "title": "CellIdentity",
      "type": "object"
    },
    "ChangeState": {
      "enum": [
        "same",
        "changed",
        "added",
        "removed",
        "unknown"
      ],
      "title": "ChangeState",
      "type": "string"
    },
    "CodeEvidence": {
      "additionalProperties": false,
      "properties": {
        "reference": {
          "maxLength": 1024,
          "minLength": 1,
          "title": "Reference",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/Source"
        },
        "ir_digest": {
          "$ref": "#/$defs/Digest"
        },
        "readiness_digest": {
          "$ref": "#/$defs/Digest"
        },
        "signal_digest": {
          "$ref": "#/$defs/Digest"
        },
        "diagnostics": {
          "default": [],
          "items": {
            "$ref": "#/$defs/apizr__capabilities__model__Diagnostic"
          },
          "maxItems": 4096,
          "title": "Diagnostics",
          "type": "array"
        }
      },
      "required": [
        "reference",
        "source",
        "ir_digest",
        "readiness_digest",
        "signal_digest"
      ],
      "title": "CodeEvidence",
      "type": "object"
    },
    "DiagnosticCode": {
      "enum": [
        "APIZR-CAP-001",
        "APIZR-CAP-002",
        "APIZR-CAP-003",
        "APIZR-CAP-004",
        "APIZR-CAP-005",
        "APIZR-CAP-006"
      ],
      "title": "DiagnosticCode",
      "type": "string"
    },
    "DifferenceCounts": {
      "additionalProperties": false,
      "properties": {
        "changed": {
          "maximum": 32768,
          "minimum": 0,
          "title": "Changed",
          "type": "integer"
        },
        "added": {
          "maximum": 32768,
          "minimum": 0,
          "title": "Added",
          "type": "integer"
        },
        "removed": {
          "maximum": 32768,
          "minimum": 0,
          "title": "Removed",
          "type": "integer"
        },
        "unknown": {
          "maximum": 32768,
          "minimum": 0,
          "title": "Unknown",
          "type": "integer"
        }
      },
      "required": [
        "changed",
        "added",
        "removed",
        "unknown"
      ],
      "title": "DifferenceCounts",
      "type": "object"
    },
    "Digest": {
      "additionalProperties": false,
      "properties": {
        "algorithm": {
          "const": "sha256",
          "default": "sha256",
          "description": "Digest algorithm identifier, currently fixed to SHA-256 (sha256).",
          "title": "Algorithm",
          "type": "string"
        },
        "value": {
          "description": "The 64-character lowercase hexadecimal SHA-256 digest value, without an algorithm prefix.",
          "pattern": "^[0-9a-f]{64}$",
          "title": "Value",
          "type": "string"
        }
      },
      "required": [
        "value"
      ],
      "title": "Digest",
      "type": "object"
    },
    "Dimension": {
      "additionalProperties": false,
      "properties": {
        "state": {
          "$ref": "#/$defs/State"
        },
        "reasons": {
          "default": [],
          "items": {
            "$ref": "#/$defs/apizr__readiness__model__Reason"
          },
          "title": "Reasons",
          "type": "array"
        }
      },
      "required": [
        "state"
      ],
      "title": "Dimension",
      "type": "object"
    },
    "Dimensions": {
      "additionalProperties": false,
      "properties": {
        "binding": {
          "$ref": "#/$defs/Dimension"
        },
        "execution": {
          "$ref": "#/$defs/Dimension"
        },
        "inputs": {
          "$ref": "#/$defs/Dimension"
        },
        "outputs": {
          "$ref": "#/$defs/Dimension"
        }
      },
      "required": [
        "binding",
        "execution",
        "inputs",
        "outputs"
      ],
      "title": "Dimensions",
      "type": "object"
    },
    "EditorDiagnostic": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "pattern": "^[A-Za-z][A-Za-z0-9_.-]{0,95}$",
          "title": "Code",
          "type": "string"
        },
        "message": {
          "maxLength": 1024,
          "minLength": 1,
          "title": "Message",
          "type": "string"
        },
        "severity": {
          "enum": [
            "error",
            "warning",
            "info"
          ],
          "title": "Severity",
          "type": "string"
        },
        "location": {
          "anyOf": [
            {
              "$ref": "#/$defs/SourceLocation"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "code",
        "message",
        "severity"
      ],
      "title": "EditorDiagnostic",
      "type": "object"
    },
    "Effect": {
      "additionalProperties": false,
      "properties": {
        "value": {
          "$ref": "#/$defs/EffectValue",
          "default": "unknown"
        },
        "evidence": {
          "$ref": "#/$defs/Evidence",
          "default": "unknown"
        }
      },
      "title": "Effect",
      "type": "object"
    },
    "EffectValue": {
      "enum": [
        "true",
        "false",
        "unknown"
      ],
      "title": "EffectValue",
      "type": "string"
    },
    "Effects": {
      "additionalProperties": false,
      "properties": {
        "filesystem_read": {
          "$ref": "#/$defs/Effect"
        },
        "filesystem_write": {
          "$ref": "#/$defs/Effect"
        },
        "network": {
          "$ref": "#/$defs/Effect"
        },
        "environment": {
          "$ref": "#/$defs/Effect"
        },
        "subprocess": {
          "$ref": "#/$defs/Effect"
        },
        "state_mutation": {
          "$ref": "#/$defs/Effect"
        },
        "secrets": {
          "$ref": "#/$defs/Effect"
        },
        "external_service": {
          "$ref": "#/$defs/Effect"
        }
      },
      "title": "Effects",
      "type": "object"
    },
    "EngineCapabilities": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.editor-capabilities/v1",
          "default": "apizr.editor-capabilities/v1",
          "title": "Schema Version",
          "type": "string"
        },
        "protocol": {
          "const": "apizr.editor/v1",
          "default": "apizr.editor/v1",
          "title": "Protocol",
          "type": "string"
        },
        "engine_version": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Engine Version",
          "type": "string"
        },
        "operations": {
          "items": {
            "$ref": "#/$defs/OperationCapability"
          },
          "maxItems": 6,
          "minItems": 6,
          "title": "Operations",
          "type": "array"
        },
        "providers": {
          "items": {
            "$ref": "#/$defs/ProviderDescriptor"
          },
          "maxItems": 128,
          "title": "Providers",
          "type": "array"
        },
        "max_request_bytes": {
          "const": 65536,
          "default": 65536,
          "title": "Max Request Bytes",
          "type": "integer"
        },
        "max_response_bytes": {
          "const": 4194304,
          "default": 4194304,
          "title": "Max Response Bytes",
          "type": "integer"
        }
      },
      "required": [
        "engine_version",
        "operations",
        "providers"
      ],
      "title": "EngineCapabilities",
      "type": "object"
    },
    "EnvironmentArtifactChange": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "a": {
          "anyOf": [
            {
              "$ref": "#/$defs/InputArtifact"
            },
            {
              "type": "null"
            }
          ]
        },
        "b": {
          "anyOf": [
            {
              "$ref": "#/$defs/InputArtifact"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "name",
        "a",
        "b",
        "state"
      ],
      "title": "EnvironmentArtifactChange",
      "type": "object"
    },
    "EnvironmentChange": {
      "additionalProperties": false,
      "properties": {
        "python_implementation": {
          "$ref": "#/$defs/EnvironmentScalarChange"
        },
        "python_version": {
          "$ref": "#/$defs/EnvironmentScalarChange"
        },
        "platform": {
          "$ref": "#/$defs/EnvironmentScalarChange"
        },
        "architecture": {
          "$ref": "#/$defs/EnvironmentScalarChange"
        },
        "packages": {
          "items": {
            "$ref": "#/$defs/PackageChange"
          },
          "maxItems": 8192,
          "title": "Packages",
          "type": "array"
        },
        "artifacts": {
          "items": {
            "$ref": "#/$defs/EnvironmentArtifactChange"
          },
          "maxItems": 128,
          "title": "Artifacts",
          "type": "array"
        }
      },
      "required": [
        "python_implementation",
        "python_version",
        "platform",
        "architecture",
        "packages",
        "artifacts"
      ],
      "title": "EnvironmentChange",
      "type": "object"
    },
    "EnvironmentDiagnostic": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "anyOf": [
            {
              "enum": [
                "environment_specs_limit",
                "environment_specs_unreadable",
                "environment_spec_reference_invalid",
                "environment_value_unavailable",
                "environment_package_missing",
                "environment_package_unreadable"
              ],
              "type": "string"
            },
            {
              "enum": [
                "dynamic_input_reference",
                "unsupported_input_reference",
                "nonportable_input_reference",
                "input_missing",
                "input_symlink",
                "input_not_regular",
                "input_too_large",
                "input_changed_during_read",
                "remote_content_unverified",
                "explicit_input_invalid",
                "input_unreadable",
                "input_format_conflict",
                "input_name_required",
                "input_discovery_limit",
                "input_source_invalid"
              ],
              "type": "string"
            }
          ],
          "title": "Code"
        },
        "name": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        }
      },
      "required": [
        "code"
      ],
      "title": "EnvironmentDiagnostic",
      "type": "object"
    },
    "EnvironmentEvidence": {
      "additionalProperties": false,
      "properties": {
        "python_implementation": {
          "anyOf": [
            {
              "$ref": "#/$defs/EnvironmentValue"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "python_version": {
          "anyOf": [
            {
              "$ref": "#/$defs/EnvironmentValue"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "platform": {
          "anyOf": [
            {
              "$ref": "#/$defs/EnvironmentValue"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "architecture": {
          "anyOf": [
            {
              "$ref": "#/$defs/EnvironmentValue"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "packages": {
          "default": [],
          "items": {
            "$ref": "#/$defs/PackageEvidence"
          },
          "maxItems": 4096,
          "title": "Packages",
          "type": "array"
        },
        "artifacts": {
          "default": [],
          "items": {
            "$ref": "#/$defs/InputArtifact"
          },
          "maxItems": 64,
          "title": "Artifacts",
          "type": "array"
        }
      },
      "title": "EnvironmentEvidence",
      "type": "object"
    },
    "EnvironmentResult": {
      "additionalProperties": false,
      "properties": {
        "evidence": {
          "$ref": "#/$defs/EnvironmentEvidence"
        },
        "diagnostics": {
          "default": [],
          "items": {
            "$ref": "#/$defs/EnvironmentDiagnostic"
          },
          "maxItems": 128,
          "title": "Diagnostics",
          "type": "array"
        }
      },
      "required": [
        "evidence"
      ],
      "title": "EnvironmentResult",
      "type": "object"
    },
    "EnvironmentScalarChange": {
      "additionalProperties": false,
      "properties": {
        "a": {
          "anyOf": [
            {
              "$ref": "#/$defs/EnvironmentValue"
            },
            {
              "type": "null"
            }
          ]
        },
        "b": {
          "anyOf": [
            {
              "$ref": "#/$defs/EnvironmentValue"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "a",
        "b",
        "state"
      ],
      "title": "EnvironmentScalarChange",
      "type": "object"
    },
    "EnvironmentValue": {
      "additionalProperties": false,
      "properties": {
        "value": {
          "anyOf": [
            {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value"
        },
        "origin": {
          "$ref": "#/$defs/EvidenceOrigin"
        }
      },
      "required": [
        "value",
        "origin"
      ],
      "title": "EnvironmentValue",
      "type": "object"
    },
    "Evidence": {
      "enum": [
        "declared",
        "observed",
        "inferred",
        "unknown"
      ],
      "title": "Evidence",
      "type": "string"
    },
    "EvidenceLocation": {
      "additionalProperties": false,
      "description": "JSON pointer to retained evidence, with original notebook location if present.",
      "properties": {
        "evidence": {
          "maxLength": 128,
          "pattern": "^/(code/diagnostics|data/(artifacts|diagnostics)|parameters/(signals|diagnostics)|randomness/(controls|diagnostics)|metrics/signals|outputs/(signals|diagnostics)|serving/readiness/(assessments|structured_types))/[0-9]+$",
          "title": "Evidence",
          "type": "string"
        },
        "location": {
          "$ref": "#/$defs/SourceLocation"
        }
      },
      "required": [
        "evidence",
        "location"
      ],
      "title": "EvidenceLocation",
      "type": "object"
    },
    "EvidenceOrigin": {
      "enum": [
        "declared",
        "static",
        "runtime",
        "unknown"
      ],
      "title": "EvidenceOrigin",
      "type": "string"
    },
    "ExecutionForm": {
      "enum": [
        "sync",
        "async",
        "generator",
        "async_generator"
      ],
      "title": "ExecutionForm",
      "type": "string"
    },
    "ExecutionIntent": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Kind",
          "type": "string"
        },
        "policy_digest": {
          "anyOf": [
            {
              "pattern": "^[0-9a-f]{64}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Policy Digest"
        },
        "controls": {
          "default": [],
          "items": {
            "$ref": "#/$defs/Parameter"
          },
          "maxItems": 128,
          "title": "Controls",
          "type": "array"
        }
      },
      "required": [
        "kind"
      ],
      "title": "ExecutionIntent",
      "type": "object"
    },
    "ExperimentDiff": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-diff/v1",
          "default": "apizr.experiment-diff/v1",
          "title": "Schema Version",
          "type": "string"
        },
        "run_a_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Run A Digest",
          "type": "string"
        },
        "run_b_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Run B Digest",
          "type": "string"
        },
        "plan_a_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Plan A Digest",
          "type": "string"
        },
        "plan_b_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Plan B Digest",
          "type": "string"
        },
        "plan_state": {
          "$ref": "#/$defs/ChangeState"
        },
        "source": {
          "$ref": "#/$defs/SourceChange"
        },
        "serving": {
          "$ref": "#/$defs/ChangeState"
        },
        "data": {
          "items": {
            "$ref": "#/$defs/InputChange"
          },
          "maxItems": 1024,
          "title": "Data",
          "type": "array"
        },
        "parameters": {
          "items": {
            "$ref": "#/$defs/ParameterChange"
          },
          "maxItems": 1024,
          "title": "Parameters",
          "type": "array"
        },
        "randomness": {
          "items": {
            "$ref": "#/$defs/RandomnessChange"
          },
          "maxItems": 512,
          "title": "Randomness",
          "type": "array"
        },
        "planned_environment": {
          "$ref": "#/$defs/EnvironmentChange"
        },
        "observed_environment": {
          "$ref": "#/$defs/EnvironmentChange"
        },
        "status": {
          "$ref": "#/$defs/StatusChange"
        },
        "metrics": {
          "items": {
            "$ref": "#/$defs/MetricChange"
          },
          "maxItems": 512,
          "title": "Metrics",
          "type": "array"
        },
        "outputs": {
          "items": {
            "$ref": "#/$defs/OutputChange"
          },
          "maxItems": 512,
          "title": "Outputs",
          "type": "array"
        },
        "material_counts": {
          "$ref": "#/$defs/DifferenceCounts"
        },
        "result_counts": {
          "$ref": "#/$defs/DifferenceCounts"
        },
        "providers": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProviderChange"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "run_a_digest",
        "run_b_digest",
        "plan_a_digest",
        "plan_b_digest",
        "plan_state",
        "source",
        "serving",
        "data",
        "parameters",
        "randomness",
        "planned_environment",
        "observed_environment",
        "status",
        "metrics",
        "outputs",
        "material_counts",
        "result_counts"
      ],
      "title": "ExperimentDiff",
      "type": "object"
    },
    "ExperimentDiffV2": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-diff/v2",
          "default": "apizr.experiment-diff/v2",
          "title": "Schema Version",
          "type": "string"
        },
        "run_a_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Run A Digest",
          "type": "string"
        },
        "run_b_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Run B Digest",
          "type": "string"
        },
        "plan_a_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Plan A Digest",
          "type": "string"
        },
        "plan_b_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Plan B Digest",
          "type": "string"
        },
        "plan_state": {
          "$ref": "#/$defs/ChangeState"
        },
        "source": {
          "$ref": "#/$defs/SourceChangeV2"
        },
        "serving": {
          "$ref": "#/$defs/ChangeState"
        },
        "data": {
          "items": {
            "$ref": "#/$defs/InputChange"
          },
          "maxItems": 1024,
          "title": "Data",
          "type": "array"
        },
        "parameters": {
          "items": {
            "$ref": "#/$defs/ParameterChange"
          },
          "maxItems": 1024,
          "title": "Parameters",
          "type": "array"
        },
        "randomness": {
          "items": {
            "$ref": "#/$defs/RandomnessChange"
          },
          "maxItems": 512,
          "title": "Randomness",
          "type": "array"
        },
        "planned_environment": {
          "$ref": "#/$defs/EnvironmentChange"
        },
        "observed_environment": {
          "$ref": "#/$defs/EnvironmentChange"
        },
        "status": {
          "$ref": "#/$defs/StatusChange"
        },
        "metrics": {
          "items": {
            "$ref": "#/$defs/MetricChange"
          },
          "maxItems": 512,
          "title": "Metrics",
          "type": "array"
        },
        "outputs": {
          "items": {
            "$ref": "#/$defs/OutputChange"
          },
          "maxItems": 512,
          "title": "Outputs",
          "type": "array"
        },
        "material_counts": {
          "$ref": "#/$defs/DifferenceCounts"
        },
        "result_counts": {
          "$ref": "#/$defs/DifferenceCounts"
        },
        "providers": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProviderChange"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "capture": {
          "$ref": "#/$defs/CaptureChange"
        },
        "call_parameters": {
          "items": {
            "$ref": "#/$defs/CallParameterChange"
          },
          "maxItems": 512,
          "title": "Call Parameters",
          "type": "array"
        }
      },
      "required": [
        "run_a_digest",
        "run_b_digest",
        "plan_a_digest",
        "plan_b_digest",
        "plan_state",
        "source",
        "serving",
        "data",
        "parameters",
        "randomness",
        "planned_environment",
        "observed_environment",
        "status",
        "metrics",
        "outputs",
        "material_counts",
        "result_counts",
        "capture",
        "call_parameters"
      ],
      "title": "ExperimentDiffV2",
      "type": "object"
    },
    "ExperimentInspection": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-inspection/v1",
          "default": "apizr.experiment-inspection/v1",
          "title": "Schema Version",
          "type": "string"
        },
        "execution": {
          "const": "not_executed",
          "default": "not_executed",
          "title": "Execution",
          "type": "string"
        },
        "fingerprint_policy": {
          "$ref": "#/$defs/FingerprintPolicy"
        },
        "code": {
          "$ref": "#/$defs/CodeEvidence"
        },
        "data": {
          "$ref": "#/$defs/InputResult"
        },
        "parameters": {
          "$ref": "#/$defs/ParameterDiscoveryResult"
        },
        "randomness": {
          "$ref": "#/$defs/RandomnessResult"
        },
        "environment": {
          "$ref": "#/$defs/EnvironmentResult"
        },
        "metrics": {
          "$ref": "#/$defs/MetricDiscoveryResult"
        },
        "outputs": {
          "$ref": "#/$defs/OutputDiscoveryResult"
        },
        "serving": {
          "$ref": "#/$defs/ServingEvidence"
        },
        "locations": {
          "default": [],
          "items": {
            "$ref": "#/$defs/EvidenceLocation"
          },
          "maxItems": 8192,
          "title": "Locations",
          "type": "array"
        },
        "states": {
          "$ref": "#/$defs/InspectionStates"
        },
        "providers": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProviderReport"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "fingerprint_policy",
        "code",
        "data",
        "parameters",
        "randomness",
        "environment",
        "metrics",
        "outputs",
        "serving",
        "states"
      ],
      "title": "ExperimentInspection",
      "type": "object"
    },
    "ExperimentPlan": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-plan/v1",
          "default": "apizr.experiment-plan/v1",
          "title": "Schema Version",
          "type": "string"
        },
        "subject": {
          "$ref": "#/$defs/SourceIdentity"
        },
        "execution": {
          "$ref": "#/$defs/ExecutionIntent"
        },
        "inputs": {
          "default": [],
          "items": {
            "$ref": "#/$defs/InputArtifact"
          },
          "maxItems": 256,
          "title": "Inputs",
          "type": "array"
        },
        "parameters": {
          "default": [],
          "items": {
            "$ref": "#/$defs/Parameter"
          },
          "maxItems": 256,
          "title": "Parameters",
          "type": "array"
        },
        "randomness": {
          "default": [],
          "items": {
            "$ref": "#/$defs/RandomnessControl"
          },
          "maxItems": 128,
          "title": "Randomness",
          "type": "array"
        },
        "environment": {
          "anyOf": [
            {
              "$ref": "#/$defs/EnvironmentEvidence"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "subject",
        "execution"
      ],
      "title": "ExperimentPlan",
      "type": "object"
    },
    "ExperimentPlanV2": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-plan/v2",
          "default": "apizr.experiment-plan/v2",
          "title": "Schema Version",
          "type": "string"
        },
        "subject": {
          "$ref": "#/$defs/SourceEvidence"
        },
        "execution": {
          "$ref": "#/$defs/ExecutionIntent"
        },
        "capture": {
          "$ref": "#/$defs/CaptureIdentity"
        },
        "inputs": {
          "default": [],
          "items": {
            "$ref": "#/$defs/InputArtifact"
          },
          "maxItems": 256,
          "title": "Inputs",
          "type": "array"
        },
        "parameters": {
          "default": [],
          "items": {
            "$ref": "#/$defs/Parameter"
          },
          "maxItems": 256,
          "title": "Parameters",
          "type": "array"
        },
        "randomness": {
          "default": [],
          "items": {
            "$ref": "#/$defs/RandomnessControl"
          },
          "maxItems": 128,
          "title": "Randomness",
          "type": "array"
        },
        "environment": {
          "anyOf": [
            {
              "$ref": "#/$defs/EnvironmentEvidence"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "subject",
        "execution",
        "capture"
      ],
      "title": "ExperimentPlanV2",
      "type": "object"
    },
    "ExperimentRun": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-run/v1",
          "default": "apizr.experiment-run/v1",
          "title": "Schema Version",
          "type": "string"
        },
        "plan_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Plan Digest",
          "type": "string"
        },
        "subject": {
          "$ref": "#/$defs/SourceIdentity"
        },
        "status": {
          "enum": [
            "success",
            "failed",
            "cancelled"
          ],
          "title": "Status",
          "type": "string"
        },
        "observed_inputs": {
          "default": [],
          "items": {
            "$ref": "#/$defs/InputArtifact"
          },
          "maxItems": 256,
          "title": "Observed Inputs",
          "type": "array"
        },
        "effective_parameters": {
          "default": [],
          "items": {
            "$ref": "#/$defs/Parameter"
          },
          "maxItems": 256,
          "title": "Effective Parameters",
          "type": "array"
        },
        "randomness": {
          "default": [],
          "items": {
            "$ref": "#/$defs/RandomnessControl"
          },
          "maxItems": 128,
          "title": "Randomness",
          "type": "array"
        },
        "environment": {
          "anyOf": [
            {
              "$ref": "#/$defs/EnvironmentEvidence"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "metrics": {
          "default": [],
          "items": {
            "$ref": "#/$defs/Metric"
          },
          "maxItems": 256,
          "title": "Metrics",
          "type": "array"
        },
        "outputs": {
          "default": [],
          "items": {
            "$ref": "#/$defs/OutputArtifact"
          },
          "maxItems": 256,
          "title": "Outputs",
          "type": "array"
        },
        "timing": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunTiming"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "diagnostics": {
          "default": [],
          "items": {
            "$ref": "#/$defs/RunDiagnostic"
          },
          "maxItems": 32,
          "title": "Diagnostics",
          "type": "array"
        }
      },
      "required": [
        "plan_digest",
        "subject",
        "status"
      ],
      "title": "ExperimentRun",
      "type": "object"
    },
    "ExperimentRunV2": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-run/v2",
          "default": "apizr.experiment-run/v2",
          "title": "Schema Version",
          "type": "string"
        },
        "plan_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Plan Digest",
          "type": "string"
        },
        "subject": {
          "$ref": "#/$defs/SourceEvidence"
        },
        "capture": {
          "$ref": "#/$defs/CaptureIdentity"
        },
        "execution_id": {
          "pattern": "^[0-9a-f]{32}$",
          "title": "Execution Id",
          "type": "string"
        },
        "call_parameters": {
          "default": [],
          "items": {
            "$ref": "#/$defs/CallParameter"
          },
          "maxItems": 256,
          "title": "Call Parameters",
          "type": "array"
        },
        "status": {
          "enum": [
            "success",
            "failed",
            "cancelled"
          ],
          "title": "Status",
          "type": "string"
        },
        "observed_inputs": {
          "default": [],
          "items": {
            "$ref": "#/$defs/InputArtifact"
          },
          "maxItems": 256,
          "title": "Observed Inputs",
          "type": "array"
        },
        "effective_parameters": {
          "default": [],
          "items": {
            "$ref": "#/$defs/Parameter"
          },
          "maxItems": 256,
          "title": "Effective Parameters",
          "type": "array"
        },
        "randomness": {
          "default": [],
          "items": {
            "$ref": "#/$defs/RandomnessControl"
          },
          "maxItems": 128,
          "title": "Randomness",
          "type": "array"
        },
        "environment": {
          "anyOf": [
            {
              "$ref": "#/$defs/EnvironmentEvidence"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "metrics": {
          "default": [],
          "items": {
            "$ref": "#/$defs/Metric"
          },
          "maxItems": 256,
          "title": "Metrics",
          "type": "array"
        },
        "outputs": {
          "default": [],
          "items": {
            "$ref": "#/$defs/OutputArtifact"
          },
          "maxItems": 256,
          "title": "Outputs",
          "type": "array"
        },
        "timing": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunTiming"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "diagnostics": {
          "default": [],
          "items": {
            "$ref": "#/$defs/RunDiagnostic"
          },
          "maxItems": 32,
          "title": "Diagnostics",
          "type": "array"
        }
      },
      "required": [
        "plan_digest",
        "subject",
        "capture",
        "execution_id",
        "status"
      ],
      "title": "ExperimentRunV2",
      "type": "object"
    },
    "ExposurePlan": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.exposure-plan/v1",
          "default": "apizr.exposure-plan/v1",
          "description": "Version of this successful exposure proposal contract. A plan is not generation, execution, publication or authorization.",
          "title": "Schema Version",
          "type": "string"
        },
        "repository_digest": {
          "$ref": "#/$defs/Digest",
          "description": "Repository evidence identity against which this proposal was assessed; value can pin a subsequent call."
        },
        "catalog_digest": {
          "$ref": "#/$defs/Digest",
          "description": "Identity of the complete canonical static Catalog used for this proposal."
        },
        "graph_digest": {
          "$ref": "#/$defs/Digest",
          "description": "Identity of the complete canonical static relationship/import Graph used for this proposal."
        },
        "repository_readiness_digest": {
          "$ref": "#/$defs/Digest",
          "description": "Identity of the canonical repository readiness assessment used for this proposal."
        },
        "exposure_policy_digest": {
          "$ref": "#/$defs/Digest",
          "description": "Identity of the exposure selection and execution constraints used for planning, not operator authority."
        },
        "interfaces": {
          "description": "Requested interfaces validated for all selected capabilities; none has been generated, deployed or run by planning.",
          "items": {
            "enum": [
              "rest",
              "mcp"
            ],
            "type": "string"
          },
          "minItems": 1,
          "title": "Interfaces",
          "type": "array"
        },
        "capabilities": {
          "description": "Selected capability proposals with their readiness evidence, interface compatibility and compatible execution modes; not an execution or publication grant.",
          "items": {
            "$ref": "#/$defs/ExposureRecord"
          },
          "title": "Capabilities",
          "type": "array"
        },
        "observed_support_modules": {
          "description": "Logical support modules observed in the selected static evidence; these are not additional exposed capabilities.",
          "items": {
            "type": "string"
          },
          "title": "Observed Support Modules",
          "type": "array"
        },
        "external_modules": {
          "description": "Lexically observed external module names; this does not resolve, install or authorize dependencies.",
          "items": {
            "type": "string"
          },
          "title": "External Modules",
          "type": "array"
        }
      },
      "required": [
        "repository_digest",
        "catalog_digest",
        "graph_digest",
        "repository_readiness_digest",
        "exposure_policy_digest",
        "interfaces",
        "capabilities",
        "observed_support_modules",
        "external_modules"
      ],
      "title": "ExposurePlan",
      "type": "object"
    },
    "ExposureRecord": {
      "additionalProperties": false,
      "properties": {
        "capability_id": {
          "description": "Exact canonical ID of this selected capability proposal; dependencies are not implicitly selected.",
          "title": "Capability Id",
          "type": "string"
        },
        "module": {
          "description": "Logical Python module owning the selected capability.",
          "title": "Module",
          "type": "string"
        },
        "source_path": {
          "description": "Repository-relative source path for this static capability evidence, not an authorized filesystem target.",
          "title": "Source Path",
          "type": "string"
        },
        "repository_readiness": {
          "description": "Readiness of the selected capability's required repository evidence. CONDITIONAL requires explicit policy allowance and is not READY or proof of successful execution.",
          "enum": [
            "ready",
            "conditional"
          ],
          "title": "Repository Readiness",
          "type": "string"
        },
        "readiness_reasons": {
          "description": "Retained reasons supporting the selected-scope readiness assessment, including conditional evidence.",
          "items": {
            "$ref": "#/$defs/apizr__repository_readiness__model__Reason"
          },
          "title": "Readiness Reasons",
          "type": "array"
        },
        "requested_interfaces": {
          "description": "Interfaces explicitly requested by the proposal policy for this capability.",
          "items": {
            "enum": [
              "rest",
              "mcp"
            ],
            "type": "string"
          },
          "minItems": 1,
          "title": "Requested Interfaces",
          "type": "array"
        },
        "compatible_interfaces": {
          "description": "Requested interfaces that pass static compatibility checks; every requested interface must be compatible in a successful plan.",
          "items": {
            "enum": [
              "rest",
              "mcp"
            ],
            "type": "string"
          },
          "minItems": 1,
          "title": "Compatible Interfaces",
          "type": "array"
        },
        "compatible_execution_modes": {
          "description": "Modes satisfying both the proposal's allowed modes/required controls and the readiness policy. No ranking, fallback or execution authority is implied.",
          "items": {
            "enum": [
              "direct",
              "local-process",
              "oci-container"
            ],
            "type": "string"
          },
          "minItems": 1,
          "title": "Compatible Execution Modes",
          "type": "array"
        },
        "effects": {
          "$ref": "#/$defs/Effects",
          "description": "Retained static effect evidence, including unknown effects; not observations from executing the capability."
        },
        "relationships": {
          "$ref": "#/$defs/RelationshipEvidence",
          "description": "Retained static relationship and import evidence used by this capability proposal."
        }
      },
      "required": [
        "capability_id",
        "module",
        "source_path",
        "repository_readiness",
        "readiness_reasons",
        "requested_interfaces",
        "compatible_interfaces",
        "compatible_execution_modes",
        "effects",
        "relationships"
      ],
      "title": "ExposureRecord",
      "type": "object"
    },
    "FingerprintPolicy": {
      "additionalProperties": false,
      "description": "One GiB per file by default; hard maximum one TiB; at most 256 files.",
      "properties": {
        "max_file_bytes": {
          "default": 1073741824,
          "maximum": 1099511627776,
          "minimum": 1,
          "title": "Max File Bytes",
          "type": "integer"
        }
      },
      "title": "FingerprintPolicy",
      "type": "object"
    },
    "FrozenJSON": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "maximum": 9223372036854775807,
          "minimum": -9223372036854775808,
          "type": "integer"
        },
        {
          "type": "number"
        },
        {
          "maxLength": 8192,
          "type": "string"
        },
        {
          "items": {
            "$ref": "#/$defs/FrozenJSON"
          },
          "maxItems": 1024,
          "type": "array"
        },
        {
          "additionalProperties": {
            "$ref": "#/$defs/FrozenJSON"
          },
          "maxProperties": 1024,
          "propertyNames": {
            "maxLength": 256
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "FunctionBinding": {
      "additionalProperties": false,
      "properties": {
        "module": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Module"
        },
        "qualified_name": {
          "anyOf": [
            {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Qualified Name"
        },
        "definition_id": {
          "anyOf": [
            {
              "pattern": "^[0-9a-f]{32}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Definition Id"
        },
        "source_digest": {
          "anyOf": [
            {
              "pattern": "^[0-9a-f]{64}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source Digest"
        },
        "origin": {
          "default": "unknown",
          "enum": [
            "runtime",
            "unknown"
          ],
          "title": "Origin",
          "type": "string"
        }
      },
      "title": "FunctionBinding",
      "type": "object"
    },
    "HistoryList": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-history/v1",
          "default": "apizr.experiment-history/v1",
          "title": "Schema Version",
          "type": "string"
        },
        "query": {
          "$ref": "#/$defs/HistoryQuery"
        },
        "total": {
          "maximum": 4096,
          "minimum": 0,
          "title": "Total",
          "type": "integer"
        },
        "matched": {
          "maximum": 4096,
          "minimum": 0,
          "title": "Matched",
          "type": "integer"
        },
        "runs": {
          "items": {
            "$ref": "#/$defs/RunSummary"
          },
          "maxItems": 1000,
          "title": "Runs",
          "type": "array"
        }
      },
      "required": [
        "query",
        "total",
        "matched",
        "runs"
      ],
      "title": "HistoryList",
      "type": "object"
    },
    "HistoryListV2": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-history/v2",
          "default": "apizr.experiment-history/v2",
          "title": "Schema Version",
          "type": "string"
        },
        "query": {
          "$ref": "#/$defs/HistoryQuery"
        },
        "total": {
          "maximum": 4096,
          "minimum": 0,
          "title": "Total",
          "type": "integer"
        },
        "matched": {
          "maximum": 4096,
          "minimum": 0,
          "title": "Matched",
          "type": "integer"
        },
        "runs": {
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/RunSummary"
              },
              {
                "$ref": "#/$defs/RunSummaryV2"
              }
            ]
          },
          "maxItems": 1000,
          "title": "Runs",
          "type": "array"
        }
      },
      "required": [
        "query",
        "total",
        "matched",
        "runs"
      ],
      "title": "HistoryListV2",
      "type": "object"
    },
    "HistoryQuery": {
      "additionalProperties": false,
      "properties": {
        "status": {
          "anyOf": [
            {
              "enum": [
                "success",
                "failed",
                "cancelled"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Status"
        },
        "source": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source"
        },
        "capability": {
          "anyOf": [
            {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Capability"
        },
        "limit": {
          "default": 20,
          "maximum": 1000,
          "minimum": 1,
          "title": "Limit",
          "type": "integer"
        }
      },
      "title": "HistoryQuery",
      "type": "object"
    },
    "ImportDeclaration": {
      "additionalProperties": false,
      "properties": {
        "path": {
          "title": "Path",
          "type": "string"
        },
        "line": {
          "minimum": 1,
          "title": "Line",
          "type": "integer"
        },
        "end_line": {
          "minimum": 1,
          "title": "End Line",
          "type": "integer"
        },
        "column": {
          "minimum": 0,
          "title": "Column",
          "type": "integer"
        },
        "end_column": {
          "minimum": 0,
          "title": "End Column",
          "type": "integer"
        },
        "availability": {
          "enum": [
            "unconditional",
            "conditional"
          ],
          "title": "Availability",
          "type": "string"
        },
        "source": {
          "title": "Source",
          "type": "string"
        },
        "scope": {
          "enum": [
            "module_scope",
            "capability_scope"
          ],
          "title": "Scope",
          "type": "string"
        },
        "syntax": {
          "enum": [
            "import",
            "from"
          ],
          "title": "Syntax",
          "type": "string"
        },
        "declared_module": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Declared Module"
        },
        "relative_level": {
          "minimum": 0,
          "title": "Relative Level",
          "type": "integer"
        },
        "names": {
          "items": {
            "$ref": "#/$defs/ImportedName"
          },
          "title": "Names",
          "type": "array"
        },
        "evidence": {
          "const": "observed",
          "default": "observed",
          "title": "Evidence",
          "type": "string"
        }
      },
      "required": [
        "path",
        "line",
        "end_line",
        "column",
        "end_column",
        "availability",
        "source",
        "scope",
        "syntax",
        "declared_module",
        "relative_level",
        "names"
      ],
      "title": "ImportDeclaration",
      "type": "object"
    },
    "ImportedName": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "title": "Name",
          "type": "string"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Alias"
        },
        "resolution": {
          "enum": [
            "module",
            "capability",
            "external",
            "unresolved",
            "ambiguous",
            "star"
          ],
          "title": "Resolution",
          "type": "string"
        },
        "target": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Target"
        },
        "resolution_evidence": {
          "default": "unknown",
          "enum": [
            "inferred",
            "unknown"
          ],
          "title": "Resolution Evidence",
          "type": "string"
        }
      },
      "required": [
        "name",
        "resolution"
      ],
      "title": "ImportedName",
      "type": "object"
    },
    "InputArtifact": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "reference": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Reference"
        },
        "digest": {
          "anyOf": [
            {
              "pattern": "^[0-9a-f]{64}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Digest"
        },
        "size": {
          "anyOf": [
            {
              "maximum": 9223372036854775807,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Size"
        },
        "origin": {
          "$ref": "#/$defs/EvidenceOrigin"
        },
        "content_origin": {
          "anyOf": [
            {
              "$ref": "#/$defs/EvidenceOrigin"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "format_hint": {
          "anyOf": [
            {
              "enum": [
                "csv",
                "parquet",
                "numpy",
                "joblib"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Format Hint"
        },
        "uri": {
          "anyOf": [
            {
              "maxLength": 1024,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Uri"
        }
      },
      "required": [
        "name",
        "origin"
      ],
      "title": "InputArtifact",
      "type": "object"
    },
    "InputChange": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "planned_a": {
          "anyOf": [
            {
              "$ref": "#/$defs/InputArtifact"
            },
            {
              "type": "null"
            }
          ]
        },
        "observed_a": {
          "anyOf": [
            {
              "$ref": "#/$defs/InputArtifact"
            },
            {
              "type": "null"
            }
          ]
        },
        "planned_b": {
          "anyOf": [
            {
              "$ref": "#/$defs/InputArtifact"
            },
            {
              "type": "null"
            }
          ]
        },
        "observed_b": {
          "anyOf": [
            {
              "$ref": "#/$defs/InputArtifact"
            },
            {
              "type": "null"
            }
          ]
        },
        "selection_state": {
          "$ref": "#/$defs/ChangeState"
        },
        "reference_state": {
          "$ref": "#/$defs/ChangeState"
        },
        "content_state": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "name",
        "planned_a",
        "observed_a",
        "planned_b",
        "observed_b",
        "selection_state",
        "reference_state",
        "content_state"
      ],
      "title": "InputChange",
      "type": "object"
    },
    "InputDiagnostic": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "enum": [
            "dynamic_input_reference",
            "unsupported_input_reference",
            "nonportable_input_reference",
            "input_missing",
            "input_symlink",
            "input_not_regular",
            "input_too_large",
            "input_changed_during_read",
            "remote_content_unverified",
            "explicit_input_invalid",
            "input_unreadable",
            "input_format_conflict",
            "input_name_required",
            "input_discovery_limit",
            "input_source_invalid"
          ],
          "title": "Code",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source"
        },
        "line": {
          "anyOf": [
            {
              "maximum": 1048576,
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Line"
        },
        "column": {
          "anyOf": [
            {
              "maximum": 1048576,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Column"
        },
        "loader": {
          "anyOf": [
            {
              "enum": [
                "pandas.read_csv",
                "pandas.read_parquet",
                "numpy.load",
                "joblib.load"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Loader"
        },
        "name": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        }
      },
      "required": [
        "code"
      ],
      "title": "InputDiagnostic",
      "type": "object"
    },
    "InputResult": {
      "additionalProperties": false,
      "description": "Candidates or selected observations, never an implicit Experiment Plan.",
      "properties": {
        "artifacts": {
          "default": [],
          "items": {
            "$ref": "#/$defs/InputArtifact"
          },
          "maxItems": 256,
          "title": "Artifacts",
          "type": "array"
        },
        "diagnostics": {
          "default": [],
          "items": {
            "$ref": "#/$defs/InputDiagnostic"
          },
          "maxItems": 512,
          "title": "Diagnostics",
          "type": "array"
        }
      },
      "title": "InputResult",
      "type": "object"
    },
    "InspectionStates": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "$ref": "#/$defs/SectionState"
        },
        "data": {
          "$ref": "#/$defs/SectionState"
        },
        "parameters": {
          "$ref": "#/$defs/SectionState"
        },
        "randomness": {
          "$ref": "#/$defs/SectionState"
        },
        "environment": {
          "$ref": "#/$defs/SectionState"
        },
        "metrics": {
          "$ref": "#/$defs/SectionState"
        },
        "outputs": {
          "$ref": "#/$defs/SectionState"
        },
        "serving": {
          "$ref": "#/$defs/SectionState"
        }
      },
      "required": [
        "code",
        "data",
        "parameters",
        "randomness",
        "environment",
        "metrics",
        "outputs",
        "serving"
      ],
      "title": "InspectionStates",
      "type": "object"
    },
    "Metric": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "value": {
          "$ref": "#/$defs/FrozenJSON"
        },
        "unit": {
          "anyOf": [
            {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Unit"
        },
        "origin": {
          "const": "runtime",
          "title": "Origin",
          "type": "string"
        }
      },
      "required": [
        "name",
        "value",
        "origin"
      ],
      "title": "Metric",
      "type": "object"
    },
    "MetricChange": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "a": {
          "anyOf": [
            {
              "$ref": "#/$defs/Metric"
            },
            {
              "type": "null"
            }
          ]
        },
        "b": {
          "anyOf": [
            {
              "$ref": "#/$defs/Metric"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "$ref": "#/$defs/ChangeState"
        },
        "delta": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Delta"
        }
      },
      "required": [
        "name",
        "a",
        "b",
        "state"
      ],
      "title": "MetricChange",
      "type": "object"
    },
    "MetricDiagnostic": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "enum": [
            "metric_source_invalid",
            "metric_discovery_limit"
          ],
          "title": "Code",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source"
        }
      },
      "required": [
        "code"
      ],
      "title": "MetricDiagnostic",
      "type": "object"
    },
    "MetricDiscoveryResult": {
      "additionalProperties": false,
      "description": "Bounded static occurrences; not an ExperimentRun or runtime metric list.",
      "properties": {
        "signals": {
          "default": [],
          "items": {
            "$ref": "#/$defs/MetricSignal"
          },
          "maxItems": 256,
          "title": "Signals",
          "type": "array"
        },
        "diagnostics": {
          "default": [],
          "items": {
            "$ref": "#/$defs/MetricDiagnostic"
          },
          "maxItems": 512,
          "title": "Diagnostics",
          "type": "array"
        },
        "relevant_distributions": {
          "default": [],
          "items": {
            "const": "scikit-learn",
            "type": "string"
          },
          "maxItems": 1,
          "title": "Relevant Distributions",
          "type": "array"
        }
      },
      "title": "MetricDiscoveryResult",
      "type": "object"
    },
    "MetricSignal": {
      "additionalProperties": false,
      "description": "One lexical occurrence, without a value or proof of execution.",
      "properties": {
        "name": {
          "enum": [
            "accuracy",
            "precision",
            "recall",
            "f1",
            "roc_auc",
            "mean_squared_error"
          ],
          "title": "Name",
          "type": "string"
        },
        "callable_name": {
          "enum": [
            "sklearn.metrics.accuracy_score",
            "sklearn.metrics.precision_score",
            "sklearn.metrics.recall_score",
            "sklearn.metrics.f1_score",
            "sklearn.metrics.roc_auc_score",
            "sklearn.metrics.mean_squared_error"
          ],
          "title": "Callable Name",
          "type": "string"
        },
        "source": {
          "maxLength": 1024,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        },
        "line": {
          "maximum": 1048576,
          "minimum": 1,
          "title": "Line",
          "type": "integer"
        },
        "column": {
          "maximum": 1048576,
          "minimum": 0,
          "title": "Column",
          "type": "integer"
        },
        "origin": {
          "const": "static",
          "default": "static",
          "title": "Origin",
          "type": "string"
        }
      },
      "required": [
        "name",
        "callable_name",
        "source",
        "line",
        "column"
      ],
      "title": "MetricSignal",
      "type": "object"
    },
    "ObjectField": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "title": "Name",
          "type": "string"
        },
        "required": {
          "title": "Required",
          "type": "boolean"
        },
        "type": {
          "$ref": "#/$defs/TypeSpec"
        }
      },
      "required": [
        "name",
        "required",
        "type"
      ],
      "title": "ObjectField",
      "type": "object"
    },
    "OperationCapability": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "enum": [
            "capabilities",
            "inspect",
            "experiment_list",
            "experiment_show",
            "experiment_diff",
            "plan_exposure"
          ],
          "title": "Name",
          "type": "string"
        },
        "result_schemas": {
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 3,
          "minItems": 1,
          "title": "Result Schemas",
          "type": "array"
        },
        "required_permissions": {
          "items": {
            "enum": [
              "source.analyze",
              "experiments.read"
            ],
            "type": "string"
          },
          "title": "Required Permissions",
          "type": "array"
        },
        "read_only": {
          "const": true,
          "default": true,
          "title": "Read Only",
          "type": "boolean"
        }
      },
      "required": [
        "name",
        "result_schemas",
        "required_permissions"
      ],
      "title": "OperationCapability",
      "type": "object"
    },
    "OutputArtifact": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "reference": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Reference"
        },
        "digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Digest",
          "type": "string"
        },
        "size": {
          "anyOf": [
            {
              "maximum": 9223372036854775807,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Size"
        },
        "media_type": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Media Type"
        },
        "origin": {
          "const": "runtime",
          "title": "Origin",
          "type": "string"
        }
      },
      "required": [
        "name",
        "digest",
        "origin"
      ],
      "title": "OutputArtifact",
      "type": "object"
    },
    "OutputChange": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "a": {
          "anyOf": [
            {
              "$ref": "#/$defs/OutputArtifact"
            },
            {
              "type": "null"
            }
          ]
        },
        "b": {
          "anyOf": [
            {
              "$ref": "#/$defs/OutputArtifact"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "$ref": "#/$defs/ChangeState"
        },
        "content_state": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "name",
        "a",
        "b",
        "state",
        "content_state"
      ],
      "title": "OutputChange",
      "type": "object"
    },
    "OutputDeclaration": {
      "additionalProperties": false,
      "description": "Explicit selection or static candidate; never a content observation.",
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "reference": {
          "maxLength": 1024,
          "minLength": 1,
          "title": "Reference",
          "type": "string"
        },
        "media_type": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Media Type"
        }
      },
      "required": [
        "name",
        "reference"
      ],
      "title": "OutputDeclaration",
      "type": "object"
    },
    "OutputDiagnostic": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "enum": [
            "dynamic_output_reference",
            "nonportable_output_reference",
            "unsupported_output_arguments",
            "output_name_required",
            "output_missing",
            "output_symlink",
            "output_not_regular",
            "output_too_large",
            "output_changed_during_read",
            "output_unreadable",
            "output_source_invalid",
            "output_discovery_limit"
          ],
          "title": "Code",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source"
        },
        "line": {
          "anyOf": [
            {
              "maximum": 1048576,
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Line"
        },
        "column": {
          "anyOf": [
            {
              "maximum": 1048576,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Column"
        },
        "name": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        }
      },
      "required": [
        "code"
      ],
      "title": "OutputDiagnostic",
      "type": "object"
    },
    "OutputDiscoveryResult": {
      "additionalProperties": false,
      "description": "Every recognized occurrence is retained separately from runtime artifacts.",
      "properties": {
        "signals": {
          "default": [],
          "items": {
            "$ref": "#/$defs/OutputSignal"
          },
          "maxItems": 256,
          "title": "Signals",
          "type": "array"
        },
        "diagnostics": {
          "default": [],
          "items": {
            "$ref": "#/$defs/OutputDiagnostic"
          },
          "maxItems": 512,
          "title": "Diagnostics",
          "type": "array"
        },
        "relevant_distributions": {
          "default": [],
          "items": {
            "const": "joblib",
            "type": "string"
          },
          "maxItems": 1,
          "title": "Relevant Distributions",
          "type": "array"
        }
      },
      "title": "OutputDiscoveryResult",
      "type": "object"
    },
    "OutputSignal": {
      "additionalProperties": false,
      "properties": {
        "declaration": {
          "$ref": "#/$defs/OutputDeclaration"
        },
        "callable_name": {
          "const": "joblib.dump",
          "default": "joblib.dump",
          "title": "Callable Name",
          "type": "string"
        },
        "source": {
          "maxLength": 1024,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        },
        "line": {
          "maximum": 1048576,
          "minimum": 1,
          "title": "Line",
          "type": "integer"
        },
        "column": {
          "maximum": 1048576,
          "minimum": 0,
          "title": "Column",
          "type": "integer"
        },
        "origin": {
          "const": "static",
          "default": "static",
          "title": "Origin",
          "type": "string"
        }
      },
      "required": [
        "declaration",
        "source",
        "line",
        "column"
      ],
      "title": "OutputSignal",
      "type": "object"
    },
    "PackageChange": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "a": {
          "anyOf": [
            {
              "$ref": "#/$defs/PackageEvidence"
            },
            {
              "type": "null"
            }
          ]
        },
        "b": {
          "anyOf": [
            {
              "$ref": "#/$defs/PackageEvidence"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "name",
        "a",
        "b",
        "state"
      ],
      "title": "PackageChange",
      "type": "object"
    },
    "PackageEvidence": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "version": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Version"
        },
        "origin": {
          "$ref": "#/$defs/EvidenceOrigin"
        }
      },
      "required": [
        "name",
        "version",
        "origin"
      ],
      "title": "PackageEvidence",
      "type": "object"
    },
    "Parameter": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "value": {
          "$ref": "#/$defs/FrozenJSON"
        },
        "origin": {
          "$ref": "#/$defs/EvidenceOrigin"
        }
      },
      "required": [
        "name",
        "value",
        "origin"
      ],
      "title": "Parameter",
      "type": "object"
    },
    "ParameterChange": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "planned_a": {
          "anyOf": [
            {
              "$ref": "#/$defs/Parameter"
            },
            {
              "type": "null"
            }
          ]
        },
        "observed_a": {
          "anyOf": [
            {
              "$ref": "#/$defs/Parameter"
            },
            {
              "type": "null"
            }
          ]
        },
        "planned_b": {
          "anyOf": [
            {
              "$ref": "#/$defs/Parameter"
            },
            {
              "type": "null"
            }
          ]
        },
        "observed_b": {
          "anyOf": [
            {
              "$ref": "#/$defs/Parameter"
            },
            {
              "type": "null"
            }
          ]
        },
        "planned_state": {
          "$ref": "#/$defs/ChangeState"
        },
        "observed_state": {
          "$ref": "#/$defs/ChangeState"
        },
        "observed_membership": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "name",
        "planned_a",
        "observed_a",
        "planned_b",
        "observed_b",
        "planned_state",
        "observed_state",
        "observed_membership"
      ],
      "title": "ParameterChange",
      "type": "object"
    },
    "ParameterDiagnostic": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "enum": [
            "dynamic_parameter_value",
            "parameter_literal_invalid",
            "parameter_assignment_unsupported",
            "parameter_source_invalid",
            "parameter_discovery_limit"
          ],
          "title": "Code",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source"
        },
        "line": {
          "anyOf": [
            {
              "maximum": 1048576,
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Line"
        },
        "column": {
          "anyOf": [
            {
              "maximum": 1048576,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Column"
        }
      },
      "required": [
        "code"
      ],
      "title": "ParameterDiagnostic",
      "type": "object"
    },
    "ParameterDiscoveryResult": {
      "additionalProperties": false,
      "properties": {
        "signals": {
          "default": [],
          "items": {
            "$ref": "#/$defs/ParameterSignal"
          },
          "maxItems": 256,
          "title": "Signals",
          "type": "array"
        },
        "diagnostics": {
          "default": [],
          "items": {
            "$ref": "#/$defs/ParameterDiagnostic"
          },
          "maxItems": 512,
          "title": "Diagnostics",
          "type": "array"
        }
      },
      "title": "ParameterDiscoveryResult",
      "type": "object"
    },
    "ParameterSignal": {
      "additionalProperties": false,
      "properties": {
        "parameter": {
          "$ref": "#/$defs/Parameter"
        },
        "source": {
          "maxLength": 1024,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        },
        "line": {
          "maximum": 1048576,
          "minimum": 1,
          "title": "Line",
          "type": "integer"
        },
        "column": {
          "maximum": 1048576,
          "minimum": 0,
          "title": "Column",
          "type": "integer"
        }
      },
      "required": [
        "parameter",
        "source",
        "line",
        "column"
      ],
      "title": "ParameterSignal",
      "type": "object"
    },
    "ProducerIdentity": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "version": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Version",
          "type": "string"
        }
      },
      "required": [
        "name",
        "version"
      ],
      "title": "ProducerIdentity",
      "type": "object"
    },
    "ProviderChange": {
      "additionalProperties": false,
      "properties": {
        "a": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProviderReport"
            },
            {
              "type": "null"
            }
          ]
        },
        "b": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProviderReport"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "a",
        "b",
        "state"
      ],
      "title": "ProviderChange",
      "type": "object"
    },
    "ProviderChoice": {
      "additionalProperties": false,
      "properties": {
        "identity": {
          "$ref": "#/$defs/ProducerIdentity"
        },
        "capabilities": {
          "default": [
            "input_reads",
            "metric_signals",
            "output_candidates",
            "randomness_controls"
          ],
          "items": {
            "enum": [
              "metric_signals",
              "output_candidates",
              "randomness_controls",
              "input_reads"
            ],
            "type": "string"
          },
          "maxItems": 4,
          "minItems": 1,
          "title": "Capabilities",
          "type": "array"
        },
        "enabled": {
          "default": true,
          "title": "Enabled",
          "type": "boolean"
        },
        "extension": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Extension"
        }
      },
      "required": [
        "identity"
      ],
      "title": "ProviderChoice",
      "type": "object"
    },
    "ProviderDescriptor": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.scientific-provider/v1",
          "default": "apizr.scientific-provider/v1",
          "title": "Schema Version",
          "type": "string"
        },
        "identity": {
          "$ref": "#/$defs/ProducerIdentity"
        },
        "capabilities": {
          "items": {
            "enum": [
              "metric_signals",
              "output_candidates",
              "randomness_controls",
              "input_reads"
            ],
            "type": "string"
          },
          "maxItems": 4,
          "minItems": 1,
          "title": "Capabilities",
          "type": "array"
        },
        "limits": {
          "$ref": "#/$defs/ProviderLimits",
          "default": {
            "max_source_bytes": 1048576,
            "max_ast_nodes": 100000,
            "max_ast_depth": 128,
            "max_evidence": 256,
            "max_diagnostics": 512,
            "max_result_bytes": 1048576
          }
        },
        "observation": {
          "const": "static-only",
          "default": "static-only",
          "title": "Observation",
          "type": "string"
        }
      },
      "required": [
        "identity",
        "capabilities"
      ],
      "title": "ProviderDescriptor",
      "type": "object"
    },
    "ProviderLimits": {
      "additionalProperties": false,
      "description": "Declarative ceilings, always at or below core hard bounds.",
      "properties": {
        "max_source_bytes": {
          "default": 1048576,
          "maximum": 1048576,
          "minimum": 1,
          "title": "Max Source Bytes",
          "type": "integer"
        },
        "max_ast_nodes": {
          "default": 100000,
          "maximum": 100000,
          "minimum": 1,
          "title": "Max Ast Nodes",
          "type": "integer"
        },
        "max_ast_depth": {
          "default": 128,
          "maximum": 128,
          "minimum": 1,
          "title": "Max Ast Depth",
          "type": "integer"
        },
        "max_evidence": {
          "default": 256,
          "maximum": 256,
          "minimum": 1,
          "title": "Max Evidence",
          "type": "integer"
        },
        "max_diagnostics": {
          "default": 512,
          "maximum": 512,
          "minimum": 1,
          "title": "Max Diagnostics",
          "type": "integer"
        },
        "max_result_bytes": {
          "default": 1048576,
          "maximum": 1048576,
          "minimum": 1,
          "title": "Max Result Bytes",
          "type": "integer"
        }
      },
      "title": "ProviderLimits",
      "type": "object"
    },
    "ProviderObservation": {
      "additionalProperties": false,
      "properties": {
        "choice": {
          "$ref": "#/$defs/ProviderChoice"
        },
        "descriptor": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProviderDescriptor"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "selected_capabilities": {
          "default": [],
          "items": {
            "enum": [
              "metric_signals",
              "output_candidates",
              "randomness_controls",
              "input_reads"
            ],
            "type": "string"
          },
          "maxItems": 4,
          "title": "Selected Capabilities",
          "type": "array"
        },
        "diagnostic": {
          "anyOf": [
            {
              "enum": [
                "provider_disabled",
                "provider_unavailable",
                "provider_incompatible",
                "provider_failed",
                "provider_result_invalid",
                "provider_limit",
                "provider_unsupported",
                "provider_shadowed"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Diagnostic"
        }
      },
      "required": [
        "choice"
      ],
      "title": "ProviderObservation",
      "type": "object"
    },
    "ProviderReport": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.scientific-providers/v1",
          "default": "apizr.scientific-providers/v1",
          "title": "Schema Version",
          "type": "string"
        },
        "providers": {
          "items": {
            "$ref": "#/$defs/ProviderObservation"
          },
          "maxItems": 16,
          "title": "Providers",
          "type": "array"
        },
        "available": {
          "items": {
            "$ref": "#/$defs/ProducerIdentity"
          },
          "maxItems": 16,
          "title": "Available",
          "type": "array"
        },
        "active": {
          "items": {
            "$ref": "#/$defs/ProducerIdentity"
          },
          "maxItems": 16,
          "title": "Active",
          "type": "array"
        },
        "owners": {
          "items": {
            "$ref": "#/$defs/CapabilityOwner"
          },
          "maxItems": 4,
          "minItems": 4,
          "title": "Owners",
          "type": "array"
        }
      },
      "required": [
        "providers",
        "available",
        "active",
        "owners"
      ],
      "title": "ProviderReport",
      "type": "object"
    },
    "RandomnessChange": {
      "additionalProperties": false,
      "properties": {
        "provider": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Provider",
          "type": "string"
        },
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "planned_a": {
          "anyOf": [
            {
              "$ref": "#/$defs/RandomnessControl"
            },
            {
              "type": "null"
            }
          ]
        },
        "observed_a": {
          "anyOf": [
            {
              "$ref": "#/$defs/RandomnessControl"
            },
            {
              "type": "null"
            }
          ]
        },
        "planned_b": {
          "anyOf": [
            {
              "$ref": "#/$defs/RandomnessControl"
            },
            {
              "type": "null"
            }
          ]
        },
        "observed_b": {
          "anyOf": [
            {
              "$ref": "#/$defs/RandomnessControl"
            },
            {
              "type": "null"
            }
          ]
        },
        "planned_state": {
          "$ref": "#/$defs/ChangeState"
        },
        "observed_state": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "provider",
        "name",
        "planned_a",
        "observed_a",
        "planned_b",
        "observed_b",
        "planned_state",
        "observed_state"
      ],
      "title": "RandomnessChange",
      "type": "object"
    },
    "RandomnessControl": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "value": {
          "$ref": "#/$defs/FrozenJSON"
        },
        "origin": {
          "$ref": "#/$defs/EvidenceOrigin"
        },
        "provider": {
          "maxLength": 128,
          "minLength": 1,
          "title": "Provider",
          "type": "string"
        }
      },
      "required": [
        "name",
        "value",
        "origin",
        "provider"
      ],
      "title": "RandomnessControl",
      "type": "object"
    },
    "RandomnessDiagnostic": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "enum": [
            "dynamic_randomness_control",
            "uncontrolled_randomness",
            "unsupported_randomness_literal",
            "unsupported_randomness_arguments",
            "randomness_control_conflict",
            "randomness_control_name_invalid",
            "randomness_source_invalid",
            "randomness_discovery_limit",
            "framework_determinism_unknown"
          ],
          "title": "Code",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source"
        },
        "line": {
          "anyOf": [
            {
              "maximum": 1048576,
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Line"
        },
        "column": {
          "anyOf": [
            {
              "maximum": 1048576,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Column"
        }
      },
      "required": [
        "code"
      ],
      "title": "RandomnessDiagnostic",
      "type": "object"
    },
    "RandomnessResult": {
      "additionalProperties": false,
      "description": "Static controls, redacted diagnostics, and versionless import candidates.",
      "properties": {
        "controls": {
          "default": [],
          "items": {
            "$ref": "#/$defs/RandomnessControl"
          },
          "maxItems": 128,
          "title": "Controls",
          "type": "array"
        },
        "diagnostics": {
          "default": [],
          "items": {
            "$ref": "#/$defs/RandomnessDiagnostic"
          },
          "maxItems": 512,
          "title": "Diagnostics",
          "type": "array"
        },
        "relevant_distributions": {
          "default": [],
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 6,
          "title": "Relevant Distributions",
          "type": "array"
        }
      },
      "title": "RandomnessResult",
      "type": "object"
    },
    "ReadinessIdentity": {
      "additionalProperties": false,
      "properties": {
        "repository_digest": {
          "$ref": "#/$defs/Digest",
          "description": "Complete repository evidence identity; copy value to expected_repository_digest for consistency pinning."
        },
        "catalog_digest": {
          "$ref": "#/$defs/Digest",
          "description": "Digest of the complete canonical static Catalog, unchanged by filtering or pagination."
        },
        "graph_digest": {
          "$ref": "#/$defs/Digest",
          "description": "Digest of the complete canonical static Graph, unchanged by filtering or pagination."
        },
        "repository_readiness_digest": {
          "$ref": "#/$defs/Digest",
          "description": "Digest of the complete canonical repository readiness report, not just the displayed view."
        },
        "readiness_policy_digest": {
          "$ref": "#/$defs/Digest",
          "description": "Digest of the readiness assessment policy used for this evidence."
        }
      },
      "required": [
        "repository_digest",
        "catalog_digest",
        "graph_digest",
        "repository_readiness_digest",
        "readiness_policy_digest"
      ],
      "title": "ReadinessIdentity",
      "type": "object"
    },
    "ReadinessReport": {
      "additionalProperties": false,
      "properties": {
        "policy_version": {
          "const": "apizr.readiness/v1",
          "default": "apizr.readiness/v1",
          "title": "Policy Version",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/Source"
        },
        "ir_digest": {
          "$ref": "#/$defs/Digest"
        },
        "assessments": {
          "items": {
            "$ref": "#/$defs/Assessment"
          },
          "title": "Assessments",
          "type": "array"
        },
        "structured_types": {
          "default": [],
          "items": {
            "$ref": "#/$defs/StructuredDeclaration"
          },
          "title": "Structured Types",
          "type": "array"
        }
      },
      "required": [
        "source",
        "ir_digest",
        "assessments"
      ],
      "title": "ReadinessReport",
      "type": "object"
    },
    "Relationship": {
      "additionalProperties": false,
      "properties": {
        "path": {
          "title": "Path",
          "type": "string"
        },
        "line": {
          "minimum": 1,
          "title": "Line",
          "type": "integer"
        },
        "end_line": {
          "minimum": 1,
          "title": "End Line",
          "type": "integer"
        },
        "column": {
          "minimum": 0,
          "title": "Column",
          "type": "integer"
        },
        "end_column": {
          "minimum": 0,
          "title": "End Column",
          "type": "integer"
        },
        "availability": {
          "enum": [
            "unconditional",
            "conditional"
          ],
          "title": "Availability",
          "type": "string"
        },
        "source": {
          "title": "Source",
          "type": "string"
        },
        "target": {
          "title": "Target",
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/RelationshipKind"
        },
        "syntax_evidence": {
          "const": "observed",
          "default": "observed",
          "title": "Syntax Evidence",
          "type": "string"
        },
        "resolution_evidence": {
          "enum": [
            "observed",
            "inferred"
          ],
          "title": "Resolution Evidence",
          "type": "string"
        }
      },
      "required": [
        "path",
        "line",
        "end_line",
        "column",
        "end_column",
        "availability",
        "source",
        "target",
        "kind",
        "resolution_evidence"
      ],
      "title": "Relationship",
      "type": "object"
    },
    "RelationshipEvidence": {
      "additionalProperties": false,
      "properties": {
        "state": {
          "enum": [
            "resolved",
            "partial",
            "unavailable"
          ],
          "title": "State",
          "type": "string"
        },
        "diagnostics": {
          "items": {
            "$ref": "#/$defs/apizr__graph__model__Diagnostic"
          },
          "title": "Diagnostics",
          "type": "array"
        },
        "direct": {
          "items": {
            "$ref": "#/$defs/Relationship"
          },
          "title": "Direct",
          "type": "array"
        },
        "module_imports": {
          "items": {
            "$ref": "#/$defs/Relationship"
          },
          "title": "Module Imports",
          "type": "array"
        },
        "imports": {
          "items": {
            "$ref": "#/$defs/ImportDeclaration"
          },
          "title": "Imports",
          "type": "array"
        }
      },
      "required": [
        "state",
        "diagnostics",
        "direct",
        "module_imports",
        "imports"
      ],
      "title": "RelationshipEvidence",
      "type": "object"
    },
    "RelationshipKind": {
      "enum": [
        "contains",
        "imports_module",
        "imports_external_module",
        "imports_capability",
        "calls_capability",
        "references_capability"
      ],
      "title": "RelationshipKind",
      "type": "string"
    },
    "RepositoryServing": {
      "additionalProperties": false,
      "properties": {
        "identity": {
          "$ref": "#/$defs/ReadinessIdentity"
        },
        "candidates": {
          "items": {
            "$ref": "#/$defs/CapabilityFocus"
          },
          "maxItems": 4096,
          "title": "Candidates",
          "type": "array"
        }
      },
      "required": [
        "identity",
        "candidates"
      ],
      "title": "RepositoryServing",
      "type": "object"
    },
    "RunDiagnostic": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_.-]*$",
          "title": "Code",
          "type": "string"
        },
        "origin": {
          "const": "runtime",
          "title": "Origin",
          "type": "string"
        }
      },
      "required": [
        "code",
        "origin"
      ],
      "title": "RunDiagnostic",
      "type": "object"
    },
    "RunRecord": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-record/v1",
          "default": "apizr.experiment-record/v1",
          "title": "Schema Version",
          "type": "string"
        },
        "run_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Run Digest",
          "type": "string"
        },
        "plan_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Plan Digest",
          "type": "string"
        },
        "plan": {
          "$ref": "#/$defs/ExperimentPlan"
        },
        "run": {
          "$ref": "#/$defs/ExperimentRun"
        }
      },
      "required": [
        "run_digest",
        "plan_digest",
        "plan",
        "run"
      ],
      "title": "RunRecord",
      "type": "object"
    },
    "RunRecordV2": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-record/v2",
          "default": "apizr.experiment-record/v2",
          "title": "Schema Version",
          "type": "string"
        },
        "run_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Run Digest",
          "type": "string"
        },
        "plan_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Plan Digest",
          "type": "string"
        },
        "plan": {
          "$ref": "#/$defs/ExperimentPlanV2"
        },
        "run": {
          "$ref": "#/$defs/ExperimentRunV2"
        }
      },
      "required": [
        "run_digest",
        "plan_digest",
        "plan",
        "run"
      ],
      "title": "RunRecordV2",
      "type": "object"
    },
    "RunSummary": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-run-result/v1",
          "default": "apizr.experiment-run-result/v1",
          "title": "Schema Version",
          "type": "string"
        },
        "run_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Run Digest",
          "type": "string"
        },
        "plan_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Plan Digest",
          "type": "string"
        },
        "status": {
          "enum": [
            "success",
            "failed",
            "cancelled"
          ],
          "title": "Status",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/SourceIdentity"
        },
        "started_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Started At"
        },
        "metrics": {
          "maximum": 256,
          "minimum": 0,
          "title": "Metrics",
          "type": "integer"
        },
        "outputs": {
          "maximum": 256,
          "minimum": 0,
          "title": "Outputs",
          "type": "integer"
        }
      },
      "required": [
        "run_digest",
        "plan_digest",
        "status",
        "source",
        "started_at",
        "metrics",
        "outputs"
      ],
      "title": "RunSummary",
      "type": "object"
    },
    "RunSummaryV2": {
      "additionalProperties": false,
      "properties": {
        "schema_version": {
          "const": "apizr.experiment-run-result/v2",
          "default": "apizr.experiment-run-result/v2",
          "title": "Schema Version",
          "type": "string"
        },
        "run_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Run Digest",
          "type": "string"
        },
        "plan_digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Plan Digest",
          "type": "string"
        },
        "status": {
          "enum": [
            "success",
            "failed",
            "cancelled"
          ],
          "title": "Status",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "$ref": "#/$defs/SourceIdentity"
            },
            {
              "$ref": "#/$defs/SourceEvidence"
            }
          ],
          "title": "Source"
        },
        "capture": {
          "$ref": "#/$defs/CaptureIdentity"
        },
        "execution_id": {
          "anyOf": [
            {
              "maxLength": 32,
              "minLength": 32,
              "pattern": "^[0-9a-f]{32}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Execution Id"
        },
        "started_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Started At"
        },
        "metrics": {
          "maximum": 256,
          "minimum": 0,
          "title": "Metrics",
          "type": "integer"
        },
        "outputs": {
          "maximum": 256,
          "minimum": 0,
          "title": "Outputs",
          "type": "integer"
        },
        "parameters": {
          "items": {
            "$ref": "#/$defs/Parameter"
          },
          "maxItems": 256,
          "title": "Parameters",
          "type": "array"
        },
        "call_parameters": {
          "items": {
            "$ref": "#/$defs/CallParameter"
          },
          "maxItems": 256,
          "title": "Call Parameters",
          "type": "array"
        },
        "recorded_metrics": {
          "items": {
            "$ref": "#/$defs/Metric"
          },
          "maxItems": 256,
          "title": "Recorded Metrics",
          "type": "array"
        }
      },
      "required": [
        "run_digest",
        "plan_digest",
        "status",
        "source",
        "capture",
        "execution_id",
        "started_at",
        "metrics",
        "outputs",
        "parameters",
        "call_parameters",
        "recorded_metrics"
      ],
      "title": "RunSummaryV2",
      "type": "object"
    },
    "RunTiming": {
      "additionalProperties": false,
      "properties": {
        "started_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Started At"
        },
        "ended_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Ended At"
        },
        "duration_seconds": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Duration Seconds"
        },
        "origin": {
          "const": "runtime",
          "title": "Origin",
          "type": "string"
        }
      },
      "required": [
        "origin"
      ],
      "title": "RunTiming",
      "type": "object"
    },
    "SectionState": {
      "enum": [
        "captured",
        "partial",
        "unknown",
        "uncontrolled",
        "not_applicable"
      ],
      "title": "SectionState",
      "type": "string"
    },
    "ServingEvidence": {
      "additionalProperties": false,
      "properties": {
        "readiness": {
          "$ref": "#/$defs/ReadinessReport"
        },
        "capabilities": {
          "items": {
            "$ref": "#/$defs/CapabilityEntry"
          },
          "maxItems": 4096,
          "title": "Capabilities",
          "type": "array"
        },
        "repository": {
          "anyOf": [
            {
              "$ref": "#/$defs/RepositoryServing"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "readiness",
        "capabilities"
      ],
      "title": "ServingEvidence",
      "type": "object"
    },
    "Severity": {
      "enum": [
        "info",
        "warning",
        "error"
      ],
      "title": "Severity",
      "type": "string"
    },
    "Source": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "enum": [
            "python",
            "notebook"
          ],
          "title": "Kind",
          "type": "string"
        },
        "module": {
          "title": "Module",
          "type": "string"
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        },
        "transformed_digest": {
          "anyOf": [
            {
              "$ref": "#/$defs/Digest"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "kind",
        "module",
        "digest"
      ],
      "title": "Source",
      "type": "object"
    },
    "SourceChange": {
      "additionalProperties": false,
      "properties": {
        "a": {
          "$ref": "#/$defs/SourceIdentity"
        },
        "b": {
          "$ref": "#/$defs/SourceIdentity"
        },
        "state": {
          "$ref": "#/$defs/ChangeState"
        },
        "kind": {
          "$ref": "#/$defs/ChangeState"
        },
        "reference": {
          "$ref": "#/$defs/ChangeState"
        },
        "digest": {
          "$ref": "#/$defs/ChangeState"
        },
        "executable_digest": {
          "$ref": "#/$defs/ChangeState"
        },
        "module": {
          "$ref": "#/$defs/ChangeState"
        },
        "capability_id": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "a",
        "b",
        "state",
        "kind",
        "reference",
        "digest",
        "executable_digest",
        "module",
        "capability_id"
      ],
      "title": "SourceChange",
      "type": "object"
    },
    "SourceChangeV2": {
      "additionalProperties": false,
      "properties": {
        "a": {
          "anyOf": [
            {
              "$ref": "#/$defs/SourceIdentity"
            },
            {
              "type": "null"
            }
          ]
        },
        "b": {
          "anyOf": [
            {
              "$ref": "#/$defs/SourceIdentity"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "$ref": "#/$defs/ChangeState"
        },
        "kind": {
          "$ref": "#/$defs/ChangeState"
        },
        "reference": {
          "$ref": "#/$defs/ChangeState"
        },
        "digest": {
          "$ref": "#/$defs/ChangeState"
        },
        "executable_digest": {
          "$ref": "#/$defs/ChangeState"
        },
        "module": {
          "$ref": "#/$defs/ChangeState"
        },
        "capability_id": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "a",
        "b",
        "state",
        "kind",
        "reference",
        "digest",
        "executable_digest",
        "module",
        "capability_id"
      ],
      "title": "SourceChangeV2",
      "type": "object"
    },
    "SourceEvidence": {
      "additionalProperties": false,
      "description": "A source identity is absent when no source bytes have been observed.",
      "properties": {
        "identity": {
          "anyOf": [
            {
              "$ref": "#/$defs/SourceIdentity"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "origin": {
          "default": "unknown",
          "enum": [
            "runtime",
            "unknown"
          ],
          "title": "Origin",
          "type": "string"
        }
      },
      "title": "SourceEvidence",
      "type": "object"
    },
    "SourceIdentity": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "enum": [
            "python",
            "notebook"
          ],
          "title": "Kind",
          "type": "string"
        },
        "reference": {
          "maxLength": 1024,
          "minLength": 1,
          "title": "Reference",
          "type": "string"
        },
        "digest": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Digest",
          "type": "string"
        },
        "executable_digest": {
          "anyOf": [
            {
              "pattern": "^[0-9a-f]{64}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Executable Digest"
        },
        "module": {
          "anyOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Module"
        },
        "capability_id": {
          "anyOf": [
            {
              "maxLength": 512,
              "minLength": 1,
              "pattern": "^[^\\s/\\\\]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Capability Id"
        }
      },
      "required": [
        "kind",
        "reference",
        "digest"
      ],
      "title": "SourceIdentity",
      "type": "object"
    },
    "SourceLocation": {
      "additionalProperties": false,
      "properties": {
        "source": {
          "maxLength": 1024,
          "minLength": 1,
          "title": "Source",
          "type": "string"
        },
        "line": {
          "maximum": 1048576,
          "minimum": 1,
          "title": "Line",
          "type": "integer"
        },
        "column": {
          "maximum": 1048576,
          "minimum": 0,
          "title": "Column",
          "type": "integer"
        },
        "cell_index": {
          "anyOf": [
            {
              "maximum": 1023,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cell Index"
        },
        "code_cell_index": {
          "anyOf": [
            {
              "maximum": 1023,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Code Cell Index"
        },
        "cell_line": {
          "anyOf": [
            {
              "maximum": 1048576,
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cell Line"
        }
      },
      "required": [
        "source",
        "line",
        "column"
      ],
      "title": "SourceLocation",
      "type": "object"
    },
    "SourceSpan": {
      "additionalProperties": false,
      "properties": {
        "module": {
          "title": "Module",
          "type": "string"
        },
        "symbol": {
          "title": "Symbol",
          "type": "string"
        },
        "line": {
          "minimum": 1,
          "title": "Line",
          "type": "integer"
        },
        "end_line": {
          "minimum": 1,
          "title": "End Line",
          "type": "integer"
        }
      },
      "required": [
        "module",
        "symbol",
        "line",
        "end_line"
      ],
      "title": "SourceSpan",
      "type": "object"
    },
    "State": {
      "enum": [
        "ready",
        "conditional",
        "unsupported",
        "ambiguous"
      ],
      "title": "State",
      "type": "string"
    },
    "StatusChange": {
      "additionalProperties": false,
      "properties": {
        "a": {
          "enum": [
            "success",
            "failed",
            "cancelled"
          ],
          "title": "A",
          "type": "string"
        },
        "b": {
          "enum": [
            "success",
            "failed",
            "cancelled"
          ],
          "title": "B",
          "type": "string"
        },
        "state": {
          "$ref": "#/$defs/ChangeState"
        }
      },
      "required": [
        "a",
        "b",
        "state"
      ],
      "title": "StatusChange",
      "type": "object"
    },
    "StructuredDeclaration": {
      "additionalProperties": false,
      "description": "Source-bound, statically proven shape or an explicit bounded refusal.",
      "properties": {
        "name": {
          "title": "Name",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/SourceSpan"
        },
        "type": {
          "anyOf": [
            {
              "$ref": "#/$defs/TypeSpec"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "problem": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Problem"
        }
      },
      "required": [
        "name",
        "source"
      ],
      "title": "StructuredDeclaration",
      "type": "object"
    },
    "TypeSpec": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "enum": [
            "any",
            "int",
            "str",
            "float",
            "bool",
            "null",
            "list",
            "dict",
            "tuple",
            "set",
            "union",
            "literal",
            "object"
          ],
          "title": "Kind",
          "type": "string"
        },
        "items": {
          "default": [],
          "items": {
            "$ref": "#/$defs/TypeSpec"
          },
          "title": "Items",
          "type": "array"
        },
        "values": {
          "default": [],
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": "Values",
          "type": "array"
        },
        "variadic": {
          "default": false,
          "title": "Variadic",
          "type": "boolean"
        },
        "fields": {
          "default": [],
          "items": {
            "$ref": "#/$defs/ObjectField"
          },
          "title": "Fields",
          "type": "array"
        }
      },
      "required": [
        "kind"
      ],
      "title": "TypeSpec",
      "type": "object"
    },
    "apizr__capabilities__model__Diagnostic": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "$ref": "#/$defs/DiagnosticCode"
        },
        "severity": {
          "$ref": "#/$defs/Severity"
        },
        "message": {
          "title": "Message",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/SourceSpan"
        }
      },
      "required": [
        "code",
        "severity",
        "message",
        "source"
      ],
      "title": "Diagnostic",
      "type": "object"
    },
    "apizr__exposure__planner__Diagnostic": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "enum": [
            "incomplete_evidence",
            "unknown_id",
            "ineligible",
            "interface",
            "execution"
          ],
          "title": "Code",
          "type": "string"
        },
        "capability_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Capability Id"
        },
        "state": {
          "anyOf": [
            {
              "$ref": "#/$defs/State"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "interface": {
          "anyOf": [
            {
              "enum": [
                "rest",
                "mcp"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Interface"
        },
        "source_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Source Path"
        },
        "line": {
          "anyOf": [
            {
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Line"
        },
        "column": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Column"
        },
        "dependency_path": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Dependency Path",
          "type": "array"
        },
        "evidence_code": {
          "anyOf": [
            {
              "$ref": "#/$defs/apizr__graph__model__Code"
            },
            {
              "$ref": "#/$defs/apizr__repository__model__Code"
            },
            {
              "$ref": "#/$defs/apizr__readiness__model__Code"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Evidence Code"
        },
        "reason": {
          "anyOf": [
            {
              "enum": [
                "global",
                "diagnostic",
                "initialization",
                "binding",
                "execution",
                "import"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Reason"
        }
      },
      "required": [
        "code"
      ],
      "title": "Diagnostic",
      "type": "object"
    },
    "apizr__graph__model__Code": {
      "enum": [
        "APIZR-GRAPH-001",
        "APIZR-GRAPH-002",
        "APIZR-GRAPH-003",
        "APIZR-GRAPH-004",
        "APIZR-GRAPH-005",
        "APIZR-GRAPH-006",
        "APIZR-GRAPH-007",
        "APIZR-GRAPH-008",
        "APIZR-GRAPH-009",
        "APIZR-GRAPH-010",
        "APIZR-GRAPH-011"
      ],
      "title": "Code",
      "type": "string"
    },
    "apizr__graph__model__Diagnostic": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "$ref": "#/$defs/apizr__graph__model__Code"
        },
        "path": {
          "title": "Path",
          "type": "string"
        },
        "line": {
          "anyOf": [
            {
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Line"
        },
        "column": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Column"
        },
        "limit": {
          "anyOf": [
            {
              "enum": [
                "ast_nodes",
                "relationships",
                "calls",
                "imports",
                "parser"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Limit"
        }
      },
      "required": [
        "code",
        "path"
      ],
      "title": "Diagnostic",
      "type": "object"
    },
    "apizr__readiness__model__Code": {
      "enum": [
        "APIZR-READY-001",
        "APIZR-READY-002",
        "APIZR-READY-003",
        "APIZR-READY-004",
        "APIZR-READY-005",
        "APIZR-READY-006",
        "APIZR-READY-007",
        "APIZR-READY-008",
        "APIZR-READY-009",
        "APIZR-READY-010",
        "APIZR-READY-011",
        "APIZR-READY-012",
        "APIZR-READY-013",
        "APIZR-READY-014",
        "APIZR-READY-015",
        "APIZR-READY-016",
        "APIZR-READY-017",
        "APIZR-READY-018",
        "APIZR-READY-019"
      ],
      "title": "Code",
      "type": "string"
    },
    "apizr__readiness__model__Reason": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "$ref": "#/$defs/apizr__readiness__model__Code"
        },
        "line": {
          "title": "Line",
          "type": "integer"
        },
        "parameter": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Parameter"
        },
        "evidence": {
          "const": "inferred",
          "default": "inferred",
          "title": "Evidence",
          "type": "string"
        }
      },
      "required": [
        "code",
        "line"
      ],
      "title": "Reason",
      "type": "object"
    },
    "apizr__repository__model__Code": {
      "enum": [
        "APIZR-REPO-001",
        "APIZR-REPO-002",
        "APIZR-REPO-003",
        "APIZR-REPO-004",
        "APIZR-REPO-005",
        "APIZR-REPO-006",
        "APIZR-REPO-007",
        "APIZR-REPO-008",
        "APIZR-REPO-009",
        "APIZR-REPO-010"
      ],
      "title": "Code",
      "type": "string"
    },
    "apizr__repository_readiness__model__Code": {
      "enum": [
        "APIZR-REPOREADY-001",
        "APIZR-REPOREADY-002",
        "APIZR-REPOREADY-003",
        "APIZR-REPOREADY-004",
        "APIZR-REPOREADY-005",
        "APIZR-REPOREADY-006",
        "APIZR-REPOREADY-007",
        "APIZR-REPOREADY-008"
      ],
      "title": "Code",
      "type": "string"
    },
    "apizr__repository_readiness__model__Reason": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "$ref": "#/$defs/apizr__repository_readiness__model__Code"
        },
        "effect": {
          "anyOf": [
            {
              "enum": [
                "filesystem_read",
                "filesystem_write",
                "network",
                "environment",
                "subprocess",
                "state_mutation",
                "secrets",
                "external_service"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Effect"
        }
      },
      "required": [
        "code"
      ],
      "title": "Reason",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "properties": {
    "schema_version": {
      "const": "apizr.editor-response/v1",
      "default": "apizr.editor-response/v1",
      "title": "Schema Version",
      "type": "string"
    },
    "request_id": {
      "anyOf": [
        {
          "maxLength": 64,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Request Id"
    },
    "operation": {
      "anyOf": [
        {
          "enum": [
            "capabilities",
            "inspect",
            "experiment_list",
            "experiment_show",
            "experiment_diff",
            "plan_exposure"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Operation"
    },
    "ok": {
      "title": "Ok",
      "type": "boolean"
    },
    "value": {
      "anyOf": [
        {
          "$ref": "#/$defs/EngineCapabilities"
        },
        {
          "$ref": "#/$defs/ExperimentInspection"
        },
        {
          "$ref": "#/$defs/HistoryList"
        },
        {
          "$ref": "#/$defs/HistoryListV2"
        },
        {
          "$ref": "#/$defs/RunRecord"
        },
        {
          "$ref": "#/$defs/RunRecordV2"
        },
        {
          "$ref": "#/$defs/ExperimentDiff"
        },
        {
          "$ref": "#/$defs/ExperimentDiffV2"
        },
        {
          "$ref": "#/$defs/ExposurePlan"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Value"
    },
    "diagnostics": {
      "default": [],
      "items": {
        "$ref": "#/$defs/EditorDiagnostic"
      },
      "maxItems": 1024,
      "title": "Diagnostics",
      "type": "array"
    },
    "exposure_diagnostics": {
      "default": [],
      "items": {
        "$ref": "#/$defs/apizr__exposure__planner__Diagnostic"
      },
      "title": "Exposure Diagnostics",
      "type": "array"
    }
  },
  "required": [
    "ok"
  ],
  "title": "EditorResponse",
  "type": "object"
}
