{
  "schema": "lattice.agents/api/v1",
  "surface": "treeadmin",
  "packages": [
    "Orleans.Lattice.Api.TreeAdmin",
    "Orleans.Lattice.Api.TreeAdmin.Grpc",
    "Orleans.Lattice.Api.Abstractions"
  ],
  "sources": [
    "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs",
    "src/lattice.api.treeadmin/LatticeTreeAdmin.cs",
    "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs",
    "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs",
    "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs",
    "src/lattice.api.abstractions/TreeAdmin/ILatticeStorageUsageOperations.cs#ILatticeStorageUsageOperations",
    "src/lattice.api.abstractions/TreeAdmin/ILatticeWalReclamation.cs#ILatticeWalReclamation",
    "src/lattice.api.treeadmin/LatticeTreeAdmin.WalReclamation.cs#GetWalReclamationAsync",
    "src/lattice.api.treeadmin/LatticeStorageUsageOperations.cs#LatticeStorageUsageOperations",
    "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs",
    "src/lattice.api.abstractions/Operations/ILatticeOperations.cs"
  ],
  "in_process": {
    "interface": "ILatticeTreeAdmin",
    "registration": "AddLatticeTreeAdminApi",
    "source": "src/lattice.api.treeadmin/LatticeApiTreeAdminServiceCollectionExtensions.cs#AddLatticeTreeAdminApi"
  },
  "grpc": {
    "service": "orleans.lattice.api.treeadmin",
    "methods_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
    "marshalling": "LatticeTreeAdminGrpcMarshallers.Create uses Orleans Serializer<T> for gRPC payloads.",
    "metadata": [
      {
        "name": "authorization",
        "purpose": "Request metadata carrying the credential token by default; the bearer scheme is stripped when present and the token is stamped as a LatticeCredential.",
        "source": "src/lattice.api.treeadmin.grpc/HeaderLatticeTreeAdminApiCredentialBridge.cs#Resolve"
      },
      {
        "name": "lattice-active-tenant",
        "purpose": "Request metadata carrying the asserted active tenant by default; the assertion is re-validated downstream and grants no access by itself.",
        "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminApiGrpcOptions.cs#ActiveTenantHeaderName"
      }
    ],
    "auth": {
      "interceptor": "LatticeTreeAdminApiGrpcAuthInterceptor",
      "authorizer": "ILatticeTreeAdminApiAuthorizer",
      "decision": "RequireAuthorization defaults to true; GetAuthScheme is exempt and unknown operations deny by default.",
      "source": "src/lattice.api.treeadmin.grpc/Security/LatticeTreeAdminApiGrpcAuthInterceptor.cs#LatticeTreeAdminApiGrpcAuthInterceptor"
    }
  },
  "availability": {
    "in_process": [
      {
        "registration": "AddLatticeTreeAdminApi",
        "package": "Orleans.Lattice.Api.TreeAdmin",
        "provides": [
          "ILatticeTreeAdmin",
          "ILatticeTreeAdminOperations",
          "ILatticeWalReclamation",
          "ILatticeStorageUsageOperations"
        ],
        "source": "src/lattice.api.treeadmin/LatticeApiTreeAdminServiceCollectionExtensions.cs#LatticeApiTreeAdminServiceCollectionExtensions.AddLatticeTreeAdminApi"
      }
    ],
    "requires": [
      {
        "name": "AddLatticeSchemaApi",
        "kind": "registration",
        "reason": "The tree-admin facade composes ILatticeSchemaControl and fails fast when AddLatticeSchemaApi has not registered it.",
        "source": "src/lattice.api.treeadmin/LatticeApiTreeAdminServiceCollectionExtensions.cs#LatticeApiTreeAdminServiceCollectionExtensions.AddLatticeTreeAdminApi"
      }
    ],
    "grpc_server": [
      {
        "registration": "AddLatticeTreeAdminApiGrpc",
        "package": "Orleans.Lattice.Api.TreeAdmin.Grpc",
        "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminApiGrpcServiceCollectionExtensions.cs#LatticeTreeAdminApiGrpcServiceCollectionExtensions.AddLatticeTreeAdminApiGrpc"
      },
      {
        "registration": "MapLatticeTreeAdminApiGrpc",
        "package": "Orleans.Lattice.Api.TreeAdmin.Grpc",
        "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminApiGrpcServiceCollectionExtensions.cs#LatticeTreeAdminApiGrpcServiceCollectionExtensions.MapLatticeTreeAdminApiGrpc"
      }
    ],
    "grpc_client": [],
    "absent": null
  },
  "types": {
    "AuthSchemeAdvertisement": {
      "kind": "record",
      "fields": [
        {
          "name": "Schemes",
          "type": "IReadOnlyList<AuthSchemeDescriptor>",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/AuthSchemeAdvertisement.cs#AuthSchemeAdvertisement"
    },
    "AuthSchemeAdvertisementRequest": {
      "kind": "record",
      "fields": [],
      "source": "src/lattice.api.treeadmin.grpc/Model/AuthSchemeAdvertisementRequest.cs#AuthSchemeAdvertisementRequest"
    },
    "ClusterStorageUsageSummary": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeCount",
          "type": "int",
          "required": true
        },
        {
          "name": "WalRetainedBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "SnapshotBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "LeafStateBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "TotalBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "Partial",
          "type": "bool",
          "required": true
        },
        {
          "name": "Deep",
          "type": "bool",
          "required": true
        },
        {
          "name": "SampledAt",
          "type": "DateTimeOffset",
          "required": true
        },
        {
          "name": "Trees",
          "type": "ImmutableArray<TreeStorageUsageSnapshot>",
          "required": false
        },
        {
          "name": "Stale",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/ClusterStorageUsageSummary.cs#ClusterStorageUsageSummary"
    },
    "LatticeSchemaCapabilities": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "CanViewPolicy",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanViewDeadLetters",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanViewVersionConfig",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanViewRemediationStatus",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanScanCompliance",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanManagePolicy",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanManageVersion",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanRemediate",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/Schema/Model/LatticeSchemaCapabilities.cs#LatticeSchemaCapabilities"
    },
    "LatticeSchemaComplianceReport": {
      "kind": "record",
      "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
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaComplianceReport.cs#LatticeSchemaComplianceReport"
    },
    "LatticeSchemaDeadLetterEntry": {
      "kind": "class",
      "fields": [],
      "source": "src/lattice.schema/LatticeSchemaDeadLetterEntry.cs#LatticeSchemaDeadLetterEntry"
    },
    "LatticeSchemaPolicy": {
      "kind": "class",
      "fields": [],
      "source": "src/lattice.schema/LatticeSchemaPolicy.cs#LatticeSchemaPolicy"
    },
    "LatticeSchemaRemediationReport": {
      "kind": "record",
      "fields": [
        {
          "name": "Phase",
          "type": "LatticeSchemaRemediationPhase",
          "required": true
        },
        {
          "name": "InProgress",
          "type": "bool",
          "required": true
        },
        {
          "name": "ScannedCount",
          "type": "int",
          "required": true
        },
        {
          "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"
    },
    "LatticeSchemaVersionConfig": {
      "kind": "record",
      "fields": [
        {
          "name": "SchemaId",
          "type": "uint",
          "required": true
        },
        {
          "name": "TargetVersion",
          "type": "uint",
          "required": true
        },
        {
          "name": "StrictIngest",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.schema/LatticeSchemaVersionConfig.cs#LatticeSchemaVersionConfig"
    },
    "LatticeTreeAdminCapabilities": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "CanAdministerTree",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanManageTreeLifecycle",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanViewDiagnostics",
          "type": "bool",
          "required": true
        },
        {
          "name": "Schema",
          "type": "LatticeSchemaCapabilities",
          "required": true
        },
        {
          "name": "CanBulkLoad",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanRestore",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanViewClusterTelemetry",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/LatticeTreeAdminCapabilities.cs#LatticeTreeAdminCapabilities"
    },
    "SchemaAdminRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        },
        {
          "name": "payload",
          "type": "operation-specific schema payload",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ILatticeSchemaControl"
    },
    "SchemaTreeRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "treeId",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ILatticeSchemaControl"
    },
    "ShardMapInspection": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "PhysicalTreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "VirtualShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "PhysicalShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "MapVersion",
          "type": "long",
          "required": true
        },
        {
          "name": "PhysicalShardIndices",
          "type": "ImmutableArray<int>",
          "required": false
        },
        {
          "name": "SlotCounts",
          "type": "ImmutableArray<int>",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/ShardMapInspection.cs#ShardMapInspection"
    },
    "ShardProjectionDigestReport": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ShardIndex",
          "type": "int",
          "required": true
        },
        {
          "name": "HashHex",
          "type": "string",
          "required": true
        },
        {
          "name": "EntryCount",
          "type": "long",
          "required": true
        },
        {
          "name": "CheckpointOffset",
          "type": "long",
          "required": true
        },
        {
          "name": "Version",
          "type": "long",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/ShardProjectionDigestReport.cs#ShardProjectionDigestReport"
    },
    "TreeAdminBulkLoadAppendRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        },
        {
          "name": "ChunkIndex",
          "type": "long",
          "required": true
        },
        {
          "name": "Entries",
          "type": "IReadOnlyList<DataEntry>",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminBulkLoadAppendRequest.cs#TreeAdminBulkLoadAppendRequest"
    },
    "TreeAdminBulkLoadSessionRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminBulkLoadSessionRequest.cs#TreeAdminBulkLoadSessionRequest"
    },
    "TreeAdminBulkLoadStreamRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        },
        {
          "name": "Resume",
          "type": "bool",
          "required": false
        },
        {
          "name": "ChunkIndex",
          "type": "long",
          "required": false
        },
        {
          "name": "Entries",
          "type": "IReadOnlyList<DataEntry>",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminBulkLoadStreamRequest.cs#TreeAdminBulkLoadStreamRequest"
    },
    "TreeAdminBulkLoadStreamResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Opened",
          "type": "bool",
          "required": false
        },
        {
          "name": "Ack",
          "type": "TreeBulkLoadChunkAck?",
          "required": false
        },
        {
          "name": "Result",
          "type": "TreeBulkLoadResult?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminBulkLoadStreamResponse.cs#TreeAdminBulkLoadStreamResponse"
    },
    "TreeAdminCreateRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ShardCount",
          "type": "int?",
          "required": false
        },
        {
          "name": "MaxLeafKeys",
          "type": "int?",
          "required": false
        },
        {
          "name": "MaxInternalChildren",
          "type": "int?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminCreateRequest.cs#TreeAdminCreateRequest"
    },
    "TreeAdminCreateViewRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "ViewName",
          "type": "string",
          "required": true
        },
        {
          "name": "SourceTreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ProviderKey",
          "type": "string",
          "required": true
        },
        {
          "name": "Payload",
          "type": "byte[]",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminCreateViewRequest.cs#TreeAdminCreateViewRequest"
    },
    "TreeAdminDiagnosticReport": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "VirtualShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "TotalLiveKeys",
          "type": "long",
          "required": true
        },
        {
          "name": "TotalTombstones",
          "type": "long",
          "required": true
        },
        {
          "name": "Deep",
          "type": "bool",
          "required": true
        },
        {
          "name": "RecentSplitCount",
          "type": "int",
          "required": true
        },
        {
          "name": "SampledAt",
          "type": "DateTimeOffset",
          "required": true
        },
        {
          "name": "Shards",
          "type": "ImmutableArray<ShardDiagnosticSnapshot>",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeAdminDiagnosticReport.cs#TreeAdminDiagnosticReport"
    },
    "TreeAdminDiagnosticsRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Deep",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminDiagnosticsRequest.cs#TreeAdminDiagnosticsRequest"
    },
    "TreeAdminOrphanedLeafRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ResumeFrom",
          "type": "string?",
          "required": false
        },
        {
          "name": "Survey",
          "type": "bool",
          "required": true
        },
        {
          "name": "TrackingOperationId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminOrphanedLeafRequest.cs#TreeAdminOrphanedLeafRequest"
    },
    "TreeAdminPurgeRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Confirm",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminPurgeRequest.cs#TreeAdminPurgeRequest"
    },
    "TreeAdminReshardRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "TargetShardCount",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminReshardRequest.cs#TreeAdminReshardRequest"
    },
    "TreeAdminResizeRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "NewMaxLeafKeys",
          "type": "int",
          "required": true
        },
        {
          "name": "NewMaxInternalChildren",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminResizeRequest.cs#TreeAdminResizeRequest"
    },
    "TreeAdminRestoreRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "BackupId",
          "type": "string",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminRestoreRequest.cs#TreeAdminRestoreRequest"
    },
    "TreeAdminRestoreSetRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "SetId",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminRestoreSetRequest.cs#TreeAdminRestoreSetRequest"
    },
    "TreeAdminSetAliasRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "PhysicalTreeId",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminSetAliasRequest.cs#TreeAdminSetAliasRequest"
    },
    "TreeAdminSetConfigRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Update",
          "type": "TreeConfigurationUpdate",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminSetConfigRequest.cs#TreeAdminSetConfigRequest"
    },
    "TreeAdminSetRetentionRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Mode",
          "type": "TreeHistoryRetentionMode?",
          "required": false
        },
        {
          "name": "Window",
          "type": "TimeSpan?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminSetRetentionRequest.cs#TreeAdminSetRetentionRequest"
    },
    "TreeAdminShardRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ShardIndex",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminShardRequest.cs#TreeAdminShardRequest"
    },
    "TreeAdminSnapshotRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "DestinationTreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Mode",
          "type": "TreeSnapshotMode",
          "required": true
        },
        {
          "name": "MaxLeafKeys",
          "type": "int?",
          "required": false
        },
        {
          "name": "MaxInternalChildren",
          "type": "int?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminSnapshotRequest.cs#TreeAdminSnapshotRequest"
    },
    "TreeAdminStorageUsageOperationRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminStorageUsageOperationRequest.cs#TreeAdminStorageUsageOperationRequest"
    },
    "TreeAdminStorageUsageOperationStatusResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Status",
          "type": "LatticeOperationStatus?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminStorageUsageOperationStatusResponse.cs#TreeAdminStorageUsageOperationStatusResponse"
    },
    "TreeAdminStorageUsageRefreshRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "OperationId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminStorageUsageRefreshRequest.cs#TreeAdminStorageUsageRefreshRequest"
    },
    "TreeAdminStorageUsageRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "Deep",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminStorageUsageRequest.cs#TreeAdminStorageUsageRequest"
    },
    "TreeAdminTagIndexListRequest": {
      "kind": "record",
      "fields": [],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminTagIndexListRequest.cs#TreeAdminTagIndexListRequest"
    },
    "TreeAdminTagIndexRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "IndexName",
          "type": "string",
          "required": true
        },
        {
          "name": "TrackingOperationId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminTagIndexRequest.cs#TreeAdminTagIndexRequest"
    },
    "TreeAdminTreeRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminTreeRequest.cs#TreeAdminTreeRequest"
    },
    "TreeAdminViewListRequest": {
      "kind": "record",
      "fields": [],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminViewListRequest.cs#TreeAdminViewListRequest"
    },
    "TreeAdminViewRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "ViewName",
          "type": "string",
          "required": true
        },
        {
          "name": "TrackingOperationId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminViewRequest.cs#TreeAdminViewRequest"
    },
    "TreeAdminWalMoveExecuteRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Partition",
          "type": "int",
          "required": true
        },
        {
          "name": "TargetProviderKey",
          "type": "string",
          "required": true
        },
        {
          "name": "Options",
          "type": "TreeWalMoveOptions?",
          "required": false
        },
        {
          "name": "TrackingOperationId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminWalMoveExecuteRequest.cs#TreeAdminWalMoveExecuteRequest"
    },
    "TreeAdminWalMovePlanRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Partition",
          "type": "int",
          "required": true
        },
        {
          "name": "TargetProviderKey",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminWalMovePlanRequest.cs#TreeAdminWalMovePlanRequest"
    },
    "TreeAdminWalReclaimRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Partition",
          "type": "int",
          "required": true
        },
        {
          "name": "SourceProviderKey",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminWalReclaimRequest.cs#TreeAdminWalReclaimRequest"
    },
    "TreeAliasResolution": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "PhysicalTreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "IsAliased",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeAliasResolution.cs#TreeAliasResolution"
    },
    "TreeBulkLoadChunkAck": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        },
        {
          "name": "ChunkIndex",
          "type": "long",
          "required": true
        },
        {
          "name": "AcceptedEntryCount",
          "type": "int",
          "required": true
        },
        {
          "name": "NextChunkIndex",
          "type": "long",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeBulkLoadChunkAck.cs#TreeBulkLoadChunkAck"
    },
    "TreeBulkLoadResult": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        },
        {
          "name": "TotalLiveKeys",
          "type": "long",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeBulkLoadResult.cs#TreeBulkLoadResult"
    },
    "TreeBulkLoadSession": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeBulkLoadSession.cs#TreeBulkLoadSession"
    },
    "TreeCompactionTriggerResult": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ShardIndex",
          "type": "int",
          "required": true
        },
        {
          "name": "Accepted",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeCompactionTriggerResult.cs#TreeCompactionTriggerResult"
    },
    "TreeConfigurationReport": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Exists",
          "type": "bool",
          "required": true
        },
        {
          "name": "PhysicalTreeId",
          "type": "string?",
          "required": false
        },
        {
          "name": "ShardCount",
          "type": "int?",
          "required": false
        },
        {
          "name": "MaxLeafKeys",
          "type": "int?",
          "required": false
        },
        {
          "name": "MaxInternalChildren",
          "type": "int?",
          "required": false
        },
        {
          "name": "PublishEvents",
          "type": "bool?",
          "required": false
        },
        {
          "name": "MaintainProjectionDigest",
          "type": "bool?",
          "required": false
        },
        {
          "name": "ProjectionDigestPermanentlyDisabled",
          "type": "bool",
          "required": true
        },
        {
          "name": "HistoryRetentionMode",
          "type": "HistoryRetentionMode?",
          "required": false
        },
        {
          "name": "HistoryRetentionWindowTicks",
          "type": "long?",
          "required": false
        },
        {
          "name": "WalMaxRetainedBytes",
          "type": "long?",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeConfigurationReport.cs#TreeConfigurationReport"
    },
    "TreeCreationResult": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Created",
          "type": "bool",
          "required": true
        },
        {
          "name": "ShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "MaxLeafKeys",
          "type": "int",
          "required": true
        },
        {
          "name": "MaxInternalChildren",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeCreationResult.cs#TreeCreationResult"
    },
    "TreeDeletionStatus": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "IsDeleted",
          "type": "bool",
          "required": true
        },
        {
          "name": "DeletedAtUtc",
          "type": "DateTimeOffset?",
          "required": false
        },
        {
          "name": "RecoveryDeadlineUtc",
          "type": "DateTimeOffset?",
          "required": false
        },
        {
          "name": "PurgeInProgress",
          "type": "bool",
          "required": true
        },
        {
          "name": "PurgeComplete",
          "type": "bool",
          "required": true
        },
        {
          "name": "CanRecover",
          "type": "bool",
          "required": true
        },
        {
          "name": "PurgedShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "PurgeShardCount",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeDeletionStatus.cs#TreeDeletionStatus"
    },
    "TreeExistenceResult": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Exists",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeExistenceResult.cs#TreeExistenceResult"
    },
    "TreeHistoryRetention": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Mode",
          "type": "TreeHistoryRetentionMode",
          "required": true
        },
        {
          "name": "Window",
          "type": "TimeSpan",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeHistoryRetention.cs#TreeHistoryRetention"
    },
    "TreeHotnessReport": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "TotalReads",
          "type": "long",
          "required": true
        },
        {
          "name": "TotalWrites",
          "type": "long",
          "required": true
        },
        {
          "name": "TotalOpsPerSecond",
          "type": "double",
          "required": true
        },
        {
          "name": "SampledAt",
          "type": "DateTimeOffset",
          "required": true
        },
        {
          "name": "Shards",
          "type": "ImmutableArray<ShardHotnessSnapshot>",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeHotnessReport.cs#TreeHotnessReport"
    },
    "TreeOrphanedLeafReport": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "DryRun",
          "type": "bool",
          "required": true
        },
        {
          "name": "LeavesWalked",
          "type": "int",
          "required": true
        },
        {
          "name": "Findings",
          "type": "ImmutableArray<TreeOrphanedLeafFinding>",
          "required": false
        },
        {
          "name": "ResumeFrom",
          "type": "string?",
          "required": false
        },
        {
          "name": "Gaps",
          "type": "ImmutableArray<TreeOrphanedLeafGap>",
          "required": false
        },
        {
          "name": "Survey",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeOrphanedLeafReport.cs#TreeOrphanedLeafReport"
    },
    "TreeReshardStatus": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "InProgress",
          "type": "bool",
          "required": true
        },
        {
          "name": "CurrentPhysicalShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "VirtualShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "MapVersion",
          "type": "long",
          "required": true
        },
        {
          "name": "RequestedShardCount",
          "type": "int?",
          "required": false
        },
        {
          "name": "TargetShardCount",
          "type": "int?",
          "required": false
        },
        {
          "name": "StartPhysicalShardCount",
          "type": "int?",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeReshardStatus.cs#TreeReshardStatus"
    },
    "TreeResizeStatus": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "InProgress",
          "type": "bool",
          "required": true
        },
        {
          "name": "CurrentMaxLeafKeys",
          "type": "int",
          "required": true
        },
        {
          "name": "CurrentMaxInternalChildren",
          "type": "int",
          "required": true
        },
        {
          "name": "RequestedMaxLeafKeys",
          "type": "int?",
          "required": false
        },
        {
          "name": "RequestedMaxInternalChildren",
          "type": "int?",
          "required": false
        },
        {
          "name": "UndoRequested",
          "type": "bool",
          "required": true
        },
        {
          "name": "Phase",
          "type": "TreeResizePhase?",
          "required": false
        },
        {
          "name": "CompletedUnits",
          "type": "int",
          "required": true
        },
        {
          "name": "TotalUnits",
          "type": "int?",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeResizeStatus.cs#TreeResizeStatus"
    },
    "TreeRestoreResult": {
      "kind": "record",
      "fields": [
        {
          "name": "BackupId",
          "type": "string",
          "required": true
        },
        {
          "name": "TargetTreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Mode",
          "type": "TreeRestoreMode",
          "required": true
        },
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        },
        {
          "name": "ManifestChain",
          "type": "IReadOnlyList<string>",
          "required": true
        },
        {
          "name": "EntriesApplied",
          "type": "long",
          "required": true
        },
        {
          "name": "ShadowPhysicalTreeId",
          "type": "string?",
          "required": false
        },
        {
          "name": "PreviousPhysicalTreeId",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeRestoreResult.cs#TreeRestoreResult"
    },
    "TreeRestoreSetResult": {
      "kind": "record",
      "fields": [
        {
          "name": "Results",
          "type": "IReadOnlyList<TreeRestoreResult>",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeRestoreSetResult.cs#TreeRestoreSetResult"
    },
    "TreeShardMapView": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "HasCustomMap",
          "type": "bool",
          "required": true
        },
        {
          "name": "MapVersion",
          "type": "long",
          "required": true
        },
        {
          "name": "VirtualShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "PhysicalShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "PhysicalShardIndices",
          "type": "ImmutableArray<int>",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeShardMapView.cs#TreeShardMapView"
    },
    "TreeSnapshotStatus": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "InProgress",
          "type": "bool",
          "required": true
        },
        {
          "name": "RequestedDestinationTreeId",
          "type": "string?",
          "required": false
        },
        {
          "name": "RequestedMode",
          "type": "TreeSnapshotMode?",
          "required": false
        },
        {
          "name": "Phase",
          "type": "TreeSnapshotPhase?",
          "required": false
        },
        {
          "name": "CopiedShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "ShardCount",
          "type": "int?",
          "required": false
        },
        {
          "name": "FailureReason",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeSnapshotStatus.cs#TreeSnapshotStatus"
    },
    "TreeStorageUsageSnapshot": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "WalRetainedBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "SnapshotBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "LeafStateBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "TotalBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "Partial",
          "type": "bool",
          "required": true
        },
        {
          "name": "LiveKeys",
          "type": "long",
          "required": true
        },
        {
          "name": "SampledAt",
          "type": "DateTimeOffset",
          "required": true
        },
        {
          "name": "Stale",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeStorageUsageSnapshot.cs#TreeStorageUsageSnapshot"
    },
    "TreeStatsReport": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "VirtualShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "TotalLiveKeys",
          "type": "long",
          "required": true
        },
        {
          "name": "TotalTombstones",
          "type": "long",
          "required": true
        },
        {
          "name": "LeafStateBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "SnapshotBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "WalRetainedBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "TotalBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "PartialStorage",
          "type": "bool",
          "required": true
        },
        {
          "name": "SampledAt",
          "type": "DateTimeOffset",
          "required": true
        },
        {
          "name": "StaleStorage",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeStatsReport.cs#TreeStatsReport"
    },
    "TreeTagIndexCatalog": {
      "kind": "record",
      "fields": [
        {
          "name": "Indexes",
          "type": "ImmutableArray<TreeTagIndexInfo>",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeTagIndexCatalog.cs#TreeTagIndexCatalog"
    },
    "TreeTagIndexStatus": {
      "kind": "record",
      "fields": [
        {
          "name": "IndexName",
          "type": "string",
          "required": true
        },
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "CoveredTrees",
          "type": "ImmutableArray<string>",
          "required": false
        },
        {
          "name": "ReconcileIdle",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeTagIndexStatus.cs#TreeTagIndexStatus"
    },
    "TreeTagReconcileReport": {
      "kind": "record",
      "fields": [
        {
          "name": "IndexName",
          "type": "string",
          "required": true
        },
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "TreesCovered",
          "type": "int",
          "required": true
        },
        {
          "name": "KeysScanned",
          "type": "int",
          "required": true
        },
        {
          "name": "MembershipRowsScanned",
          "type": "int",
          "required": true
        },
        {
          "name": "OrphanRowsRemoved",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeTagReconcileReport.cs#TreeTagReconcileReport"
    },
    "TreeViewCatalog": {
      "kind": "record",
      "fields": [
        {
          "name": "Views",
          "type": "ImmutableArray<TreeViewInfo>",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeViewCatalog.cs#TreeViewCatalog"
    },
    "TreeViewProviderCatalog": {
      "kind": "record",
      "fields": [
        {
          "name": "Providers",
          "type": "ImmutableArray<TreeViewProviderInfo>",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeViewProviderCatalog.cs#TreeViewProviderCatalog"
    },
    "TreeViewReconcileResult": {
      "kind": "record",
      "fields": [
        {
          "name": "ViewName",
          "type": "string",
          "required": true
        },
        {
          "name": "SourceTreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "DriftRepaired",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeViewReconcileResult.cs#TreeViewReconcileResult"
    },
    "TreeViewStatus": {
      "kind": "record",
      "fields": [
        {
          "name": "ViewName",
          "type": "string",
          "required": true
        },
        {
          "name": "SourceTreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "IsAggregation",
          "type": "bool",
          "required": true
        },
        {
          "name": "ApplyLag",
          "type": "long",
          "required": true
        },
        {
          "name": "ActiveTreeId",
          "type": "string",
          "required": false
        },
        {
          "name": "ProviderKey",
          "type": "string?",
          "required": false
        },
        {
          "name": "ProjectionVersion",
          "type": "string?",
          "required": false
        },
        {
          "name": "ApplyLagAge",
          "type": "TimeSpan?",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeViewStatus.cs#TreeViewStatus"
    },
    "TreeWalMoveOptions": {
      "kind": "record struct",
      "fields": [
        {
          "name": "QuiesceLeaseSeconds",
          "type": "double",
          "required": false
        },
        {
          "name": "CopyPageSize",
          "type": "int",
          "required": false
        },
        {
          "name": "DisableVerifyAfterCopy",
          "type": "bool",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeWalMoveOptions.cs#TreeWalMoveOptions"
    },
    "TreeWalMovePlan": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Partition",
          "type": "int",
          "required": true
        },
        {
          "name": "FromProviderKey",
          "type": "string",
          "required": false
        },
        {
          "name": "ToProviderKey",
          "type": "string",
          "required": false
        },
        {
          "name": "PlacementVersion",
          "type": "long",
          "required": true
        },
        {
          "name": "SourceLowestOffset",
          "type": "long",
          "required": true
        },
        {
          "name": "SourceHighestOffset",
          "type": "long",
          "required": true
        },
        {
          "name": "EntriesToCopy",
          "type": "long",
          "required": true
        },
        {
          "name": "TargetResolvableOnThisSilo",
          "type": "bool",
          "required": true
        },
        {
          "name": "AlreadyAtTarget",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeWalMovePlan.cs#TreeWalMovePlan"
    },
    "TreeWalMoveReceipt": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Partition",
          "type": "int",
          "required": true
        },
        {
          "name": "FromProviderKey",
          "type": "string",
          "required": false
        },
        {
          "name": "ToProviderKey",
          "type": "string",
          "required": false
        },
        {
          "name": "PreviousPlacementVersion",
          "type": "long",
          "required": true
        },
        {
          "name": "NewPlacementVersion",
          "type": "long",
          "required": true
        },
        {
          "name": "CopiedFromOffset",
          "type": "long",
          "required": true
        },
        {
          "name": "CopiedThroughOffset",
          "type": "long",
          "required": true
        },
        {
          "name": "SourceHighestOffset",
          "type": "long",
          "required": true
        },
        {
          "name": "TargetHighestOffset",
          "type": "long",
          "required": true
        },
        {
          "name": "SourceRetained",
          "type": "bool",
          "required": true
        },
        {
          "name": "Outcome",
          "type": "TreeWalMoveOutcome",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeWalMoveReceipt.cs#TreeWalMoveReceipt"
    },
    "TreeWalPlacement": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Version",
          "type": "long",
          "required": true
        },
        {
          "name": "DefaultProviderKey",
          "type": "string",
          "required": false
        },
        {
          "name": "Partitions",
          "type": "ImmutableArray<TreeWalPartitionPlacement>",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeWalPlacement.cs#TreeWalPlacement"
    },
    "TreeWalPlacementAudit": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Version",
          "type": "long",
          "required": true
        },
        {
          "name": "PartitionCount",
          "type": "int",
          "required": true
        },
        {
          "name": "Partitions",
          "type": "ImmutableArray<TreeWalPartitionPlacement>",
          "required": true
        },
        {
          "name": "AllResolvableOnThisSilo",
          "type": "bool",
          "required": true
        },
        {
          "name": "KnownProviderKeys",
          "type": "ImmutableArray<string>",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeWalPlacementAudit.cs#TreeWalPlacementAudit"
    },
    "TreeWalReclamationReport": {
      "kind": "record",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "PinStoreReadable",
          "type": "bool",
          "required": true
        },
        {
          "name": "PinCount",
          "type": "int",
          "required": true
        },
        {
          "name": "PinsWithoutOffset",
          "type": "int",
          "required": true
        },
        {
          "name": "FloorHolder",
          "type": "TreeWalFloorHolder",
          "required": false
        },
        {
          "name": "IsWedged",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeWalReclamationReport.cs#TreeWalReclamationReport"
    },
    "TreeWalFloorHolder": {
      "kind": "record",
      "fields": [
        {
          "name": "ConsumerId",
          "type": "string",
          "required": true
        },
        {
          "name": "LeafId",
          "type": "string",
          "required": false
        },
        {
          "name": "Partition",
          "type": "int",
          "required": true
        },
        {
          "name": "PinOffset",
          "type": "long",
          "required": true
        },
        {
          "name": "PersistedCheckpoint",
          "type": "long",
          "required": false
        },
        {
          "name": "State",
          "type": "TreeWalFloorHolderState",
          "required": true
        },
        {
          "name": "HoldsOffsetFloor",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeWalFloorHolder.cs#TreeWalFloorHolder"
    },
    "TreeWalFloorHolderState": {
      "kind": "enum",
      "values": [
        "CheckpointedUncovered",
        "NeverCheckpointed",
        "NoDurableState",
        "Unreadable",
        "Orphaned",
        "CheckpointedCoverageUnknown"
      ],
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeWalFloorHolderState.cs#TreeWalFloorHolderState"
    },
    "LatticeOperationHandle": {
      "kind": "record",
      "fields": [
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        },
        {
          "name": "Kind",
          "type": "string",
          "required": true
        },
        {
          "name": "Scope",
          "type": "LatticeOperationScope",
          "required": true
        },
        {
          "name": "Created",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/Operations/Model/LatticeOperationHandle.cs#LatticeOperationHandle"
    },
    "LatticeOperationListRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "PageSize",
          "type": "int",
          "required": true
        },
        {
          "name": "PageToken",
          "type": "string?",
          "required": false
        },
        {
          "name": "EffectivePageSize",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/Operations/Model/LatticeOperationListRequest.cs#LatticeOperationListRequest"
    },
    "LatticeOperationPage": {
      "kind": "record",
      "fields": [
        {
          "name": "Operations",
          "type": "IReadOnlyList<LatticeOperationStatus>",
          "required": false
        },
        {
          "name": "NextPageToken",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/Operations/Model/LatticeOperationPage.cs#LatticeOperationPage"
    },
    "LatticeOperationScope": {
      "kind": "record",
      "fields": [
        {
          "name": "TenantId",
          "type": "string?",
          "required": false
        },
        {
          "name": "TreeIds",
          "type": "IReadOnlyList<string>",
          "required": false
        }
      ],
      "source": "src/lattice.api.abstractions/Operations/Model/LatticeOperationScope.cs#LatticeOperationScope"
    },
    "LatticeOperationState": {
      "kind": "enum",
      "values": [
        "Queued",
        "Running",
        "Succeeded",
        "Failed",
        "Cancelled"
      ],
      "source": "src/lattice.api.abstractions/Operations/Model/LatticeOperationState.cs#LatticeOperationState"
    },
    "LatticeOperationStatus": {
      "kind": "record",
      "fields": [
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        },
        {
          "name": "Kind",
          "type": "string",
          "required": true
        },
        {
          "name": "Scope",
          "type": "LatticeOperationScope",
          "required": true
        },
        {
          "name": "State",
          "type": "LatticeOperationState",
          "required": true
        },
        {
          "name": "Phase",
          "type": "string",
          "required": true
        },
        {
          "name": "PhaseIndex",
          "type": "int?",
          "required": false
        },
        {
          "name": "PhaseCount",
          "type": "int?",
          "required": false
        },
        {
          "name": "CompletedUnits",
          "type": "long",
          "required": true
        },
        {
          "name": "TotalUnits",
          "type": "long?",
          "required": false
        },
        {
          "name": "UnitName",
          "type": "string?",
          "required": false
        },
        {
          "name": "StartedAtUtc",
          "type": "DateTimeOffset",
          "required": true
        },
        {
          "name": "FinishedAtUtc",
          "type": "DateTimeOffset?",
          "required": false
        },
        {
          "name": "FailureReason",
          "type": "string?",
          "required": false
        },
        {
          "name": "ResultReference",
          "type": "string?",
          "required": false
        },
        {
          "name": "Result",
          "type": "IReadOnlyDictionary<string, string>",
          "required": false
        },
        {
          "name": "CancelRequested",
          "type": "bool",
          "required": true
        },
        {
          "name": "IsTerminal",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice.api.abstractions/Operations/Model/LatticeOperationStatus.cs#LatticeOperationStatus"
    },
    "TreeAdminOperationRequest": {
      "kind": "record",
      "fields": [
        {
          "name": "OperationId",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminOperationRequest.cs#TreeAdminOperationRequest"
    },
    "TreeAdminOperationStatusResponse": {
      "kind": "record",
      "fields": [
        {
          "name": "Status",
          "type": "LatticeOperationStatus?",
          "required": false
        }
      ],
      "source": "src/lattice.api.treeadmin.grpc/Model/TreeAdminOperationStatusResponse.cs#TreeAdminOperationStatusResponse"
    }
  },
  "operations": [
    {
      "id": "append-bulk-load",
      "in_process": "ILatticeTreeAdmin.AppendBulkLoadAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/AppendBulkLoad",
      "transport_scope": "both",
      "request": "TreeAdminBulkLoadAppendRequest",
      "response": "TreeBulkLoadChunkAck",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Re-drive only the last un-acknowledged chunk under the same operationId and chunkIndex; never re-drive a chunk that a later chunk has already superseded on the same shard.",
        "source": "docs/lattice.api.treeadmin/README.md"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The facade keys each chunk as operationId/chunkIndex and a shard records only the most recent bulk chunk it completed, so re-driving that chunk is a no-op while re-driving an older chunk after a later one reached the same shard is not deduplicated.",
        "source": "src/lattice/BPlusTree/Grains/ShardRootGrain.BulkLoad.cs#ShardRootGrain.BulkAppendAsync"
      },
      "concurrency": {
        "rule": "The facade rejects a chunk whose keys are not strictly ascending within the chunk and a negative chunkIndex; key order across chunks and a monotonic chunkIndex are caller obligations it does not check.",
        "source": "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#LatticeTreeAdmin.AppendBulkLoadAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AppendBulkLoadAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#AppendBulkLoad",
        "src/lattice/BPlusTree/Grains/ShardRootGrain.BulkLoad.cs#ShardRootGrain.BulkAppendAsync",
        "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#LatticeTreeAdmin.AppendBulkLoadAsync"
      ]
    },
    {
      "id": "audit-orphaned-leaves",
      "in_process": "ILatticeTreeAdmin.AuditOrphanedLeavesAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/AuditOrphanedLeaves",
      "transport_scope": "both",
      "request": "TreeAdminOrphanedLeafRequest",
      "response": "TreeOrphanedLeafReport",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "invalid-argument",
          "condition": "The tree id names a reserved system tree; the tree grain rejects it before any pass."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AuditOrphanedLeavesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "One bounded read-only batch.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AuditOrphanedLeavesAsync"
      },
      "concurrency": {
        "rule": "Drive batches with ResumeFrom until IsComplete is true.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AuditOrphanedLeavesAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AuditOrphanedLeavesAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#AuditOrphanedLeaves",
        "src/lattice/BPlusTree/Grains/LatticeGrain.OrphanRepair.cs#LatticeGrain.DriveOrphanedLeafPassAsync"
      ]
    },
    {
      "id": "audit-wal-placement",
      "in_process": "ILatticeTreeAdmin.AuditWalPlacementAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/AuditWalPlacement",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeWalPlacementAudit",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AuditWalPlacementAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AuditWalPlacementAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AuditWalPlacementAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#AuditWalPlacementAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#AuditWalPlacement"
      ]
    },
    {
      "id": "begin-bulk-load",
      "in_process": "ILatticeTreeAdmin.BeginBulkLoadAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/BeginBulkLoad",
      "transport_scope": "both",
      "request": "TreeAdminBulkLoadSessionRequest",
      "response": "TreeBulkLoadSession",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "A shard could not be sampled, so emptiness cannot be verified fail-closed."
        },
        {
          "error_id": "tree-not-empty",
          "condition": "The deep emptiness probe finds a live key or tombstone on the target tree."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry begin only while no chunk has been appended; after the first acknowledged chunk, do not re-issue begin, resume by re-driving the last un-acknowledged chunk under the same operationId.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#BeginBulkLoadAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The session holds no server-side state and begin re-runs the deep emptiness probe on every call, so a repeated begin succeeds only while the tree is still empty and throws TreeNotEmptyException once any chunk has landed.",
        "source": "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#LatticeTreeAdmin.BeginBulkLoadAsync"
      },
      "concurrency": {
        "rule": "The target tree must be empty, and the deep diagnostics probe must successfully sample every shard; any shard sample failure is refused fail-closed instead of being counted as empty.",
        "source": "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#LatticeTreeAdmin.BeginBulkLoadAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#BeginBulkLoadAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#BeginBulkLoad",
        "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#LatticeTreeAdmin.BeginBulkLoadAsync"
      ]
    },
    {
      "id": "cancel-storage-usage-refresh",
      "in_process": "ILatticeStorageUsageOperations.CancelOperationAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/CancelStorageUsageRefresh",
      "transport_scope": "both",
      "request": "TreeAdminStorageUsageOperationRequest",
      "response": {
        "type": "TreeAdminStorageUsageOperationStatusResponse",
        "meaning": "Null when the operation id is unknown, does not name a storage-usage refresh, or the caller lacks cluster telemetry authority; an unauthorized caller is answered as if the operation did not exist."
      },
      "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 ILatticeStorageUsageOperations."
        }
      ],
      "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 treeadmin.storage-usage-refresh kind, the caller's tenant and callers holding cluster telemetry, 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.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#CancelStorageUsageRefresh",
        "src/lattice.api.treeadmin/LatticeStorageUsageOperations.cs#LatticeStorageUsageOperations.CancelOperationAsync"
      ]
    },
    {
      "id": "cancel-tree-admin-operation",
      "in_process": "ILatticeTreeAdminOperations.CancelOperationAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/CancelTreeAdminOperation",
      "transport_scope": "both",
      "request": "TreeAdminOperationRequest",
      "response": "TreeAdminOperationStatusResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "not-found",
          "condition": "The named view or tag index does not exist."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered ILatticeTreeAdmin but not ILatticeTreeAdminOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Repeating is safe; a repeated cancel is a no-op on an operation already cancelling or finished.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Reads do not mutate; a cancel request is recorded once.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync"
      },
      "concurrency": {
        "rule": "Cancelling needs the grant that starting the operation needed; the work stops at its next progress report, and a WAL move past its flip is not undone.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#CancelOperationAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#CancelTreeAdminOperation",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "check-tree-exists",
      "in_process": "ILatticeTreeAdmin.CheckTreeExistsAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/CheckTreeExists",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeExistenceResult",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CheckTreeExistsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CheckTreeExistsAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CheckTreeExistsAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CheckTreeExistsAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#CheckTreeExists"
      ]
    },
    {
      "id": "commit-bulk-load",
      "in_process": "ILatticeTreeAdmin.CommitBulkLoadAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/CommitBulkLoad",
      "transport_scope": "both",
      "request": "TreeAdminBulkLoadSessionRequest",
      "response": "TreeBulkLoadResult",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry only with the same idempotency key or matching in-flight target.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CommitBulkLoadAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Same operationId confirms already durable chunks.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CommitBulkLoadAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CommitBulkLoadAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CommitBulkLoadAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#CommitBulkLoad"
      ]
    },
    {
      "id": "create-tree",
      "in_process": "ILatticeTreeAdmin.CreateTreeAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/CreateTree",
      "transport_scope": "both",
      "request": "TreeAdminCreateRequest",
      "response": "TreeCreationResult",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "A tenant quota controller refuses the create with LatticeQuotaExceededException (an InvalidOperationException)."
        },
        {
          "error_id": "tenant-access-denied",
          "condition": "The active tenant cannot be resolved, attempts a reserved namespace escape, or tenant admission refuses the create because MaxTreeCount would be exceeded (LatticeTenantAccessDeniedException)."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CreateTreeAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Creating an already registered tree is a no-op.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CreateTreeAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CreateTreeAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CreateTreeAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#CreateTree",
        "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#LatticeTreeAdmin"
      ]
    },
    {
      "id": "create-view",
      "in_process": "ILatticeTreeAdmin.CreateViewAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/CreateView",
      "transport_scope": "both",
      "request": "TreeAdminCreateViewRequest",
      "response": "TreeViewStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; the durable view registration returns immediately when the same registration already exists.",
        "source": "src/lattice/Views/ViewRegistryGrain.cs#RegisterAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The runtime view registry returns without writing when the existing registration equals the requested registration.",
        "source": "src/lattice/Views/ViewRegistryGrain.cs#RegisterAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CreateViewAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#CreateViewAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#CreateView"
      ]
    },
    {
      "id": "delete-tree",
      "in_process": "ILatticeTreeAdmin.DeleteTreeAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/DeleteTree",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeDeletionStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DeleteTreeAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Deleting an already deleted tree is a no-op.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DeleteTreeAsync"
      },
      "concurrency": {
        "rule": "Rejected while the tree is the source of a materialised view, while another tree aliases it, when its alias targets a tree it does not own, or while a resize, restore or remediation is changing its alias.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DeleteTreeAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DeleteTreeAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#DeleteTree"
      ]
    },
    {
      "id": "drop-view",
      "in_process": "ILatticeTreeAdmin.DropViewAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/DropView",
      "transport_scope": "both",
      "request": "TreeAdminViewRequest",
      "response": "TreeAdminViewRequest",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DropViewAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Dropping an already absent runtime view is idempotent.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DropViewAsync"
      },
      "concurrency": {
        "rule": "Startup-declared views cannot be dropped at runtime.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DropViewAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#DropViewAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#DropView"
      ]
    },
    {
      "id": "get-auth-scheme",
      "in_process": null,
      "grpc_method": "/orleans.lattice.api.treeadmin/GetAuthScheme",
      "transport_scope": "grpc_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#GetAuthScheme",
      "request": "AuthSchemeAdvertisementRequest",
      "response": "AuthSchemeAdvertisement",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#GetAuthScheme"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Unauthenticated discovery has no side effects.",
        "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#GetAuthScheme"
      },
      "concurrency": {
        "rule": "GetAuthScheme is exempt from authorization.",
        "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#GetAuthScheme"
      },
      "sources": [
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#GetAuthScheme",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetAuthScheme"
      ]
    },
    {
      "id": "get-diagnostics",
      "in_process": "ILatticeTreeAdmin.GetDiagnosticsAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetDiagnostics",
      "transport_scope": "both",
      "request": "TreeAdminDiagnosticsRequest",
      "response": "TreeAdminDiagnosticReport",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetDiagnosticsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only diagnostics.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetDiagnosticsAsync"
      },
      "concurrency": {
        "rule": "Both shallow and deep diagnostics page through every shard leaf chain; shallow counts live keys only and reports tombstones as zero, while deep also counts tombstoned and expired entries.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetDiagnosticsAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetDiagnosticsAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetDiagnostics"
      ]
    },
    {
      "id": "get-history-retention",
      "in_process": "ILatticeTreeAdmin.GetHistoryRetentionAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetHistoryRetention",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeHistoryRetention",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetHistoryRetentionAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetHistoryRetentionAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetHistoryRetentionAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetHistoryRetentionAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetHistoryRetention"
      ]
    },
    {
      "id": "get-projection-digest",
      "in_process": "ILatticeTreeAdmin.GetProjectionDigestAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetProjectionDigest",
      "transport_scope": "both",
      "request": "TreeAdminShardRequest",
      "response": "ShardProjectionDigestReport",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetProjectionDigestAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only digest.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetProjectionDigestAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetProjectionDigestAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetProjectionDigestAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetProjectionDigest"
      ]
    },
    {
      "id": "get-reshard-status",
      "in_process": "ILatticeTreeAdmin.GetReshardStatusAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetReshardStatus",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeReshardStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetReshardStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetReshardStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetReshardStatusAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetReshardStatusAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetReshardStatus"
      ]
    },
    {
      "id": "get-resize-status",
      "in_process": "ILatticeTreeAdmin.GetResizeStatusAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetResizeStatus",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeResizeStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetResizeStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetResizeStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetResizeStatusAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetResizeStatusAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetResizeStatus"
      ]
    },
    {
      "id": "get-shard-hotness",
      "in_process": "ILatticeTreeAdmin.GetShardHotnessAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetShardHotness",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeHotnessReport",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardHotnessAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Cheap non-blocking read-only sample.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardHotnessAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardHotnessAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardHotnessAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetShardHotness"
      ]
    },
    {
      "id": "get-shard-map",
      "in_process": "ILatticeTreeAdmin.GetShardMapAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetShardMap",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeShardMapView",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardMapAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardMapAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardMapAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetShardMapAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetShardMap"
      ]
    },
    {
      "id": "get-snapshot-status",
      "in_process": "ILatticeTreeAdmin.GetSnapshotStatusAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetSnapshotStatus",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeSnapshotStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetSnapshotStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetSnapshotStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetSnapshotStatusAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetSnapshotStatusAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetSnapshotStatus"
      ]
    },
    {
      "id": "get-storage-usage",
      "in_process": "ILatticeTreeAdmin.GetStorageUsageAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetStorageUsage",
      "transport_scope": "both",
      "request": "TreeAdminStorageUsageRequest",
      "response": "ClusterStorageUsageSummary",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetStorageUsageAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only storage accounting.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetStorageUsageAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetStorageUsageAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetStorageUsageAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetStorageUsage"
      ]
    },
    {
      "id": "get-storage-usage-refresh-status",
      "in_process": "ILatticeStorageUsageOperations.GetOperationStatusAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetStorageUsageRefreshStatus",
      "transport_scope": "both",
      "request": "TreeAdminStorageUsageOperationRequest",
      "response": "TreeAdminStorageUsageOperationStatusResponse",
      "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 ILatticeStorageUsageOperations."
        }
      ],
      "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 treeadmin.storage-usage-refresh kind, the caller's tenant and callers holding cluster telemetry, 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.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetStorageUsageRefreshStatus"
      ]
    },
    {
      "id": "get-tag-index-status",
      "in_process": "ILatticeTreeAdmin.GetTagIndexStatusAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetTagIndexStatus",
      "transport_scope": "both",
      "request": "TreeAdminTagIndexRequest",
      "response": "TreeTagIndexStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTagIndexStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTagIndexStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTagIndexStatusAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTagIndexStatusAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetTagIndexStatus"
      ]
    },
    {
      "id": "get-tree-admin-operation-status",
      "in_process": "ILatticeTreeAdminOperations.GetOperationStatusAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetTreeAdminOperationStatus",
      "transport_scope": "both",
      "request": "TreeAdminOperationRequest",
      "response": "TreeAdminOperationStatusResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered ILatticeTreeAdmin but not ILatticeTreeAdminOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Repeating is safe; a repeated cancel is a no-op on an operation already cancelling or finished.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Reads do not mutate; a cancel request is recorded once.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync"
      },
      "concurrency": {
        "rule": "Reads are scoped fail-closed to treeadmin. kinds, the caller tenant and trees the caller may read; an invisible operation reads as null.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#GetOperationStatusAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetTreeAdminOperationStatus",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "get-tree-config",
      "in_process": "ILatticeTreeAdmin.GetTreeConfigAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetTreeConfig",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeConfigurationReport",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeConfigAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeConfigAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeConfigAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetTreeConfig"
      ]
    },
    {
      "id": "get-tree-deletion-status",
      "in_process": "ILatticeTreeAdmin.GetTreeDeletionStatusAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetTreeDeletionStatus",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeDeletionStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeDeletionStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeDeletionStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeDeletionStatusAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeDeletionStatusAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetTreeDeletionStatus"
      ]
    },
    {
      "id": "get-tree-stats",
      "in_process": "ILatticeTreeAdmin.GetTreeStatsAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetTreeStats",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeStatsReport",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeStatsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only statistics snapshot.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeStatsAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeStatsAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetTreeStatsAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetTreeStats"
      ]
    },
    {
      "id": "get-view-status",
      "in_process": "ILatticeTreeAdmin.GetViewStatusAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetViewStatus",
      "transport_scope": "both",
      "request": "TreeAdminViewRequest",
      "response": "TreeViewStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "not-found",
          "condition": "No runtime or startup-declared view with that name is registered (KeyNotFoundException)."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetViewStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetViewStatusAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetViewStatusAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetViewStatusAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetViewStatus",
        "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#LatticeTreeAdmin"
      ]
    },
    {
      "id": "get-wal-placement",
      "in_process": "ILatticeTreeAdmin.GetWalPlacementAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetWalPlacement",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeWalPlacement",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetWalPlacementAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetWalPlacementAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetWalPlacementAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#GetWalPlacementAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetWalPlacement"
      ]
    },
    {
      "id": "get-wal-reclamation",
      "in_process": "ILatticeWalReclamation.GetWalReclamationAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/GetWalReclamation",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeWalReclamationReport",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered no ILatticeWalReclamation."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeWalReclamation.cs#GetWalReclamationAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects; it never activates a leaf.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeWalReclamation.cs#GetWalReclamationAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeWalReclamation.cs#GetWalReclamationAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeWalReclamation.cs#GetWalReclamationAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#GetWalReclamation"
      ]
    },
    {
      "id": "inspect-shard-map",
      "in_process": "ILatticeTreeAdmin.InspectShardMapAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/InspectShardMap",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "ShardMapInspection",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#InspectShardMapAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only topology inspection.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#InspectShardMapAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#InspectShardMapAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#InspectShardMapAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#InspectShardMap"
      ]
    },
    {
      "id": "list-storage-usage-refreshes",
      "in_process": "ILatticeStorageUsageOperations.ListOperationsAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/ListStorageUsageRefreshes",
      "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 ILatticeStorageUsageOperations."
        }
      ],
      "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 treeadmin.storage-usage-refresh kind, the caller's tenant and callers holding cluster telemetry, 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.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#ListStorageUsageRefreshes"
      ]
    },
    {
      "id": "list-tag-indexes",
      "in_process": "ILatticeTreeAdmin.ListTagIndexesAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/ListTagIndexes",
      "transport_scope": "both",
      "request": "TreeAdminTagIndexListRequest",
      "response": "TreeTagIndexCatalog",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListTagIndexesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListTagIndexesAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListTagIndexesAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListTagIndexesAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#ListTagIndexes"
      ]
    },
    {
      "id": "list-tree-admin-operations",
      "in_process": "ILatticeTreeAdminOperations.ListOperationsAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/ListTreeAdminOperations",
      "transport_scope": "both",
      "request": "LatticeOperationListRequest",
      "response": "LatticeOperationPage",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered ILatticeTreeAdmin but not ILatticeTreeAdminOperations."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Repeating is safe; a repeated cancel is a no-op on an operation already cancelling or finished.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Reads do not mutate; a cancel request is recorded once.",
        "source": "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync"
      },
      "concurrency": {
        "rule": "Lists newest-first only the treeadmin. operations visible to the caller.",
        "source": "docs/lattice.api.abstractions/operations.md"
      },
      "sources": [
        "src/lattice.api.abstractions/Operations/ILatticeOperations.cs#ListOperationsAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#ListTreeAdminOperations",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "list-view-providers",
      "in_process": "ILatticeTreeAdmin.ListViewProvidersAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/ListViewProviders",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeViewProviderCatalog",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "The source is empty, reserved, or a materialised-view tree."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller lacks whole-tree admin authority over the source."
        },
        {
          "error_id": "precondition-failed",
          "condition": "The materialised-view subsystem is not enabled on this cluster."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListViewProvidersAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects; no provider code runs.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListViewProvidersAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListViewProvidersAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListViewProvidersAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#ListViewProviders",
        "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#ListViewProvidersAsync"
      ]
    },
    {
      "id": "list-views",
      "in_process": "ILatticeTreeAdmin.ListViewsAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/ListViews",
      "transport_scope": "both",
      "request": "TreeAdminViewListRequest",
      "response": "TreeViewCatalog",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListViewsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListViewsAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListViewsAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ListViewsAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#ListViews"
      ]
    },
    {
      "id": "plan-wal-move",
      "in_process": "ILatticeTreeAdmin.PlanWalMoveAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/PlanWalMove",
      "transport_scope": "both",
      "request": "TreeAdminWalMovePlanRequest",
      "response": "TreeWalMovePlan",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#PlanWalMoveAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read-only preview.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#PlanWalMoveAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#PlanWalMoveAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#PlanWalMoveAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#PlanWalMove"
      ]
    },
    {
      "id": "probe-capabilities",
      "in_process": "ILatticeTreeAdmin.ProbeCapabilitiesAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/ProbeCapabilities",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "LatticeTreeAdminCapabilities",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ProbeCapabilitiesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "No side effects; denials are flags.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ProbeCapabilitiesAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ProbeCapabilitiesAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ProbeCapabilitiesAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#ProbeCapabilities"
      ]
    },
    {
      "id": "purge-tree",
      "in_process": "ILatticeTreeAdmin.PurgeTreeAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/PurgeTree",
      "transport_scope": "both",
      "request": "TreeAdminPurgeRequest",
      "response": "TreeDeletionStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe to retry. The purge is accept-then-poll: the first call records it in progress and hands the shard walk to a background timer, then waits a bounded time; a call while the purge runs, after the shard walk completed but registry removal is still owed, or after it completed returns the current status without error, so after an ambiguous failure or a return with PurgeInProgress still true, read the deletion status or simply call again.",
        "source": "src/lattice/BPlusTree/Grains/TreeDeletionGrain.cs#TreeDeletionGrain.SettleRegistryEntryAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Accepting a purge that is already running, still settling registry removal, or complete changes nothing and returns its status; the background walk resumes from its last durably recorded shard after a restart, and an owed registry removal is re-driven from RegistryUnregisterPending.",
        "source": "src/lattice/BPlusTree/Grains/TreeDeletionGrain.cs#TreeDeletionGrain.SettleRegistryEntryAsync"
      },
      "concurrency": {
        "rule": "confirm must be true before irreversible purge.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#PurgeTreeAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#PurgeTreeAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#PurgeTree"
      ]
    },
    {
      "id": "reclaim-moved-wal-source",
      "in_process": "ILatticeTreeAdmin.ReclaimMovedWalSourceAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/ReclaimMovedWalSource",
      "transport_scope": "both",
      "request": "TreeAdminWalReclaimRequest",
      "response": "TreeWalMoveReceipt",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; after the source tail is trimmed the live-range check leaves the outcome as NoOp.",
        "source": "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#ReclaimMovedWalSourceAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "ReclaimMovedWalSourceAsync trims only when the source provider still has a live retained range, otherwise it returns NoOp without trimming.",
        "source": "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#ReclaimMovedWalSourceAsync"
      },
      "concurrency": {
        "rule": "Refused if the source provider is the live placement.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ReclaimMovedWalSourceAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ReclaimMovedWalSourceAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#ReclaimMovedWalSource"
      ]
    },
    {
      "id": "recover-tree",
      "in_process": "ILatticeTreeAdmin.RecoverTreeAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/RecoverTree",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeDeletionStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry is safe until recovery state is durably cleared; after success a repeated call fails with InvalidOperationException because the tree is not deleted.",
        "source": "src/lattice/BPlusTree/Grains/TreeDeletionGrain.cs#RecoverPhysicalAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "RecoverPhysicalAsync re-runs before IsDeleted is cleared, but a repeat after a successful clear throws because the tree is no longer deleted.",
        "source": "src/lattice/BPlusTree/Grains/TreeDeletionGrain.cs#RecoverPhysicalAsync"
      },
      "concurrency": {
        "rule": "Available within the soft-delete recovery window; on an aliased tree it recovers the live copy the delete pinned, and a live resized tree is not deleted, so recovering it is rejected.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RecoverTreeAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RecoverTreeAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#RecoverTree"
      ]
    },
    {
      "id": "repair-orphaned-leaves",
      "in_process": "ILatticeTreeAdmin.RepairOrphanedLeavesAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/RepairOrphanedLeaves",
      "transport_scope": "both",
      "request": "TreeAdminOrphanedLeafRequest",
      "response": "TreeOrphanedLeafReport",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "invalid-argument",
          "condition": "The tree id names a reserved system tree; the tree grain rejects it before any pass."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller lacks whole-tree TreeLifecycle authority at the facade, or whole-tree Admin authority, which the tree grain additionally enforces for a repair pass."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RepairOrphanedLeavesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Re-running is safe after a timeout.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RepairOrphanedLeavesAsync"
      },
      "concurrency": {
        "rule": "Audit, repair to completion, then re-audit.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RepairOrphanedLeavesAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RepairOrphanedLeavesAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#RepairOrphanedLeaves",
        "src/lattice/BPlusTree/Grains/LatticeGrain.OrphanRepair.cs#LatticeGrain.DriveOrphanedLeafPassAsync"
      ]
    },
    {
      "id": "reshard-tree",
      "in_process": "ILatticeTreeAdmin.ReshardTreeAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/ReshardTree",
      "transport_scope": "both",
      "request": "TreeAdminReshardRequest",
      "response": "TreeReshardStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "tree-not-registered",
          "condition": "The tree id has no registry row (it was never created, or it has been purged); the coordinator refuses rather than creating one."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry only with the same idempotency key or matching in-flight target.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ReshardTreeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "A request for the current physical shard count, or a matching in-flight target, is a no-op; a different in-flight target is rejected.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ReshardTreeAsync"
      },
      "concurrency": {
        "rule": "A reshard with a different target is rejected; a resize in flight, or a completed resize that can still be undone while the previous copy mirrors into the resized one, rejects a reshard only when the requested target requires a migration, because the empty-tree re-pin fast path runs before the resize interlock.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ReshardTreeAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ReshardTreeAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#ReshardTree"
      ]
    },
    {
      "id": "resize-tree",
      "in_process": "ILatticeTreeAdmin.ResizeTreeAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/ResizeTree",
      "transport_scope": "both",
      "request": "TreeAdminResizeRequest",
      "response": "TreeResizeStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "tree-not-registered",
          "condition": "The tree id has no registry row (it was never created, or it has been purged); the coordinator refuses rather than creating one."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry only with the same idempotency key or matching in-flight target.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResizeTreeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Matching in-flight target is a no-op.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResizeTreeAsync"
      },
      "concurrency": {
        "rule": "A resize with different parameters, or a reshard, is rejected.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResizeTreeAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResizeTreeAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#ResizeTree"
      ]
    },
    {
      "id": "resolve-tree-alias",
      "in_process": "ILatticeTreeAdmin.ResolveTreeAliasAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/ResolveTreeAlias",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeAliasResolution",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResolveTreeAliasAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Pure read with no side effects.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResolveTreeAliasAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResolveTreeAliasAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#ResolveTreeAliasAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#ResolveTreeAlias"
      ]
    },
    {
      "id": "restore-tree",
      "in_process": "ILatticeTreeAdmin.RestoreTreeAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/RestoreTree",
      "transport_scope": "both",
      "request": "TreeAdminRestoreRequest",
      "response": "TreeRestoreResult",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry only with the same idempotency key or matching in-flight target.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RestoreTreeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Same operationId converges to the same state.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RestoreTreeAsync"
      },
      "concurrency": {
        "rule": "The composed backup/restore engine authorizes the target before coordinated dispatch and requires Backup authority on any distinct captured source tree for a cross-tree retarget.",
        "source": "src/lattice.backup/LatticeBackupRestoreService.cs#RestoreAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RestoreTreeAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#RestoreTree",
        "src/lattice.backup/LatticeBackupRestoreService.cs#RestoreAsync"
      ]
    },
    {
      "id": "restore-tree-set",
      "in_process": "ILatticeTreeAdmin.RestoreTreeSetAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/RestoreTreeSet",
      "transport_scope": "both",
      "request": "TreeAdminRestoreSetRequest",
      "response": "TreeRestoreSetResult",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RestoreTreeSetAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Re-running the same set restore converges to the same state.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RestoreTreeSetAsync"
      },
      "concurrency": {
        "rule": "The composed backup/restore engine authorizes every member target before coordinated dispatch, then replicated members flip together as an all-or-nothing coordinated restore.",
        "source": "src/lattice.backup/LatticeBackupRestoreService.cs#RestoreSetAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RestoreTreeSetAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#RestoreTreeSet",
        "src/lattice.backup/LatticeBackupRestoreService.cs#RestoreSetAsync"
      ]
    },
    {
      "id": "revert-tree-restore",
      "in_process": "ILatticeTreeAdmin.RevertTreeRestoreAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/RevertTreeRestore",
      "transport_scope": "both",
      "request": "TreeRestoreResult",
      "response": "TreeRestoreResult",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RevertTreeRestoreAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Shadow-cutover revert is idempotent.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RevertTreeRestoreAsync"
      },
      "concurrency": {
        "rule": "The backup/restore engine revalidates caller-supplied physical tree ids against registry provenance before a shadow-cutover revert can repoint an alias.",
        "source": "src/lattice.backup/LatticeBackupRestoreService.cs#AssertPhysicalBelongsToTargetAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#RevertTreeRestoreAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#RevertTreeRestore",
        "src/lattice.backup/LatticeBackupRestoreService.cs#AssertPhysicalBelongsToTargetAsync"
      ]
    },
    {
      "id": "schema-advance-target-version",
      "in_process": "ILatticeSchemaControl.AdvanceTargetVersionAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
      "request": "SchemaAdminRequest",
      "response": "LatticeSchemaVersionConfig",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry can be treated as already advanced only when the repeat fails the monotonic target-version guard for the same target version.",
        "source": "src/lattice.schema/LatticeSchemaVersionAdmin.cs#AdvanceTargetVersionAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "AdvanceTargetVersionAsync persists the higher target once, and a repeat with the same target is rejected because it is no longer greater than the current target.",
        "source": "src/lattice.schema/LatticeSchemaVersionAdmin.cs#AdvanceTargetVersionAsync"
      },
      "concurrency": {
        "rule": "Schema reads authorize Read; schema mutations authorize SchemaAdmin.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#AdvanceTargetVersionAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#AdvanceTargetVersionAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods"
      ]
    },
    {
      "id": "schema-clear-policy",
      "in_process": "ILatticeSchemaControl.ClearPolicyAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
      "request": "SchemaAdminRequest",
      "response": "bool",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry by reissuing the same request only if the caller treats a false return as already cleared.",
        "source": "src/lattice.schema/LatticeSchemaPolicyStore.cs#ClearPolicyAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "ClearPolicyAsync delegates to DeleteAsync, so the stored policy remains absent on repeat but the boolean result can change after the first delete.",
        "source": "src/lattice.schema/LatticeSchemaPolicyStore.cs#ClearPolicyAsync"
      },
      "concurrency": {
        "rule": "Schema reads authorize Read; schema mutations authorize SchemaAdmin.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ClearPolicyAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ClearPolicyAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods"
      ]
    },
    {
      "id": "schema-clear-version-config",
      "in_process": "ILatticeSchemaControl.ClearVersionConfigAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
      "request": "SchemaAdminRequest",
      "response": "bool",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry by reissuing the same request only if the caller treats a false return as already cleared.",
        "source": "src/lattice.schema/LatticeSchemaVersionStore.cs#ClearConfigAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "ClearConfigAsync delegates to DeleteAsync, so the stored version config remains absent on repeat but the boolean result can change after the first delete.",
        "source": "src/lattice.schema/LatticeSchemaVersionStore.cs#ClearConfigAsync"
      },
      "concurrency": {
        "rule": "Schema reads authorize Read; schema mutations authorize SchemaAdmin.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ClearVersionConfigAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ClearVersionConfigAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods"
      ]
    },
    {
      "id": "schema-count-dead-letters",
      "in_process": "ILatticeSchemaControl.CountDeadLettersAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
      "request": "SchemaTreeRequest",
      "response": "int",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#CountDeadLettersAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Delegated schema facade operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#CountDeadLettersAsync"
      },
      "concurrency": {
        "rule": "Schema reads authorize Read; schema mutations authorize SchemaAdmin.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#CountDeadLettersAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#CountDeadLettersAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods"
      ]
    },
    {
      "id": "schema-get-policy",
      "in_process": "ILatticeSchemaControl.GetPolicyAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
      "request": "SchemaTreeRequest",
      "response": "LatticeSchemaPolicy",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetPolicyAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Delegated schema facade operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetPolicyAsync"
      },
      "concurrency": {
        "rule": "Schema reads authorize Read; schema mutations authorize SchemaAdmin.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetPolicyAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetPolicyAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods"
      ]
    },
    {
      "id": "schema-get-remediation-status",
      "in_process": "ILatticeSchemaControl.GetRemediationStatusAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
      "request": "SchemaTreeRequest",
      "response": "LatticeSchemaRemediationReport",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRemediationStatusAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Delegated schema facade operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRemediationStatusAsync"
      },
      "concurrency": {
        "rule": "Schema reads authorize Read; schema mutations authorize SchemaAdmin.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRemediationStatusAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetRemediationStatusAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods"
      ]
    },
    {
      "id": "schema-get-version-config",
      "in_process": "ILatticeSchemaControl.GetVersionConfigAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
      "request": "SchemaTreeRequest",
      "response": "LatticeSchemaVersionConfig?",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetVersionConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Delegated schema facade operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetVersionConfigAsync"
      },
      "concurrency": {
        "rule": "Schema reads authorize Read; schema mutations authorize SchemaAdmin.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetVersionConfigAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#GetVersionConfigAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods"
      ]
    },
    {
      "id": "schema-list-dead-letters",
      "in_process": "ILatticeSchemaControl.ListDeadLettersAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
      "request": "SchemaTreeRequest",
      "response": "IAsyncEnumerable<LatticeSchemaDeadLetterEntry>",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ListDeadLettersAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Delegated schema facade operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ListDeadLettersAsync"
      },
      "concurrency": {
        "rule": "Schema reads authorize Read; schema mutations authorize SchemaAdmin.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ListDeadLettersAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ListDeadLettersAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods"
      ]
    },
    {
      "id": "schema-probe-capabilities",
      "in_process": "ILatticeSchemaControl.ProbeCapabilitiesAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
      "request": "SchemaTreeRequest",
      "response": "LatticeSchemaCapabilities",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ProbeCapabilitiesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Delegated schema facade operation.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ProbeCapabilitiesAsync"
      },
      "concurrency": {
        "rule": "Schema reads authorize Read; schema mutations authorize SchemaAdmin.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ProbeCapabilitiesAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#ProbeCapabilitiesAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods"
      ]
    },
    {
      "id": "schema-set-policy",
      "in_process": "ILatticeSchemaControl.SetPolicyAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
      "request": "SchemaAdminRequest",
      "response": "void",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; the policy store writes the same policy value to the same key.",
        "source": "src/lattice.schema/LatticeSchemaPolicyStore.cs#SetPolicyAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "SetPolicyAsync validates the policy and stores it with SetAsync under the governed tree id, so the same request leaves the same policy value stored.",
        "source": "src/lattice.schema/LatticeSchemaPolicyStore.cs#SetPolicyAsync"
      },
      "concurrency": {
        "rule": "Schema reads authorize Read; schema mutations authorize SchemaAdmin.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#SetPolicyAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#SetPolicyAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods"
      ]
    },
    {
      "id": "schema-set-version-config",
      "in_process": "ILatticeSchemaControl.SetVersionConfigAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "transport_scope_source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods",
      "request": "SchemaAdminRequest",
      "response": "void",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; the version store writes the same config value to the same key.",
        "source": "src/lattice.schema/LatticeSchemaVersionStore.cs#SetConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "SetConfigAsync stores the supplied version config with SetAsync under the governed tree id, so the same request leaves the same config value stored.",
        "source": "src/lattice.schema/LatticeSchemaVersionStore.cs#SetConfigAsync"
      },
      "concurrency": {
        "rule": "Schema reads authorize Read; schema mutations authorize SchemaAdmin.",
        "source": "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#SetVersionConfigAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs#SetVersionConfigAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#LatticeTreeAdminGrpcMethods"
      ]
    },
    {
      "id": "set-history-retention",
      "in_process": "ILatticeTreeAdmin.SetHistoryRetentionAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/SetHistoryRetention",
      "transport_scope": "both",
      "request": "TreeAdminSetRetentionRequest",
      "response": "TreeHistoryRetention",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed, including an undefined TreeHistoryRetentionMode value or a non-positive retention window."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "tree-not-registered",
          "condition": "The effective tree id has a completed purge record; the underlying ILattice configuration verb refuses it as not registered."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; the registry overwrites the same retention fields and the facade reads back the effective policy.",
        "source": "src/lattice/BPlusTree/Grains/LatticeRegistryGrain.cs#SetHistoryRetentionAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "SetHistoryRetentionAsync writes the requested retention mode and window ticks onto the registry entry, replacing the same fields on repeat.",
        "source": "src/lattice/BPlusTree/Grains/LatticeRegistryGrain.cs#SetHistoryRetentionAsync"
      },
      "concurrency": {
        "rule": "Already-written rows keep their stamped shape.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SetHistoryRetentionAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SetHistoryRetentionAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#SetHistoryRetention"
      ]
    },
    {
      "id": "set-tree-alias",
      "in_process": "ILatticeTreeAdmin.SetTreeAliasAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/SetTreeAlias",
      "transport_scope": "both",
      "request": "TreeAdminSetAliasRequest",
      "response": "TreeAliasResolution",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed, including while another operation (a resize, shadow-cutover restore, restore revert, or schema remediation or migration) holds the tree's alias reservation, the message naming the holder; or, for an alias onto a logical id with no registry entry, a tenant quota controller refuses it with LatticeQuotaExceededException (an InvalidOperationException)."
        },
        {
          "error_id": "tree-ownership-denied",
          "condition": "The registered ownership guard refuses the alias."
        },
        {
          "error_id": "tenant-access-denied",
          "condition": "The active tenant cannot be resolved or attempts a reserved namespace escape while either tree id is composed, or tenant admission refuses an alias onto a logical id with no registry entry because MaxTreeCount would be exceeded (LatticeTenantAccessDeniedException)."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; a repeated current alias leaves the logical shard map unchanged and releases any redirect on the target, while an interrupted first attempt re-drives the target map carry and previous-copy redirect repair.",
        "source": "src/lattice/BPlusTree/AliasCutoverShardMaps.cs#AliasCutoverShardMaps.CarryAcrossExplicitAliasAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "CarryAcrossExplicitAliasAsync moves the target's shard map and split allocation mark onto the logical entry in the same registry write as the alias; repeating the same current alias carries no map change and releases target redirects.",
        "source": "src/lattice/BPlusTree/AliasCutoverShardMaps.cs#AliasCutoverShardMaps.CarryAcrossExplicitAliasAsync"
      },
      "concurrency": {
        "rule": "Only one level of alias indirection is allowed, the alias is refused while either tree is deleted or a delete of it is pending, it is refused with InvalidOperationException naming the holder while a resize, shadow-cutover restore, restore revert, or schema remediation or migration holds the tree's alias reservation (retry after that operation completes, or cancel it), and a refused alias writes nothing; a successful alias carries the target's shard map and split allocation mark onto the logical tree, writes the replaced map to the previous physical entry when possible, arms previous-copy redirects, and releases target redirects.",
        "source": "src/lattice/BPlusTree/AliasCutoverShardMaps.cs#AliasCutoverShardMaps.CarryAcrossExplicitAliasAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SetTreeAliasAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#SetTreeAlias",
        "src/lattice/ITreeOwnershipGuard.cs#ITreeOwnershipGuard",
        "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#LatticeTreeAdmin"
      ]
    },
    {
      "id": "set-tree-config",
      "in_process": "ILatticeTreeAdmin.SetTreeConfigAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/SetTreeConfig",
      "transport_scope": "both",
      "request": "TreeAdminSetConfigRequest",
      "response": "TreeConfigurationReport",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "tree-not-registered",
          "condition": "The effective tree id has no registry row or has been purged; per-tree registry overrides fail closed instead of creating a row."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request; every applied dimension is overwritten with the same value and unapplied dimensions are skipped again.",
        "source": "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#SetTreeConfigAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "SetTreeConfigAsync applies each flagged registry override by replacing that dimension with the requested value, so reapplying the same partial update leaves the same configuration.",
        "source": "src/lattice.api.treeadmin/LatticeTreeAdmin.cs#SetTreeConfigAsync"
      },
      "concurrency": {
        "rule": "No operation-specific concurrency rule is stated beyond facade authorization.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SetTreeConfigAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SetTreeConfigAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#SetTreeConfig"
      ]
    },
    {
      "id": "snapshot-tree",
      "in_process": "ILatticeTreeAdmin.SnapshotTreeAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/SnapshotTree",
      "transport_scope": "both",
      "request": "TreeAdminSnapshotRequest",
      "response": "TreeSnapshotStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed, including an undefined TreeSnapshotMode value."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry only with the same idempotency key or matching in-flight target.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SnapshotTreeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Matching in-flight destination and mode is a no-op.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SnapshotTreeAsync"
      },
      "concurrency": {
        "rule": "Different in-flight snapshot or existing destination is rejected.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SnapshotTreeAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SnapshotTreeAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#SnapshotTree"
      ]
    },
    {
      "id": "start-orphaned-leaves-audit",
      "in_process": "ILatticeTreeAdminOperations.StartOrphanedLeavesAuditAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/StartOrphanedLeavesAudit",
      "transport_scope": "both",
      "request": "TreeAdminOrphanedLeafRequest",
      "response": "LatticeOperationHandle",
      "operation_kind": "treeadmin.orphaned-leaves-audit",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "invalid-argument",
          "condition": "The tree id names a reserved system tree; the tree grain rejects it before any pass."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered ILatticeTreeAdmin but not ILatticeTreeAdminOperations."
        }
      ],
      "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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartOrphanedLeavesAuditAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree Read; 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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartOrphanedLeavesAuditAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#StartOrphanedLeavesAudit",
        "docs/lattice.api.treeadmin/operations.md",
        "src/lattice/BPlusTree/Grains/LatticeGrain.OrphanRepair.cs#LatticeGrain.DriveOrphanedLeafPassAsync"
      ]
    },
    {
      "id": "start-orphaned-leaves-repair",
      "in_process": "ILatticeTreeAdminOperations.StartOrphanedLeavesRepairAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/StartOrphanedLeavesRepair",
      "transport_scope": "both",
      "request": "TreeAdminOrphanedLeafRequest",
      "response": "LatticeOperationHandle",
      "operation_kind": "treeadmin.orphaned-leaves-repair",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "invalid-argument",
          "condition": "The tree id names a reserved system tree; the tree grain rejects it before any pass."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller lacks whole-tree TreeLifecycle authority at the facade, or whole-tree Admin authority, which the tree grain additionally enforces for a repair pass."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered ILatticeTreeAdmin but not ILatticeTreeAdminOperations."
        }
      ],
      "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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartOrphanedLeavesRepairAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree TreeLifecycle; 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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartOrphanedLeavesRepairAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#StartOrphanedLeavesRepair",
        "docs/lattice.api.treeadmin/operations.md",
        "src/lattice/BPlusTree/Grains/LatticeGrain.OrphanRepair.cs#LatticeGrain.DriveOrphanedLeafPassAsync"
      ]
    },
    {
      "id": "start-storage-usage-refresh",
      "in_process": "ILatticeStorageUsageOperations.StartStorageUsageRefreshAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/StartStorageUsageRefresh",
      "transport_scope": "both",
      "request": "TreeAdminStorageUsageRefreshRequest",
      "response": "LatticeOperationHandle",
      "operation_kind": "treeadmin.storage-usage-refresh",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller lacks cluster telemetry authority."
        },
        {
          "error_id": "cancelled",
          "condition": "Request was cancelled."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered no ILatticeStorageUsageOperations."
        }
      ],
      "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/TreeAdmin/ILatticeStorageUsageOperations.cs#StartStorageUsageRefreshAsync"
      },
      "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/TreeAdmin/ILatticeStorageUsageOperations.cs#ILatticeStorageUsageOperations"
      },
      "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/TreeAdmin/ILatticeStorageUsageOperations.cs#StartStorageUsageRefreshAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#StartStorageUsageRefresh",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "start-tag-index-reconcile",
      "in_process": "ILatticeTreeAdminOperations.StartTagIndexReconcileAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/StartTagIndexReconcile",
      "transport_scope": "both",
      "request": "TreeAdminTagIndexRequest",
      "response": "LatticeOperationHandle",
      "operation_kind": "treeadmin.tag-index-reconcile",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "not-found",
          "condition": "The named view or tag index does not exist."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered ILatticeTreeAdmin but not ILatticeTreeAdminOperations."
        }
      ],
      "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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartTagIndexReconcileAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree Admin over the tag-{indexName} tree; 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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartTagIndexReconcileAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#StartTagIndexReconcile",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "start-view-rebuild",
      "in_process": "ILatticeTreeAdminOperations.StartViewRebuildAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/StartViewRebuild",
      "transport_scope": "both",
      "request": "TreeAdminViewRequest",
      "response": "LatticeOperationHandle",
      "operation_kind": "treeadmin.view-rebuild",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "not-found",
          "condition": "The named view or tag index does not exist."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered ILatticeTreeAdmin but not ILatticeTreeAdminOperations."
        }
      ],
      "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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartViewRebuildAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree Admin over the view source tree; 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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartViewRebuildAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#StartViewRebuild",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "start-view-reconcile",
      "in_process": "ILatticeTreeAdminOperations.StartViewReconcileAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/StartViewReconcile",
      "transport_scope": "both",
      "request": "TreeAdminViewRequest",
      "response": "LatticeOperationHandle",
      "operation_kind": "treeadmin.view-reconcile",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "not-found",
          "condition": "The named view or tag index does not exist."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered ILatticeTreeAdmin but not ILatticeTreeAdminOperations."
        }
      ],
      "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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartViewReconcileAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree Admin over the view source tree; 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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartViewReconcileAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#StartViewReconcile",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "start-wal-move",
      "in_process": "ILatticeTreeAdminOperations.StartWalMoveAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/StartWalMove",
      "transport_scope": "both",
      "request": "TreeAdminWalMoveExecuteRequest",
      "response": "LatticeOperationHandle",
      "operation_kind": "treeadmin.wal-move",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "not-found",
          "condition": "The named view or tag index does not exist."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        },
        {
          "error_id": "unimplemented",
          "condition": "Server registered ILatticeTreeAdmin but not ILatticeTreeAdminOperations."
        }
      ],
      "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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartWalMoveAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The optional operationId (TrackingOperationId on the wire) is the tracked operation idempotency key; reusing it returns the existing operation instead of starting new work.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdminOperations.cs#ILatticeTreeAdminOperations"
      },
      "concurrency": {
        "rule": "Authorized as whole-tree TreeLifecycle; 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/TreeAdmin/ILatticeTreeAdminOperations.cs#StartWalMoveAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#StartWalMove",
        "docs/lattice.api.treeadmin/operations.md"
      ]
    },
    {
      "id": "stream-bulk-load",
      "in_process": "ILatticeTreeAdmin.BulkLoadStreamAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/StreamBulkLoad",
      "transport_scope": "both",
      "request": "TreeAdminBulkLoadStreamRequest",
      "response": "TreeAdminBulkLoadStreamResponse",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed, or a frame names another tree or operation."
        },
        {
          "error_id": "bulk-load-order",
          "condition": "A chunk's keys are not strictly ascending, within the chunk or from the previous chunk's last key."
        },
        {
          "error_id": "tree-not-empty",
          "condition": "The first frame begins a session on a tree that holds a live key or tombstone."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "The client resumes on its own after a transport drop (Unavailable, Aborted or an I/O fault), resending every unacknowledged chunk with Resume set. Retry by hand only with the same operationId and FirstChunkIndex set to the next unacknowledged chunk.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#BulkLoadStreamAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Appends are idempotent per chunk index under the same operationId, so a resumed stream neither loses nor duplicates a chunk.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#BulkLoadStreamAsync"
      },
      "concurrency": {
        "rule": "Duplex stream over one bulk-load session: the first frame begins it unless Resume is set, each frame appends one chunk and is acknowledged, and the half-close commits. The client keeps at most MaxUnacknowledgedChunks chunks in flight.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#BulkLoadStreamAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#BulkLoadStreamAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#StreamBulkLoad"
      ]
    },
    {
      "id": "survey-orphaned-leaves",
      "in_process": "ILatticeTreeAdmin.SurveyOrphanedLeavesAsync",
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": "string treeId, string? resumeFrom",
      "response": "TreeOrphanedLeafReport",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "invalid-argument",
          "condition": "The tree id names a reserved system tree; the tree grain rejects it before any pass."
        },
        {
          "error_id": "permission-denied",
          "condition": "The caller lacks whole-tree Read authority."
        },
        {
          "error_id": "not-supported",
          "condition": "The implementation does not override the default survey member."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SurveyOrphanedLeavesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Read-only and bounded per call.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SurveyOrphanedLeavesAsync"
      },
      "concurrency": {
        "rule": "Drive batches with ResumeFrom using this same survey verb until IsComplete is true; survey counts do not authorize repair.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SurveyOrphanedLeavesAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SurveyOrphanedLeavesAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.OrphanRepair.cs#LatticeGrain.DriveOrphanedLeafPassAsync"
      ]
    },
    {
      "id": "trigger-shard-compaction",
      "in_process": "ILatticeTreeAdmin.TriggerShardCompactionAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/TriggerShardCompaction",
      "transport_scope": "both",
      "request": "TreeAdminShardRequest",
      "response": "TreeCompactionTriggerResult",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry by reissuing the same request.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#TriggerShardCompactionAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Compaction is online and idempotent.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#TriggerShardCompactionAsync"
      },
      "concurrency": {
        "rule": "Operator trigger bypasses background cooldown.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#TriggerShardCompactionAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#TriggerShardCompactionAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#TriggerShardCompaction"
      ]
    },
    {
      "id": "undo-tree-resize",
      "in_process": "ILatticeTreeAdmin.UndoTreeResizeAsync",
      "grpc_method": "/orleans.lattice.api.treeadmin/UndoTreeResize",
      "transport_scope": "both",
      "request": "TreeAdminTreeRequest",
      "response": "TreeResizeStatus",
      "errors": [
        {
          "error_id": "invalid-argument",
          "condition": "Request validation failed."
        },
        {
          "error_id": "permission-denied",
          "condition": "Authorization denied the caller."
        },
        {
          "error_id": "precondition-failed",
          "condition": "Facade precondition failed."
        },
        {
          "error_id": "tree-not-registered",
          "condition": "The logical tree registry row is missing during resize or undo carry; the coordinator refuses rather than recreating a purged or removed row."
        },
        {
          "error_id": "cancelled",
          "condition": "Call cancellation."
        },
        {
          "error_id": "internal",
          "condition": "Unhandled server failure."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe to retry: RequestUndoAsync records the undo intent once per resize operation id and acknowledges a repeat while that undo is pending; after the unwind is recorded a repeat throws InvalidOperationException whose message names the most recent resize as already undone, which is the benign terminal condition.",
        "source": "src/lattice/BPlusTree/Grains/TreeResizeGrain.cs#RequestUndoAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The undo intent is keyed by the resize operation id, so a repeat while it is pending starts no second unwind; once the unwind is recorded a repeat is refused because no resize remains to undo.",
        "source": "src/lattice/BPlusTree/Grains/TreeResizeGrain.cs#RequestUndoAsync"
      },
      "concurrency": {
        "rule": "RequestUndoAsync is interleaved with the resize phase loop and writes only the separate undo-intent slot under a semaphore, so the undo is admitted even while a resize phase is in flight; the phase loop runs the unwind at its next phase or snapshot-slice boundary, and the call waits only a bounded time for it. A returned status with UndoRequested true means the undo was accepted and is still unwinding; poll GetResizeStatusAsync instead of retrying.",
        "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#UndoTreeResizeAsync"
      },
      "sources": [
        "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#UndoTreeResizeAsync",
        "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcMethods.cs#UndoTreeResize"
      ]
    }
  ],
  "error_taxonomy": [
    {
      "id": "bulk-load-order",
      "type": "BulkLoadOrderException",
      "grpc_status": "InvalidArgument",
      "retryable": false,
      "meaning": "Bulk-load order contract breach.",
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/BulkLoadOrderException.cs#BulkLoadOrderException"
    },
    {
      "id": "cancelled",
      "type": "OperationCanceledException",
      "grpc_status": "Cancelled",
      "retryable": true,
      "meaning": "Request was cancelled.",
      "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.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.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#ToRpcException"
    },
    {
      "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.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#ToRpcException"
    },
    {
      "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.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#ToRpcException"
    },
    {
      "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.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#ToRpcException"
    },
    {
      "id": "internal",
      "type": "Exception",
      "grpc_status": "Internal",
      "retryable": false,
      "meaning": "Unhandled failure.",
      "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#InvokeAsync"
    },
    {
      "id": "invalid-argument",
      "type": "ArgumentException",
      "grpc_status": "InvalidArgument",
      "retryable": false,
      "meaning": "Request validation failed.",
      "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#InvokeAsync"
    },
    {
      "id": "not-found",
      "type": "KeyNotFoundException",
      "grpc_status": "NotFound",
      "retryable": false,
      "meaning": "Keyed resource not found.",
      "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#InvokeAsync"
    },
    {
      "id": "not-supported",
      "type": "NotSupportedException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "The implementation does not support an optional facade member.",
      "source": "src/lattice.api.abstractions/TreeAdmin/ILatticeTreeAdmin.cs#SurveyOrphanedLeavesAsync"
    },
    {
      "id": "permission-denied",
      "type": "LatticeAuthorizationDeniedException",
      "grpc_status": "PermissionDenied",
      "retryable": false,
      "meaning": "Authorization denied.",
      "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#InvokeAsync"
    },
    {
      "id": "precondition-failed",
      "type": "InvalidOperationException",
      "grpc_status": "FailedPrecondition",
      "retryable": false,
      "meaning": "Facade precondition failed.",
      "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#InvokeAsync"
    },
    {
      "id": "tenant-access-denied",
      "type": "LatticeTenantAccessDeniedException",
      "grpc_status": "PermissionDenied",
      "retryable": false,
      "meaning": "Active tenant was denied.",
      "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#InvokeAsync"
    },
    {
      "id": "tree-not-empty",
      "type": "TreeNotEmptyException",
      "grpc_status": "FailedPrecondition",
      "retryable": false,
      "meaning": "Bulk-load target is not empty.",
      "source": "src/lattice.api.abstractions/TreeAdmin/Model/TreeNotEmptyException.cs#TreeNotEmptyException"
    },
    {
      "id": "tree-not-registered",
      "type": "LatticeTreeNotRegisteredException",
      "grpc_status": "NotFound",
      "retryable": false,
      "meaning": "A registry verb that only changes an existing tree row targeted a tree id that was never registered or has been purged; the tree-admin gRPC binding maps the KeyNotFoundException-derived fault to NotFound.",
      "source": "src/lattice/LatticeTreeNotRegisteredException.cs#LatticeTreeNotRegisteredException"
    },
    {
      "id": "tree-ownership-denied",
      "type": "LatticeTreeOwnershipDeniedException",
      "grpc_status": "PermissionDenied",
      "retryable": false,
      "meaning": "The registered ITreeOwnershipGuard refused an alias assignment; the status message carries the guard's caller-safe reason.",
      "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#InvokeAsync"
    },
    {
      "id": "unimplemented",
      "grpc_status": "Unimplemented",
      "meaning": "Server registered the tree-admin facade but not the operations interface the call needs (ILatticeTreeAdminOperations or ILatticeStorageUsageOperations).",
      "source": "src/lattice.api.treeadmin.grpc/LatticeTreeAdminGrpcService.cs#StorageUsageOperations",
      "retryable": false
    }
  ]
}
