{
  "schema": "lattice.agents/api/v1",
  "surface": "schema",
  "packages": [
    "Orleans.Lattice.Api.Schema",
    "Orleans.Lattice.Api.Schema.Grpc"
  ],
  "sources": [
    "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ILatticeSchemaControl",
    "src/lattice.api.schema/LatticeSchemaControl.cs#LatticeSchemaControl",
    "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#LatticeSchemaGrpcMethods",
    "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#LatticeSchemaGrpcService",
    "src/lattice.schema/ILatticeSchemaRemediationAdmin.cs#ILatticeSchemaRemediationAdmin",
    "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#ILatticeSchemaVersionAdmin",
    "src/lattice.api.abstractions/Schema/ILatticeSchemaComplianceOperations.cs#ILatticeSchemaComplianceOperations",
    "src/lattice.api.schema/LatticeSchemaComplianceOperations.cs#LatticeSchemaComplianceOperations"
  ],
  "in_process": {
    "interface": "ILatticeSchemaControl",
    "registration": "ISiloBuilder.AddLatticeSchemaApi after AddLatticeSchemaEnforcement.",
    "source": "src/lattice.api.schema/LatticeApiSchemaServiceCollectionExtensions.cs#AddLatticeSchemaApi"
  },
  "grpc": {
    "service": "orleans.lattice.api.schema",
    "methods_source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#LatticeSchemaGrpcMethods",
    "marshalling": "LatticeSchemaGrpcMarshallers.Create delegates to the Orleans serializer.",
    "metadata": [
      {
        "name": "authorization",
        "purpose": "Credential token header; the default bridge strips the configured Bearer scheme and stamps a LatticeCredential.",
        "source": "src/lattice.api.schema.grpc/HeaderLatticeSchemaApiCredentialBridge.cs#HeaderLatticeSchemaApiCredentialBridge"
      },
      {
        "name": "active tenant header",
        "purpose": "Configured active tenant assertion header; the assertion is re-validated downstream and grants no access by itself.",
        "source": "src/lattice.api.schema.grpc/LatticeSchemaApiGrpcOptions.cs#ActiveTenantHeaderName"
      },
      {
        "name": "lattice-quota-current",
        "purpose": "ResourceExhausted trailer carrying the observed breached value when a numeric ceiling exists.",
        "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#QuotaCurrentTrailer"
      },
      {
        "name": "lattice-quota-dimension",
        "purpose": "ResourceExhausted trailer naming the breached quota dimension.",
        "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#QuotaDimensionTrailer"
      },
      {
        "name": "lattice-quota-limit",
        "purpose": "ResourceExhausted trailer carrying the configured breached ceiling when a numeric ceiling exists.",
        "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#QuotaLimitTrailer"
      },
      {
        "name": "lattice-quota-tree",
        "purpose": "ResourceExhausted trailer naming the tree whose quota was breached.",
        "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#QuotaTreeTrailer"
      }
    ],
    "auth": {
      "interceptor": "LatticeSchemaApiGrpcAuthInterceptor",
      "authorizer": "ILatticeSchemaApiAuthorizer",
      "decision": "Default deny when RequireAuthorization is true; GetAuthScheme is exempt.",
      "source": "src/lattice.api.schema.grpc/Security/LatticeSchemaApiGrpcAuthInterceptor.cs#LatticeSchemaApiGrpcAuthInterceptor"
    }
  },
  "availability": {
    "in_process": [
      {
        "registration": "AddLatticeSchemaApi",
        "package": "Orleans.Lattice.Api.Schema",
        "provides": [
          "ILatticeSchemaControl",
          "ILatticeSchemaOperations",
          "ILatticeSchemaComplianceOperations"
        ],
        "source": "src/lattice.api.schema/LatticeApiSchemaServiceCollectionExtensions.cs#LatticeApiSchemaServiceCollectionExtensions.AddLatticeSchemaApi"
      }
    ],
    "requires": [
      {
        "name": "AddLatticeSchemaEnforcement",
        "kind": "registration",
        "reason": "The schema facade drives the schema admin surface and fails fast when AddLatticeSchemaEnforcement has not registered it.",
        "source": "src/lattice.api.schema/LatticeApiSchemaServiceCollectionExtensions.cs#LatticeApiSchemaServiceCollectionExtensions.AddLatticeSchemaApi"
      }
    ],
    "grpc_server": [
      {
        "registration": "AddLatticeSchemaApiGrpc",
        "package": "Orleans.Lattice.Api.Schema.Grpc",
        "source": "src/lattice.api.schema.grpc/LatticeSchemaApiGrpcServiceCollectionExtensions.cs#LatticeSchemaApiGrpcServiceCollectionExtensions.AddLatticeSchemaApiGrpc"
      },
      {
        "registration": "MapLatticeSchemaApiGrpc",
        "package": "Orleans.Lattice.Api.Schema.Grpc",
        "source": "src/lattice.api.schema.grpc/LatticeSchemaApiGrpcServiceCollectionExtensions.cs#LatticeSchemaApiGrpcServiceCollectionExtensions.MapLatticeSchemaApiGrpc"
      }
    ],
    "grpc_client": [],
    "absent": null
  },
  "types": {
    "AdvanceVersionRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "NewTargetVersion",
          "type": "uint",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/AdvanceVersionRequest.cs#AdvanceVersionRequest"
    },
    "AuthSchemeAdvertisement": {
      "kind": "record",
      "fields": [
        {
          "name": "Schemes",
          "type": "IReadOnlyList<AuthSchemeDescriptor>",
          "required": false
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/AuthSchemeAdvertisement.cs#AuthSchemeAdvertisement"
    },
    "AuthSchemeAdvertisementRequest": {
      "kind": "record",
      "fields": [],
      "source": "src/lattice.api.schema.grpc/Model/AuthSchemeAdvertisementRequest.cs#AuthSchemeAdvertisementRequest"
    },
    "AuthSchemeDescriptor": {
      "kind": "record",
      "fields": [
        {
          "name": "SchemeId",
          "type": "string",
          "required": true
        },
        {
          "name": "DisplayName",
          "type": "string",
          "required": false
        },
        {
          "name": "Parameters",
          "type": "IReadOnlyDictionary<string, string>",
          "required": false
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/AuthSchemeDescriptor.cs#AuthSchemeDescriptor"
    },
    "GetPolicyResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Found",
          "type": "bool",
          "required": true
        },
        {
          "name": "Policy",
          "type": "LatticeSchemaPolicy?",
          "required": false
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/GetPolicyResponse.cs#GetPolicyResponse"
    },
    "GetVersionConfigResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Found",
          "type": "bool",
          "required": true
        },
        {
          "name": "Config",
          "type": "LatticeSchemaVersionConfig",
          "required": false
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/GetVersionConfigResponse.cs#GetVersionConfigResponse"
    },
    "LatticeBooleanOperator": {
      "kind": "enum",
      "values": [
        "And",
        "Or",
        "Not"
      ],
      "source": "src/lattice/Predicates/LatticeBooleanOperator.cs#LatticeBooleanOperator"
    },
    "LatticeComparisonOperator": {
      "kind": "enum",
      "values": [
        "Equal",
        "NotEqual",
        "LessThan",
        "LessThanOrEqual",
        "GreaterThan",
        "GreaterThanOrEqual"
      ],
      "source": "src/lattice/Predicates/LatticeComparisonOperator.cs#LatticeComparisonOperator"
    },
    "LatticeComputeOperator": {
      "kind": "enum",
      "values": [
        "Concat",
        "Coalesce"
      ],
      "source": "src/lattice.schema/LatticeComputeOperator.cs#LatticeComputeOperator"
    },
    "LatticeConstant": {
      "kind": "struct",
      "fields": [
        {
          "name": "Kind",
          "type": "LatticeConstantKind",
          "required": false
        },
        {
          "name": "BooleanValue",
          "type": "bool",
          "required": false
        },
        {
          "name": "StringValue",
          "type": "string?",
          "required": false
        },
        {
          "name": "Int64Value",
          "type": "long",
          "required": false
        },
        {
          "name": "DoubleValue",
          "type": "double",
          "required": false
        }
      ],
      "source": "src/lattice/Predicates/LatticeConstant.cs#LatticeConstant"
    },
    "LatticeConstantKind": {
      "kind": "enum",
      "values": [
        "Null",
        "Boolean",
        "String",
        "Int64",
        "Double"
      ],
      "source": "src/lattice/Predicates/LatticeConstantKind.cs#LatticeConstantKind"
    },
    "LatticePredicateNode": {
      "kind": "struct",
      "fields": [
        {
          "name": "Kind",
          "type": "LatticePredicateNodeKind",
          "required": false
        },
        {
          "name": "MemberPath",
          "type": "string?",
          "required": false
        },
        {
          "name": "Constant",
          "type": "LatticeConstant",
          "required": false
        },
        {
          "name": "ComparisonOperator",
          "type": "LatticeComparisonOperator",
          "required": false
        },
        {
          "name": "BooleanOperator",
          "type": "LatticeBooleanOperator",
          "required": false
        },
        {
          "name": "StringMethod",
          "type": "LatticeStringMethod",
          "required": false
        },
        {
          "name": "Children",
          "type": "LatticePredicateNode[]?",
          "required": false
        },
        {
          "name": "ValueKind",
          "type": "LatticeValueKind",
          "required": true
        }
      ],
      "source": "src/lattice/Predicates/LatticePredicateNode.cs#LatticePredicateNode"
    },
    "LatticePredicateNodeKind": {
      "kind": "enum",
      "values": [
        "Member",
        "Constant",
        "Compare",
        "Boolean",
        "StringMethod",
        "TypeOf",
        "Length",
        "Every",
        "Self"
      ],
      "source": "src/lattice/Predicates/LatticePredicateNodeKind.cs#LatticePredicateNodeKind"
    },
    "LatticeSchemaCapabilities": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "CanViewPolicy",
          "type": "bool",
          "required": false
        },
        {
          "name": "CanViewDeadLetters",
          "type": "bool",
          "required": false
        },
        {
          "name": "CanViewVersionConfig",
          "type": "bool",
          "required": false
        },
        {
          "name": "CanViewRemediationStatus",
          "type": "bool",
          "required": false
        },
        {
          "name": "CanScanCompliance",
          "type": "bool",
          "required": false
        },
        {
          "name": "CanManagePolicy",
          "type": "bool",
          "required": false
        },
        {
          "name": "CanManageVersion",
          "type": "bool",
          "required": false
        },
        {
          "name": "CanRemediate",
          "type": "bool",
          "required": false
        },
        {
          "name": "SupportsEnforcement",
          "type": "bool",
          "required": false
        },
        {
          "name": "SupportsVersioning",
          "type": "bool",
          "required": false
        },
        {
          "name": "SupportsRemediation",
          "type": "bool",
          "required": false
        },
        {
          "name": "SupportsCompliance",
          "type": "bool",
          "required": false
        },
        {
          "name": "SupportsDeadLetters",
          "type": "bool",
          "required": false
        },
        {
          "name": "SupportsRuntimeRegistration",
          "type": "bool",
          "required": false
        },
        {
          "name": "CanStartMigration",
          "type": "bool",
          "required": false
        },
        {
          "name": "CanStartRemediation",
          "type": "bool",
          "required": false
        },
        {
          "name": "MigrationUnavailableReason",
          "type": "string?",
          "required": false
        },
        {
          "name": "RemediationUnavailableReason",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/Schema/Model/LatticeSchemaCapabilities.cs#LatticeSchemaCapabilities"
    },
    "LatticeSchemaComplianceReport": {
      "kind": "struct",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "HasPolicy",
          "type": "bool",
          "required": true
        },
        {
          "name": "CompliantCount",
          "type": "int",
          "required": true
        },
        {
          "name": "NonCompliantCount",
          "type": "int",
          "required": true
        },
        {
          "name": "ScannedCount",
          "type": "int",
          "required": true
        },
        {
          "name": "RuleBreakdown",
          "type": "IReadOnlyList<LatticeSchemaComplianceRuleCount>",
          "required": true
        },
        {
          "name": "RuleCount",
          "type": "int",
          "required": false
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaComplianceReport.cs#LatticeSchemaComplianceReport"
    },
    "LatticeSchemaComplianceRuleCount": {
      "kind": "struct",
      "fields": [
        {
          "name": "Reason",
          "type": "string",
          "required": true
        },
        {
          "name": "Count",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaComplianceRuleCount.cs#LatticeSchemaComplianceRuleCount"
    },
    "LatticeSchemaDeadLetterEntry": {
      "kind": "class",
      "fields": [
        {
          "name": "Key",
          "type": "string",
          "required": true
        },
        {
          "name": "ValuePreview",
          "type": "byte[]",
          "required": true,
          "notes": "Bounded leading bytes only."
        },
        {
          "name": "ValueByteLength",
          "type": "int",
          "required": true
        },
        {
          "name": "Reason",
          "type": "string",
          "required": true
        },
        {
          "name": "Source",
          "type": "LatticeSchemaDeadLetterSource",
          "required": true
        },
        {
          "name": "TimestampUtc",
          "type": "DateTimeOffset",
          "required": true,
          "notes": "The source write's wall-clock time when OriginClusterId and SourceHlc are both set; otherwise the receiver's clock."
        },
        {
          "name": "OriginClusterId",
          "type": "string?",
          "required": false,
          "notes": "Cluster id of the region that originated the diverted replicated write; null when the item carried no source identity. With SourceHlc set, the default store keys the record by this identity, so a re-delivery overwrites one record."
        },
        {
          "name": "SourceHlc",
          "type": "HybridLogicalClock?",
          "required": false,
          "notes": "Source hybrid logical clock of the diverted replicated write; null when the item carried no source identity."
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaDeadLetterEntry.cs#LatticeSchemaDeadLetterEntry"
    },
    "LatticeSchemaDeadLetterSource": {
      "kind": "enum",
      "values": [
        "Replication",
        "Restore",
        "LocalRejected"
      ],
      "source": "src/lattice.schema/LatticeSchemaDeadLetterSource.cs#LatticeSchemaDeadLetterSource"
    },
    "LatticeSchemaEncodingKind": {
      "kind": "enum",
      "values": [
        "Utf8",
        "Json",
        "MaxByteLength"
      ],
      "source": "src/lattice.schema/LatticeSchemaEncodingKind.cs#LatticeSchemaEncodingKind"
    },
    "LatticeSchemaPolicy": {
      "kind": "class",
      "fields": [
        {
          "name": "Rules",
          "type": "IReadOnlyList<LatticeSchemaRule>",
          "required": true
        },
        {
          "name": "StrictIngest",
          "type": "bool",
          "required": false,
          "notes": "When true, intercepted system-origin writes are re-validated and non-compliant items are dead-lettered; every replicated entry (plain last-writer-wins, typed-CRDT delta or atomic-batch entry) is intercepted, but backup restore and tree merge bypass write interception."
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaPolicy.cs#LatticeSchemaPolicy"
    },
    "LatticeSchemaRemediationPhase": {
      "kind": "enum",
      "values": [
        "Idle",
        "DryRun",
        "Build",
        "Cutover",
        "Completed",
        "Aborted"
      ],
      "source": "src/lattice.schema/LatticeSchemaRemediationPhase.cs#LatticeSchemaRemediationPhase"
    },
    "LatticeSchemaRemediationReport": {
      "kind": "struct",
      "fields": [
        {
          "name": "Phase",
          "type": "LatticeSchemaRemediationPhase",
          "required": false
        },
        {
          "name": "InProgress",
          "type": "bool",
          "required": false
        },
        {
          "name": "ScannedCount",
          "type": "int",
          "required": false
        },
        {
          "name": "OffendingKey",
          "type": "string?",
          "required": false
        },
        {
          "name": "Reason",
          "type": "string?",
          "required": false
        },
        {
          "name": "OffendingValuePreview",
          "type": "byte[]?",
          "required": false
        },
        {
          "name": "DestinationTreeId",
          "type": "string?",
          "required": false
        },
        {
          "name": "OperationId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaRemediationReport.cs#LatticeSchemaRemediationReport"
    },
    "LatticeSchemaRule": {
      "kind": "struct",
      "fields": [
        {
          "name": "Kind",
          "type": "LatticeSchemaRuleKind",
          "required": false
        },
        {
          "name": "Predicate",
          "type": "LatticePredicateNode?",
          "required": false
        },
        {
          "name": "RegexPattern",
          "type": "string?",
          "required": false
        },
        {
          "name": "MemberPath",
          "type": "string?",
          "required": false
        },
        {
          "name": "EncodingKind",
          "type": "LatticeSchemaEncodingKind",
          "required": false
        },
        {
          "name": "MaxByteLength",
          "type": "int?",
          "required": false,
          "notes": "For MaxByteLength encoding rules, a supplied limit must be non-negative."
        },
        {
          "name": "Description",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaRule.cs#LatticeSchemaRule"
    },
    "LatticeSchemaRuleKind": {
      "kind": "enum",
      "values": [
        "Structured",
        "Regex",
        "Encoding"
      ],
      "source": "src/lattice.schema/LatticeSchemaRuleKind.cs#LatticeSchemaRuleKind"
    },
    "LatticeSchemaVersionConfig": {
      "kind": "struct",
      "fields": [
        {
          "name": "SchemaId",
          "type": "uint",
          "required": false
        },
        {
          "name": "TargetVersion",
          "type": "uint",
          "required": false
        },
        {
          "name": "StrictIngest",
          "type": "bool",
          "required": false
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaVersionConfig.cs#LatticeSchemaVersionConfig"
    },
    "LatticeStringMethod": {
      "kind": "enum",
      "values": [
        "StartsWith",
        "EndsWith",
        "Contains",
        "Equals"
      ],
      "source": "src/lattice/Predicates/LatticeStringMethod.cs#LatticeStringMethod"
    },
    "LatticeValueKind": {
      "kind": "enum",
      "values": [
        "Present",
        "Null",
        "Boolean",
        "Number",
        "Integer",
        "String",
        "Object",
        "Array"
      ],
      "source": "src/lattice/Predicates/LatticeValueKind.cs#LatticeValueKind"
    },
    "LatticeValueTransform": {
      "kind": "struct",
      "fields": [
        {
          "name": "Kind",
          "type": "LatticeValueTransformKind",
          "required": false
        },
        {
          "name": "MemberPath",
          "type": "string?",
          "required": false
        },
        {
          "name": "ToPath",
          "type": "string?",
          "required": false
        },
        {
          "name": "Constant",
          "type": "LatticeConstant",
          "required": false
        },
        {
          "name": "Condition",
          "type": "LatticePredicateNode",
          "required": false
        },
        {
          "name": "ComputeOperator",
          "type": "LatticeComputeOperator",
          "required": false
        },
        {
          "name": "Children",
          "type": "LatticeValueTransform[]?",
          "required": false
        }
      ],
      "source": "src/lattice.schema/LatticeValueTransform.cs#LatticeValueTransform"
    },
    "LatticeValueTransformKind": {
      "kind": "enum",
      "values": [
        "Passthrough",
        "SetMember",
        "DropMember",
        "RenameMember",
        "Member",
        "Constant",
        "Conditional",
        "Compute"
      ],
      "source": "src/lattice.schema/LatticeValueTransformKind.cs#LatticeValueTransformKind"
    },
    "RemediateRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Transform",
          "type": "LatticeValueTransform",
          "required": true
        },
        {
          "name": "TargetPolicy",
          "type": "LatticeSchemaPolicy",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/RemediateRequest.cs#RemediateRequest"
    },
    "SchemaAckResponse": {
      "kind": "record",
      "fields": [],
      "source": "src/lattice.api.schema.grpc/Model/SchemaAckResponse.cs#SchemaAckResponse"
    },
    "SchemaComplianceOperationRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaComplianceOperationRequest.cs#SchemaComplianceOperationRequest"
    },
    "SchemaComplianceOperationStatusResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Status",
          "type": "LatticeOperationStatus?",
          "required": false
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaComplianceOperationStatusResponse.cs#SchemaComplianceOperationStatusResponse"
    },
    "SchemaComplianceReportResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Report",
          "type": "LatticeSchemaComplianceReport",
          "required": true
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaComplianceReportResponse.cs#SchemaComplianceReportResponse"
    },
    "SchemaComplianceScanStartRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaComplianceScanStartRequest.cs#SchemaComplianceScanStartRequest"
    },
    "SchemaCountResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Count",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaCountResponse.cs#SchemaCountResponse"
    },
    "SchemaMigrationStartRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaMigrationStartRequest.cs#SchemaMigrationStartRequest"
    },
    "SchemaOperationRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaOperationRequest.cs#SchemaOperationRequest"
    },
    "SchemaOperationStatusResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Status",
          "type": "LatticeOperationStatus?",
          "required": false
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaOperationStatusResponse.cs#SchemaOperationStatusResponse"
    },
    "SchemaRemediationReportResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Report",
          "type": "LatticeSchemaRemediationReport",
          "required": true
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaRemediationReportResponse.cs#SchemaRemediationReportResponse"
    },
    "SchemaRemovedResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Removed",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaRemovedResponse.cs#SchemaRemovedResponse"
    },
    "SchemaTreeRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaTreeRequest.cs#SchemaTreeRequest"
    },
    "SetPolicyRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Policy",
          "type": "LatticeSchemaPolicy",
          "required": true
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SetPolicyRequest.cs#SetPolicyRequest"
    },
    "SetVersionConfigRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Config",
          "type": "LatticeSchemaVersionConfig",
          "required": true
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SetVersionConfigRequest.cs#SetVersionConfigRequest"
    },
    "VersionConfigResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Config",
          "type": "LatticeSchemaVersionConfig",
          "required": true
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/VersionConfigResponse.cs#VersionConfigResponse"
    },
    "LatticeSchemaRuntimeRegistration": {
      "kind": "record",
      "fields": [
        {
          "name": "Descriptors",
          "type": "LatticeSchemaDescriptor[]",
          "required": false
        },
        {
          "name": "Upcasters",
          "type": "LatticeSchemaRuntimeUpcaster[]",
          "required": false
        },
        {
          "name": "SupportedTransformIds",
          "type": "string[]",
          "required": false
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaRuntimeRegistration.cs#LatticeSchemaRuntimeRegistration"
    },
    "LatticeSchemaRuntimeUpcaster": {
      "kind": "record",
      "fields": [
        {
          "name": "SchemaId",
          "type": "uint",
          "required": false
        },
        {
          "name": "FromVersion",
          "type": "uint",
          "required": false
        },
        {
          "name": "ToVersion",
          "type": "uint",
          "required": false
        },
        {
          "name": "Transform",
          "type": "LatticeValueTransform?",
          "required": false
        },
        {
          "name": "TransformId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaRuntimeUpcaster.cs#LatticeSchemaRuntimeUpcaster"
    },
    "LatticeSchemaDescriptor": {
      "kind": "struct",
      "fields": [
        {
          "name": "SchemaId",
          "type": "uint",
          "required": true
        },
        {
          "name": "Version",
          "type": "uint",
          "required": true
        },
        {
          "name": "Name",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaDescriptor.cs#LatticeSchemaDescriptor"
    },
    "SchemaRegistryRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Registration",
          "type": "LatticeSchemaRuntimeRegistration",
          "required": true
        }
      ],
      "source": "src/lattice.api.schema.grpc/Model/SchemaRegistryRequest.cs#SchemaRegistryRequest"
    }
  },
  "operations": [
    {
      "id": "advance-target-version",
      "in_process": "ILatticeSchemaControl.AdvanceTargetVersionAsync",
      "grpc_method": "/orleans.lattice.api.schema/AdvanceTargetVersion",
      "transport_scope": "both",
      "request": "AdvanceVersionRequest",
      "response": "VersionConfigResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is invalid."
        },
        {
          "error_id": "permission-denied",
          "condition": "Caller is not authorized."
        },
        {
          "error_id": "failed-precondition",
          "condition": "The tree is unversioned, the target does not advance, versioning is not registered, or, when the tree's runtime schema catalog holds descriptors or upcasters, no descriptor is registered for the new target version or no registered migration path reaches it from the current target within the same schema family."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Do not retry blindly after success because the target version must strictly advance.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#AdvanceTargetVersionAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "The target is monotonic and the new version must be strictly greater than the current target.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#AdvanceTargetVersionAsync"
      },
      "concurrency": {
        "rule": "New writes are stamped at the new version on the serving silo as soon as the call returns and on every other silo within LatticeSchemaVersioningOptions.PropagationInterval (one second by default); existing values are upcast lazily on read.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#AdvanceTargetVersionAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#AdvanceTargetVersionAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#AdvanceTargetVersionMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#AdvanceTargetVersion",
        "src/lattice.schema/SchemaRuntimeRegistry.cs#SchemaRuntimeRegistry.ValidateTargetAsync"
      ]
    },
    {
      "id": "cancel-compliance-scan",
      "in_process": "ILatticeSchemaComplianceOperations.CancelOperationAsync",
      "grpc_method": "/orleans.lattice.api.schema/CancelComplianceScan",
      "transport_scope": "both",
      "request": "SchemaComplianceOperationRequest",
      "response": "SchemaComplianceOperationStatusResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller may not read the tree."
        },
        {
          "error_id": "cancelled",
          "condition": "Request was cancelled."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered no ILatticeSchemaComplianceOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Cancellation is recorded durably; repeating it returns the same or a terminal status.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "A second cancel request leaves the operation unchanged; a terminal operation is returned unchanged.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.compliance-scan kind, the caller's tenant and trees the caller may read, and return null for invisible operations.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#CancelComplianceScan"
      ]
    },
    {
      "id": "cancel-schema-operation",
      "in_process": "ILatticeSchemaOperations.CancelOperationAsync",
      "grpc_method": "/orleans.lattice.api.schema/CancelSchemaOperation",
      "transport_scope": "both",
      "request": "SchemaOperationRequest",
      "response": "SchemaOperationStatusResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller may read but not manage the tree's schema."
        },
        {
          "error_id": "cancelled",
          "condition": "Request was cancelled."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "The server's schema control facade does not implement ILatticeSchemaOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Cancellation is recorded durably; repeating it returns the same or a terminal status.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "A second cancel request leaves the operation unchanged; a terminal operation is returned unchanged.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.remediation, schema.migration and schema.advance-and-migrate kinds, the caller's tenant and trees the caller may read, and return null for invisible operations. Cancelling requires schema management over the tree and takes effect only before cutover; a cancel during cutover is declined.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#CancelSchemaOperationMethodName"
      ]
    },
    {
      "id": "clear-policy",
      "in_process": "ILatticeSchemaControl.ClearPolicyAsync",
      "grpc_method": "/orleans.lattice.api.schema/ClearPolicy",
      "transport_scope": "both",
      "request": "SchemaTreeRequest",
      "response": "SchemaRemovedResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is invalid."
        },
        {
          "error_id": "permission-denied",
          "condition": "Caller is not authorized."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retrying converges on no policy; the response may change from Removed=true to Removed=false.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ClearPolicyAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation returns false when no policy remains.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ClearPolicyAsync"
      },
      "concurrency": {
        "rule": "Caller-supplied tree names are tenant-scoped before authorization and mutation.",
        "source": "src/lattice.api.schema/LatticeSchemaControl.cs#ClearPolicyAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ClearPolicyAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#ClearPolicyMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#ClearPolicy"
      ]
    },
    {
      "id": "clear-version-config",
      "in_process": "ILatticeSchemaControl.ClearVersionConfigAsync",
      "grpc_method": "/orleans.lattice.api.schema/ClearVersionConfig",
      "transport_scope": "both",
      "request": "SchemaTreeRequest",
      "response": "SchemaRemovedResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is invalid."
        },
        {
          "error_id": "permission-denied",
          "condition": "Caller is not authorized."
        },
        {
          "error_id": "failed-precondition",
          "condition": "Schema versioning is not registered."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retrying converges on the tree being unversioned; the response may change from Removed=true to Removed=false.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#ClearVersionConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Returns false when the tree was already unversioned.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#ClearVersionConfigAsync"
      },
      "concurrency": {
        "rule": "New writes are no longer stamped; already stamped values remain self-describing and are still stripped on read.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#ClearVersionConfigAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ClearVersionConfigAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#ClearVersionConfigMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#ClearVersionConfig"
      ]
    },
    {
      "id": "count-dead-letters",
      "in_process": "ILatticeSchemaControl.CountDeadLettersAsync",
      "grpc_method": "/orleans.lattice.api.schema/CountDeadLetters",
      "transport_scope": "both",
      "request": "SchemaTreeRequest",
      "response": "SchemaCountResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is invalid."
        },
        {
          "error_id": "permission-denied",
          "condition": "Caller is not authorized."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only count after read authorization.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#CountDeadLettersAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#CountDeadLettersAsync"
      },
      "concurrency": {
        "rule": "Caller-supplied tree names are tenant-scoped before authorization and read.",
        "source": "src/lattice.api.schema/LatticeSchemaControl.cs#CountDeadLettersAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#CountDeadLettersAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#CountDeadLettersMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#CountDeadLetters"
      ]
    },
    {
      "id": "get-auth-scheme",
      "in_process": "ILatticeSchemaApiAuthSchemeSource.GetAdvertisement",
      "grpc_method": "/orleans.lattice.api.schema/GetAuthScheme",
      "transport_scope": "both",
      "request": "AuthSchemeAdvertisementRequest",
      "response": "AuthSchemeAdvertisement",
      "errors": [],
      "retry": {
        "safe": true,
        "policy": "Unauthenticated read of configured public advertisement.",
        "source": "src/lattice.api.schema.grpc/Security/OptionsLatticeSchemaApiAuthSchemeSource.cs#GetAdvertisement"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Returns the configured advertised auth schemes and has no side effects.",
        "source": "src/lattice.api.schema.grpc/Security/OptionsLatticeSchemaApiAuthSchemeSource.cs#GetAdvertisement"
      },
      "concurrency": {
        "rule": "Exempt from the authorization interceptor so clients can discover how to sign in.",
        "source": "src/lattice.api.schema.grpc/Security/LatticeSchemaApiGrpcAuthInterceptor.cs#IsUnauthenticatedMethod"
      },
      "sources": [
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#GetAuthSchemeMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#GetAuthScheme"
      ]
    },
    {
      "id": "get-compliance-scan-status",
      "in_process": "ILatticeSchemaComplianceOperations.GetOperationStatusAsync",
      "grpc_method": "/orleans.lattice.api.schema/GetComplianceScanStatus",
      "transport_scope": "both",
      "request": "SchemaComplianceOperationRequest",
      "response": "SchemaComplianceOperationStatusResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Request was cancelled."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered no ILatticeSchemaComplianceOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only status lookup; safe to repeat.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Status reads do not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.compliance-scan kind, the caller's tenant and trees the caller may read, and return null for invisible operations.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#GetComplianceScanStatus"
      ]
    },
    {
      "id": "get-policy",
      "in_process": "ILatticeSchemaControl.GetPolicyAsync",
      "grpc_method": "/orleans.lattice.api.schema/GetPolicy",
      "transport_scope": "both",
      "request": "SchemaTreeRequest",
      "response": "GetPolicyResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is invalid."
        },
        {
          "error_id": "permission-denied",
          "condition": "Caller is not authorized."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only policy lookup after read authorization.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetPolicyAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only operation returns Found=false when no policy exists.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetPolicyAsync"
      },
      "concurrency": {
        "rule": "Caller-supplied tree names are tenant-scoped before authorization and read.",
        "source": "src/lattice.api.schema/LatticeSchemaControl.cs#GetPolicyAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetPolicyAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#GetPolicyMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#GetPolicy"
      ]
    },
    {
      "id": "get-registry",
      "in_process": "ILatticeSchemaControl.GetRegistryAsync",
      "grpc_method": "/orleans.lattice.api.schema/GetRegistry",
      "transport_scope": "both",
      "request": "SchemaTreeRequest",
      "response": "LatticeSchemaRuntimeRegistration",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Invalid tree, descriptor, transform, unknown host transform id, or conflicting immutable registration."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller lacks Read over the effective tenant tree."
        },
        {
          "error_id": "failed-precondition",
          "condition": "Versioning or runtime registration is not installed."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Identical registration is idempotent; changed definitions conflict. Reads have no writes.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRegistryAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Immutable descriptors and hops are appended; matching definitions do not change them.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRegistryAsync"
      },
      "concurrency": {
        "rule": "Durable effective-tree catalog in the selected region, shared by silos. Not automatically replicated; provision matching definitions and host transforms in each serving region.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRegistryAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRegistryAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#GetRegistryMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#GetRegistry"
      ]
    },
    {
      "id": "get-remediation-status",
      "in_process": "ILatticeSchemaControl.GetRemediationStatusAsync",
      "grpc_method": "/orleans.lattice.api.schema/GetRemediationStatus",
      "transport_scope": "both",
      "request": "SchemaTreeRequest",
      "response": "SchemaRemediationReportResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is invalid."
        },
        {
          "error_id": "permission-denied",
          "condition": "Caller is not authorized."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only status lookup after read authorization.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRemediationStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRemediationStatusAsync"
      },
      "concurrency": {
        "rule": "Reports the current or last-known remediation status.",
        "source": "src/lattice.schema/ILatticeSchemaRemediationAdmin.cs#GetRemediationStatusAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRemediationStatusAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#GetRemediationStatusMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#GetRemediationStatus"
      ]
    },
    {
      "id": "get-schema-operation-status",
      "in_process": "ILatticeSchemaOperations.GetOperationStatusAsync",
      "grpc_method": "/orleans.lattice.api.schema/GetSchemaOperationStatus",
      "transport_scope": "both",
      "request": "SchemaOperationRequest",
      "response": "SchemaOperationStatusResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Request was cancelled."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "The server's schema control facade does not implement ILatticeSchemaOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only status lookup; safe to repeat.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Status reads do not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.remediation, schema.migration and schema.advance-and-migrate kinds, the caller's tenant and trees the caller may read, and return null for invisible operations.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#GetSchemaOperationStatusMethodName"
      ]
    },
    {
      "id": "get-version-config",
      "in_process": "ILatticeSchemaControl.GetVersionConfigAsync",
      "grpc_method": "/orleans.lattice.api.schema/GetVersionConfig",
      "transport_scope": "both",
      "request": "SchemaTreeRequest",
      "response": "GetVersionConfigResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is invalid."
        },
        {
          "error_id": "permission-denied",
          "condition": "Caller is not authorized."
        },
        {
          "error_id": "failed-precondition",
          "condition": "Schema versioning is not registered."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only config lookup after read authorization.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetVersionConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only operation returns Found=false when the tree is unversioned.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetVersionConfigAsync"
      },
      "concurrency": {
        "rule": "Version operations require AddLatticeSchemaVersioning to be registered.",
        "source": "src/lattice.api.schema/LatticeSchemaControl.cs#RequireVersionAdmin"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetVersionConfigAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#GetVersionConfigMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#GetVersionConfig"
      ]
    },
    {
      "id": "list-compliance-scans",
      "in_process": "ILatticeSchemaComplianceOperations.ListOperationsAsync",
      "grpc_method": "/orleans.lattice.api.schema/ListComplianceScans",
      "transport_scope": "both",
      "request": "LatticeOperationListRequest",
      "response": "LatticeOperationPage",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Request was cancelled."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered no ILatticeSchemaComplianceOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only listing; safe to repeat with the same page token.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Listing does not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.compliance-scan kind, the caller's tenant and trees the caller may read, and return null for invisible operations.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#ListComplianceScans"
      ]
    },
    {
      "id": "list-schema-operations",
      "in_process": "ILatticeSchemaOperations.ListOperationsAsync",
      "grpc_method": "/orleans.lattice.api.schema/ListSchemaOperations",
      "transport_scope": "both",
      "request": "LatticeOperationListRequest",
      "response": "LatticeOperationPage",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Request was cancelled."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "The server's schema control facade does not implement ILatticeSchemaOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only listing; safe to repeat with the same page token.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Listing does not mutate operation state.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to the schema.remediation, schema.migration and schema.advance-and-migrate kinds, the caller's tenant and trees the caller may read, and return null for invisible operations.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#ListSchemaOperationsMethodName"
      ]
    },
    {
      "id": "probe-capabilities",
      "in_process": "ILatticeSchemaControl.ProbeCapabilitiesAsync",
      "grpc_method": "/orleans.lattice.api.schema/ProbeCapabilities",
      "transport_scope": "both",
      "request": "SchemaTreeRequest",
      "response": "LatticeSchemaCapabilities",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is invalid."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "No-side-effect probe of the same gates used by real operations.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ProbeCapabilitiesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "No-side-effect operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ProbeCapabilitiesAsync"
      },
      "concurrency": {
        "rule": "CanView/CanManage/CanScanCompliance/CanRemediate remain permission-only; Supports* report installed support; CanStart* and unavailable reasons report current readiness. Every real operation rechecks authority and prerequisites.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ProbeCapabilitiesAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ProbeCapabilitiesAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#ProbeCapabilitiesMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#ProbeCapabilities"
      ]
    },
    {
      "id": "register-schema",
      "in_process": "ILatticeSchemaControl.RegisterSchemaAsync",
      "grpc_method": "/orleans.lattice.api.schema/RegisterSchema",
      "transport_scope": "both",
      "request": "SchemaRegistryRequest",
      "response": "SchemaAckResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Invalid tree, descriptor, transform, unknown host transform id, or conflicting immutable registration."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller lacks SchemaAdmin over the effective tenant tree."
        },
        {
          "error_id": "failed-precondition",
          "condition": "Versioning or runtime registration is not installed."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Identical registration is idempotent; changed definitions conflict. Reads have no writes.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#RegisterSchemaAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Immutable descriptors and hops are appended; matching definitions do not change them.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#RegisterSchemaAsync"
      },
      "concurrency": {
        "rule": "Durable effective-tree catalog in the selected region, shared by silos. Not automatically replicated; provision matching definitions and host transforms in each serving region.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#RegisterSchemaAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#RegisterSchemaAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#RegisterSchemaMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#RegisterSchema"
      ]
    },
    {
      "id": "set-policy",
      "in_process": "ILatticeSchemaControl.SetPolicyAsync",
      "grpc_method": "/orleans.lattice.api.schema/SetPolicy",
      "transport_scope": "both",
      "request": "SetPolicyRequest",
      "response": "SchemaAckResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId or policy is invalid."
        },
        {
          "error_id": "permission-denied",
          "condition": "Caller is not authorized."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retrying the same request converges on the same replacement policy.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#SetPolicyAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Sets or replaces the enforcement policy for the tree.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#SetPolicyAsync"
      },
      "concurrency": {
        "rule": "Caller-supplied tree names are tenant-scoped before authorization and mutation.",
        "source": "src/lattice.api.schema/LatticeSchemaControl.cs#SetPolicyAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#SetPolicyAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#SetPolicyMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#SetPolicy"
      ]
    },
    {
      "id": "set-version-config",
      "in_process": "ILatticeSchemaControl.SetVersionConfigAsync",
      "grpc_method": "/orleans.lattice.api.schema/SetVersionConfig",
      "transport_scope": "both",
      "request": "SetVersionConfigRequest",
      "response": "SchemaAckResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is invalid."
        },
        {
          "error_id": "permission-denied",
          "condition": "Caller is not authorized."
        },
        {
          "error_id": "failed-precondition",
          "condition": "Schema versioning is not registered."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retrying the same request converges on the same replacement version config.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#SetVersionConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Opts in or replaces the existing version config.",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#SetVersionConfigAsync"
      },
      "concurrency": {
        "rule": "New writes are stamped at the configured target version on the serving silo as soon as the call returns and on every other silo within LatticeSchemaVersioningOptions.PropagationInterval (one second by default).",
        "source": "src/lattice.schema/ILatticeSchemaVersionAdmin.cs#SetVersionConfigAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#SetVersionConfigAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#SetVersionConfigMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#SetVersionConfig"
      ]
    },
    {
      "id": "start-advance-and-migrate",
      "in_process": "ILatticeSchemaOperations.StartAdvanceAndMigrateAsync",
      "grpc_method": "/orleans.lattice.api.schema/StartAdvanceAndMigrate",
      "transport_scope": "both",
      "request": "AdvanceVersionRequest",
      "response": "LatticeOperationHandle",
      "operation_kind": "schema.advance-and-migrate",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is null, empty or reserved, a policy rule is invalid, or operationId is malformed."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller may not manage the tree's schema."
        },
        {
          "error_id": "failed-precondition",
          "condition": "Schema versioning is not registered, or the operation id is in use by an operation of a different kind."
        },
        {
          "error_id": "cancelled",
          "condition": "Request was cancelled."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "The server's schema control facade does not implement ILatticeSchemaOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false. A fresh start whose target no longer advances fails the operation in its first phase.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#StartAdvanceAndMigrateAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#ILatticeSchemaOperations"
      },
      "concurrency": {
        "rule": "The tree's coordinator records the run and drives it one bounded slice of values at a time from a durable cursor; a cancel takes effect between slices and is declined during cutover. If the silo running the work is lost the operation reads Failed, and starting the same remediation again resumes it from its last slice.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#StartAdvanceAndMigrateAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#StartAdvanceAndMigrateMethodName",
        "docs/lattice.api.schema/operations.md"
      ]
    },
    {
      "id": "start-compliance-scan",
      "in_process": "ILatticeSchemaComplianceOperations.StartComplianceScanAsync",
      "grpc_method": "/orleans.lattice.api.schema/StartComplianceScan",
      "transport_scope": "both",
      "request": "SchemaComplianceScanStartRequest",
      "response": "LatticeOperationHandle",
      "operation_kind": "schema.compliance-scan",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller may not read the tree."
        },
        {
          "error_id": "cancelled",
          "condition": "Request was cancelled."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered no ILatticeSchemaComplianceOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaComplianceOperations.cs#StartComplianceScanAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaComplianceOperations.cs#ILatticeSchemaComplianceOperations"
      },
      "concurrency": {
        "rule": "The operation runs on the accepting silo, heartbeats while active, and is marked Failed if that silo is lost or the lease lapses; resumption is not supported.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaComplianceOperations.cs#StartComplianceScanAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#StartComplianceScan",
        "docs/lattice.api.schema/operations.md"
      ]
    },
    {
      "id": "start-migration",
      "in_process": "ILatticeSchemaOperations.StartMigrationAsync",
      "grpc_method": "/orleans.lattice.api.schema/StartMigration",
      "transport_scope": "both",
      "request": "SchemaMigrationStartRequest",
      "response": "LatticeOperationHandle",
      "operation_kind": "schema.migration",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is null, empty or reserved, a policy rule is invalid, or operationId is malformed."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller may not manage the tree's schema."
        },
        {
          "error_id": "failed-precondition",
          "condition": "Schema versioning is not registered, or the operation id is in use by an operation of a different kind."
        },
        {
          "error_id": "cancelled",
          "condition": "Request was cancelled."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "The server's schema control facade does not implement ILatticeSchemaOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false. A tree already fully migrated finishes at once, having done nothing.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#StartMigrationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#ILatticeSchemaOperations"
      },
      "concurrency": {
        "rule": "The tree's coordinator records the run and drives it one bounded slice of values at a time from a durable cursor; a cancel takes effect between slices and is declined during cutover. If the silo running the work is lost the operation reads Failed, and starting the same remediation again resumes it from its last slice.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#StartMigrationAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#StartMigrationMethodName",
        "docs/lattice.api.schema/operations.md"
      ]
    },
    {
      "id": "start-remediation",
      "in_process": "ILatticeSchemaOperations.StartRemediationAsync",
      "grpc_method": "/orleans.lattice.api.schema/StartRemediation",
      "transport_scope": "both",
      "request": "RemediateRequest",
      "response": "LatticeOperationHandle",
      "operation_kind": "schema.remediation",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is null, empty or reserved, a policy rule is invalid, or operationId is malformed."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller may not manage the tree's schema."
        },
        {
          "error_id": "failed-precondition",
          "condition": "Schema versioning is not registered, or the operation id is in use by an operation of a different kind."
        },
        {
          "error_id": "cancelled",
          "condition": "Request was cancelled."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "The server's schema control facade does not implement ILatticeSchemaOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry with the same caller-supplied operation id; a duplicate start returns the existing handle with Created=false. A start with the same parameters as an in-flight remediation follows it; different parameters fail the new operation in-band.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#StartRemediationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#ILatticeSchemaOperations"
      },
      "concurrency": {
        "rule": "The tree's coordinator records the run and drives it one bounded slice of values at a time from a durable cursor; a cancel takes effect between slices and is declined during cutover. If the silo running the work is lost the operation reads Failed, and starting the same remediation again resumes it from its last slice.",
        "source": "docs/lattice.api.schema/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs#StartRemediationAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#StartRemediationMethodName",
        "docs/lattice.api.schema/operations.md"
      ]
    },
    {
      "id": "stream-dead-letters",
      "in_process": "ILatticeSchemaControl.ListDeadLettersAsync",
      "grpc_method": "/orleans.lattice.api.schema/StreamDeadLetters",
      "transport_scope": "both",
      "request": "SchemaTreeRequest",
      "response": "stream<LatticeSchemaDeadLetterEntry>",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "TreeId is invalid."
        },
        {
          "error_id": "permission-denied",
          "condition": "Caller is not authorized."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only server-streaming drain; cancellation cleanly ends the stream.",
        "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#StreamDeadLetters"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only bounded-memory stream.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ListDeadLettersAsync"
      },
      "concurrency": {
        "rule": "Large queues enumerate with bounded memory via IAsyncEnumerable.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ListDeadLettersAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ListDeadLettersAsync",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcMethods.cs#StreamDeadLettersMethodName",
        "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#StreamDeadLetters"
      ]
    }
  ],
  "error_taxonomy": [
    {
      "id": "cancelled",
      "type": "OperationCanceledException",
      "grpc_status": "Cancelled",
      "retryable": false,
      "meaning": "The request or authorization check was cancelled.",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#InvokeAsync"
    },
    {
      "id": "cluster-timeout",
      "type": "TimeoutException",
      "grpc_status": "DeadlineExceeded",
      "retryable": false,
      "meaning": "A grain call timed out inside the cluster, so the outcome is unknown and a write may already have applied. Retry an idempotent read; confirm state before retrying a write (#5742).",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs"
    },
    {
      "id": "cluster-unavailable",
      "type": "OrleansMessageRejectionException (including SiloUnavailableException) or EnumerationAbortedException",
      "grpc_status": "Unavailable",
      "retryable": true,
      "meaning": "A silo was unavailable or rejected the message, or a remote enumerator was lost to a grain deactivation mid-read: a transient cluster fault. Retry after a short backoff (#5742).",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs"
    },
    {
      "id": "saturated",
      "type": "LatticeSaturatedException",
      "grpc_status": "ResourceExhausted",
      "retryable": true,
      "meaning": "Storage back-pressure: the store refused the call on purpose and nothing was applied. Retry after a short backoff (#5722, #5723).",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs"
    },
    {
      "id": "wal-quiescing",
      "type": "LatticeWalQuiescingException",
      "grpc_status": "Unavailable",
      "retryable": true,
      "meaning": "A WAL shard is briefly quiesced for a placement move: the write was refused without being applied, and the shard accepts writes again once the move lifts its fence. Retry after a short backoff (#5800).",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs"
    },
    {
      "id": "failed-precondition",
      "type": "InvalidOperationException",
      "grpc_status": "FailedPrecondition",
      "retryable": false,
      "meaning": "A schema operation precondition failed.",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#InvokeAsync"
    },
    {
      "id": "internal",
      "type": "Exception",
      "grpc_status": "Internal",
      "retryable": false,
      "meaning": "Unhandled server failure.",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#InvokeAsync"
    },
    {
      "id": "invalid-argument",
      "type": "ArgumentException",
      "grpc_status": "InvalidArgument",
      "retryable": false,
      "meaning": "The request is invalid.",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#InvokeAsync"
    },
    {
      "id": "not-found",
      "type": "KeyNotFoundException",
      "grpc_status": "NotFound",
      "retryable": false,
      "meaning": "A referenced key or target was not found.",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#InvokeAsync"
    },
    {
      "id": "permission-denied",
      "type": "LatticeAuthorizationDeniedException or LatticeTenantAccessDeniedException",
      "grpc_status": "PermissionDenied",
      "retryable": false,
      "meaning": "The caller is not authorized or cannot act as the asserted tenant.",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#InvokeAsync"
    },
    {
      "id": "resource-exhausted",
      "type": "LatticeQuotaExceededException",
      "grpc_status": "ResourceExhausted",
      "retryable": false,
      "meaning": "A remediation or migration rebuild breached a per-tree admission cap.",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#ToResourceExhausted"
    },
    {
      "id": "unimplemented",
      "grpc_status": "Unimplemented",
      "meaning": "The server does not serve the requested tracked schema operations: it registered no ILatticeSchemaComplianceOperations, or its schema control facade does not implement ILatticeSchemaOperations.",
      "source": "src/lattice.api.schema.grpc/LatticeSchemaGrpcService.cs#ComplianceOperations"
    }
  ]
}
