{
  "schema": "lattice.agents/api/v1",
  "surface": "lattice",
  "packages": [
    "Orleans.Lattice"
  ],
  "sources": [
    "docs/lattice/queues.md",
    "src/lattice/BPlusTree/Grains/LatticeAdminGrain.cs#LatticeAdminGrain",
    "src/lattice/BPlusTree/Grains/LatticeGrain.cs#LatticeGrain",
    "src/lattice/BPlusTree/Grains/LatticeQueueCore.cs#LatticeQueueCore",
    "src/lattice/BPlusTree/Grains/LatticeQueueGrain.cs#LatticeQueueGrain",
    "src/lattice/BPlusTree/ILattice.cs#ILattice",
    "src/lattice/BPlusTree/ILatticeQueue.cs#ILatticeQueue",
    "src/lattice/BPlusTree/LatticeQueueExtensions.cs#GetLatticeQueue",
    "src/lattice/ILatticeAdmin.cs#ILatticeAdmin",
    "src/lattice/ILatticeRetryPolicy.cs#ILatticeRetryPolicy",
    "src/lattice/IMutationObserver.cs#IMutationObserver",
    "src/lattice/ITreeOwnershipGuard.cs#ITreeOwnershipGuard",
    "src/lattice/LatticeCrossTreeAtomicWriteExtensions.cs#LatticeCrossTreeAtomicWriteExtensions",
    "src/lattice/LatticeQuotaExceededException.cs#LatticeQuotaExceededException",
    "src/lattice/LatticeSaturatedException.cs#LatticeSaturatedException",
    "src/lattice/LatticeServiceCollectionExtensions.cs#AddLattice"
  ],
  "in_process": {
    "interface": "ILattice per tree, ILatticeAdmin cluster-wide, and ILatticeQueue<T> per cluster-internal FIFO queue.",
    "registration": "Call ISiloBuilder.AddLattice with the Lattice grain storage provider; obtain ILattice with IGrainFactory.GetGrain<ILattice>(treeId), ILatticeAdmin with IGrainFactory.GetGrain<ILatticeAdmin>(LatticeConstants.AdminGrainKey), and ILatticeQueue<T> with IGrainFactory.GetLatticeQueue<T>(queueName, serializer).",
    "source": "src/lattice/LatticeServiceCollectionExtensions.cs#AddLattice"
  },
  "grpc": null,
  "availability": {
    "in_process": [
      {
        "registration": "AddLattice",
        "package": "Orleans.Lattice",
        "provides": [
          "ILattice",
          "ILatticeAdmin",
          "ILatticeQueue<T>"
        ],
        "source": "src/lattice/LatticeServiceCollectionExtensions.cs#LatticeServiceCollectionExtensions.AddLattice"
      }
    ],
    "requires": [],
    "grpc_server": [],
    "grpc_client": [],
    "absent": null
  },
  "types": {
    "AtomicWriteOutcome": {
      "kind": "enum",
      "values": [
        "Committed",
        "PreconditionFailed"
      ],
      "source": "src/lattice/BPlusTree/AtomicWriteOutcome.cs#AtomicWriteOutcome"
    },
    "BoundedExponentialRetryPolicyOptions": {
      "kind": "class",
      "fields": [
        {
          "name": "MaxAttempts",
          "type": "int",
          "required": true
        },
        {
          "name": "InitialDelay",
          "type": "TimeSpan",
          "required": true
        },
        {
          "name": "MaxDelay",
          "type": "TimeSpan",
          "required": true
        },
        {
          "name": "RetryableExceptionClassifier",
          "type": "Func<Exception, bool>?",
          "required": false
        }
      ],
      "source": "src/lattice/BoundedExponentialRetryPolicyOptions.cs#BoundedExponentialRetryPolicyOptions"
    },
    "ClusterStorageUsageReport": {
      "kind": "struct",
      "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": "Trees",
          "type": "ImmutableArray<TreeStorageUsageReport>",
          "required": true
        },
        {
          "name": "SampledAt",
          "type": "DateTimeOffset",
          "required": true
        },
        {
          "name": "Stale",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice/ClusterStorageUsageReport.cs#ClusterStorageUsageReport"
    },
    "CrossTreeAtomicWriteOutcome": {
      "kind": "enum",
      "values": [
        "Committed",
        "PreconditionFailed"
      ],
      "source": "src/lattice/CrossTreeAtomicWriteOutcome.cs#CrossTreeAtomicWriteOutcome"
    },
    "EntryHistoryPage": {
      "kind": "record",
      "fields": [
        {
          "name": "Revisions",
          "type": "IReadOnlyList<EntryRevision>",
          "required": true
        },
        {
          "name": "Continuation",
          "type": "string?",
          "required": false
        },
        {
          "name": "Truncated",
          "type": "bool",
          "required": true
        },
        {
          "name": "EarliestAvailable",
          "type": "HybridLogicalClock",
          "required": true
        },
        {
          "name": "Source",
          "type": "EntryHistorySource",
          "required": true
        }
      ],
      "source": "src/lattice/EntryHistoryPage.cs#EntryHistoryPage"
    },
    "GatedMultiReadResult": {
      "kind": "record",
      "fields": [
        {
          "name": "Values",
          "type": "Dictionary<string, byte[]>",
          "required": true
        },
        {
          "name": "PrunedByAccessGate",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice/BPlusTree/GatedMultiReadResult.cs#GatedMultiReadResult"
    },
    "HistoryRetentionMode": {
      "kind": "enum",
      "values": [
        "MetadataOnly",
        "FullValue",
        "Hybrid"
      ],
      "source": "src/lattice/Views/HistoryRetentionMode.cs#HistoryRetentionMode"
    },
    "HistoryRetentionSettings": {
      "kind": "struct",
      "fields": [
        {
          "name": "Mode",
          "type": "HistoryRetentionMode",
          "required": true
        },
        {
          "name": "Window",
          "type": "TimeSpan",
          "required": true
        }
      ],
      "source": "src/lattice/Views/HistoryRetentionSettings.cs#HistoryRetentionSettings"
    },
    "HybridLogicalClock": {
      "kind": "struct",
      "fields": [
        {
          "name": "WallClockTicks",
          "type": "long",
          "required": true
        },
        {
          "name": "Counter",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice/Primitives/HybridLogicalClock.cs#HybridLogicalClock"
    },
    "IMutationObserver": {
      "kind": "interface",
      "fields": [
        {
          "name": "OnMutationAsync",
          "type": "Task OnMutationAsync(LatticeMutation mutation, CancellationToken cancellationToken)",
          "required": true
        }
      ],
      "source": "src/lattice/IMutationObserver.cs#IMutationObserver"
    },
    "ITreeOwnershipGuard": {
      "kind": "interface",
      "fields": [
        {
          "name": "AuthorizeAliasAsync",
          "type": "ValueTask<TreeOwnershipDecision> AuthorizeAliasAsync(string logicalTreeId, string physicalTreeId, string? derivedFrom, CancellationToken cancellationToken = default)",
          "required": true
        }
      ],
      "source": "src/lattice/ITreeOwnershipGuard.cs#ITreeOwnershipGuard"
    },
    "LatticeBooleanOperator": {
      "kind": "enum",
      "values": [
        "And",
        "Or",
        "Not"
      ],
      "source": "src/lattice/Predicates/LatticeBooleanOperator.cs#LatticeBooleanOperator"
    },
    "LatticeComparisonOperator": {
      "kind": "enum",
      "values": [
        "Equal",
        "NotEqual",
        "LessThan",
        "LessThanOrEqual",
        "GreaterThan",
        "GreaterThanOrEqual"
      ],
      "source": "src/lattice/Predicates/LatticeComparisonOperator.cs#LatticeComparisonOperator"
    },
    "LatticeConstant": {
      "kind": "struct",
      "fields": [
        {
          "name": "Kind",
          "type": "LatticeConstantKind",
          "required": true
        },
        {
          "name": "BooleanValue",
          "type": "bool",
          "required": true
        },
        {
          "name": "StringValue",
          "type": "string?",
          "required": false
        },
        {
          "name": "Int64Value",
          "type": "long",
          "required": true
        },
        {
          "name": "DoubleValue",
          "type": "double",
          "required": true
        }
      ],
      "source": "src/lattice/Predicates/LatticeConstant.cs#LatticeConstant"
    },
    "LatticeCursorDeleteProgress": {
      "kind": "struct",
      "fields": [
        {
          "name": "DeletedThisStep",
          "type": "int",
          "required": true
        },
        {
          "name": "DeletedTotal",
          "type": "int",
          "required": true
        },
        {
          "name": "IsComplete",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice/BPlusTree/LatticeCursorDeleteProgress.cs#LatticeCursorDeleteProgress"
    },
    "LatticeCursorEntriesPage": {
      "kind": "record",
      "fields": [
        {
          "name": "Entries",
          "type": "IReadOnlyList<KeyValuePair<string, byte[]>>",
          "required": true
        },
        {
          "name": "HasMore",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice/BPlusTree/LatticeCursorEntriesPage.cs#LatticeCursorEntriesPage"
    },
    "LatticeCursorKeysPage": {
      "kind": "record",
      "fields": [
        {
          "name": "Keys",
          "type": "IReadOnlyList<string>",
          "required": true
        },
        {
          "name": "HasMore",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice/BPlusTree/LatticeCursorKeysPage.cs#LatticeCursorKeysPage"
    },
    "LatticeIdempotencyKey": {
      "kind": "struct",
      "fields": [
        {
          "name": "Timestamp",
          "type": "HybridLogicalClock",
          "required": true
        }
      ],
      "source": "src/lattice/LatticeIdempotencyKey.cs#LatticeIdempotencyKey"
    },
    "LatticeMergeMode": {
      "kind": "enum",
      "values": [
        "LwwRegister",
        "OrSet",
        "PnCounter",
        "VersionVector",
        "MvRegister",
        "OrMap",
        "Sequence",
        "OrFlag",
        "RwFlag",
        "GCounter",
        "GSet",
        "RwSet",
        "MaxRegister",
        "MinRegister"
      ],
      "source": "src/lattice/BPlusTree/Grains/LatticeMergeMode.cs#LatticeMergeMode"
    },
    "LatticeMutation": {
      "kind": "struct",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Kind",
          "type": "MutationKind",
          "required": true
        },
        {
          "name": "Key",
          "type": "string",
          "required": true
        },
        {
          "name": "EndExclusiveKey",
          "type": "string?",
          "required": false
        },
        {
          "name": "Value",
          "type": "byte[]?",
          "required": false
        },
        {
          "name": "Timestamp",
          "type": "HybridLogicalClock",
          "required": true
        },
        {
          "name": "IsTombstone",
          "type": "bool",
          "required": true
        },
        {
          "name": "ExpiresAtTicks",
          "type": "long",
          "required": true
        },
        {
          "name": "OriginClusterId",
          "type": "string?",
          "required": false
        },
        {
          "name": "VectorClock",
          "type": "VersionVector?",
          "required": false
        },
        {
          "name": "TransactionId",
          "type": "Guid",
          "required": true
        },
        {
          "name": "Category",
          "type": "MutationCategory",
          "required": true
        },
        {
          "name": "Delta",
          "type": "byte[]?",
          "required": false
        },
        {
          "name": "AtomicBatchSize",
          "type": "int",
          "required": true
        },
        {
          "name": "AtomicBatchIndex",
          "type": "int",
          "required": true
        },
        {
          "name": "IsPrepared",
          "type": "bool",
          "required": true
        },
        {
          "name": "ShardIndex",
          "type": "int",
          "required": true
        },
        {
          "name": "IsBackstop",
          "type": "bool",
          "required": true
        },
        {
          "name": "AtomicShardCount",
          "type": "int",
          "required": true
        },
        {
          "name": "IsMerge",
          "type": "bool",
          "required": true
        },
        {
          "name": "MatchedKeys",
          "type": "IReadOnlyList<string>?",
          "required": false
        },
        {
          "name": "CrossTreeOperationId",
          "type": "string?",
          "required": false
        },
        {
          "name": "CrossTreeParticipants",
          "type": "IReadOnlyList<string>?",
          "required": false
        },
        {
          "name": "Mode",
          "type": "LatticeMergeMode",
          "required": true
        }
      ],
      "source": "src/lattice/LatticeMutation.cs#LatticeMutation"
    },
    "LatticePredicateNode": {
      "kind": "struct",
      "fields": [
        {
          "name": "Kind",
          "type": "LatticePredicateNodeKind",
          "required": true
        },
        {
          "name": "MemberPath",
          "type": "string?",
          "required": false
        },
        {
          "name": "Constant",
          "type": "LatticeConstant",
          "required": true
        },
        {
          "name": "ComparisonOperator",
          "type": "LatticeComparisonOperator",
          "required": true
        },
        {
          "name": "BooleanOperator",
          "type": "LatticeBooleanOperator",
          "required": true
        },
        {
          "name": "StringMethod",
          "type": "LatticeStringMethod",
          "required": true
        },
        {
          "name": "Children",
          "type": "LatticePredicateNode[]?",
          "required": false
        },
        {
          "name": "ValueKind",
          "type": "LatticeValueKind",
          "required": true
        }
      ],
      "source": "src/lattice/Predicates/LatticePredicateNode.cs#LatticePredicateNode"
    },
    "LatticePredicateNodeKind": {
      "kind": "enum",
      "values": [
        "Member",
        "Constant",
        "Compare",
        "Boolean",
        "StringMethod",
        "TypeOf",
        "Length",
        "Every",
        "Self"
      ],
      "source": "src/lattice/Predicates/LatticePredicateNodeKind.cs#LatticePredicateNodeKind"
    },
    "LatticeQueueEntry<T>": {
      "kind": "record struct",
      "fields": [
        {
          "name": "EntryId",
          "type": "long",
          "required": true
        },
        {
          "name": "Value",
          "type": "T",
          "required": true
        }
      ],
      "source": "src/lattice/BPlusTree/LatticeQueueEntry.cs#LatticeQueueEntry"
    },
    "LatticeQuotaExceededException": {
      "kind": "exception",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Dimension",
          "type": "string",
          "required": true
        },
        {
          "name": "Current",
          "type": "long",
          "required": true
        },
        {
          "name": "Limit",
          "type": "long",
          "required": true
        },
        {
          "name": "TenantId",
          "type": "string",
          "required": false
        }
      ],
      "source": "src/lattice/LatticeQuotaExceededException.cs#LatticeQuotaExceededException"
    },
    "LatticeRangeReadGateCoverage": {
      "kind": "enum",
      "values": [
        "Unrestricted",
        "Filtered",
        "Denied"
      ],
      "source": "src/lattice/BPlusTree/LatticeRangeReadGateCoverage.cs#LatticeRangeReadGateCoverage"
    },
    "LatticeSaturatedException": {
      "kind": "exception",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "SaturationSource",
          "type": "LatticeSaturationSource",
          "required": true
        }
      ],
      "source": "src/lattice/LatticeSaturatedException.cs#LatticeSaturatedException"
    },
    "LatticeSaturationSource": {
      "kind": "enum",
      "values": [
        "Unspecified",
        "WalAdmission",
        "AtomicWriteSaga",
        "SnapshotCursorOpen",
        "ReplayPermitAdmission",
        "SetManyFanOut",
        "TxRegistryCapacity",
        "SetManyEnvelope"
      ],
      "source": "src/lattice/LatticeSaturationSource.cs#LatticeSaturationSource"
    },
    "LatticeStringMethod": {
      "kind": "enum",
      "values": [
        "StartsWith",
        "EndsWith",
        "Contains",
        "Equals"
      ],
      "source": "src/lattice/Predicates/LatticeStringMethod.cs#LatticeStringMethod"
    },
    "LatticeTreeBatch": {
      "kind": "record struct",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Entries",
          "type": "List<KeyValuePair<string, byte[]>>",
          "required": true
        },
        {
          "name": "Predicate",
          "type": "LatticePredicateNode?",
          "required": false
        },
        {
          "name": "EntryDeltas",
          "type": "List<byte[]?>?",
          "required": false
        },
        {
          "name": "EntryDeletes",
          "type": "List<bool>?",
          "required": false
        }
      ],
      "source": "src/lattice/LatticeTreeBatch.cs#LatticeTreeBatch"
    },
    "LatticeTreeOwnershipDeniedException": {
      "kind": "exception",
      "fields": [
        {
          "name": "Reason",
          "type": "string",
          "required": true
        }
      ],
      "source": "src/lattice/LatticeTreeOwnershipDeniedException.cs#LatticeTreeOwnershipDeniedException"
    },
    "LatticeValueKind": {
      "kind": "enum",
      "values": [
        "Present",
        "Null",
        "Boolean",
        "Number",
        "Integer",
        "String",
        "Object",
        "Array"
      ],
      "source": "src/lattice/Predicates/LatticeValueKind.cs#LatticeValueKind"
    },
    "LeafProjectionDigest": {
      "kind": "struct",
      "fields": [
        {
          "name": "Hash",
          "type": "byte[]",
          "required": true
        },
        {
          "name": "EntryCount",
          "type": "long",
          "required": true
        },
        {
          "name": "CheckpointOffset",
          "type": "long",
          "required": true
        },
        {
          "name": "Version",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice/BPlusTree/LeafProjectionDigest.cs#LeafProjectionDigest"
    },
    "MutationKind": {
      "kind": "enum",
      "values": [
        "Set",
        "Delete",
        "DeleteRange",
        "TxCommit",
        "TxAbort",
        "Tombstone"
      ],
      "source": "src/lattice/MutationKind.cs#MutationKind"
    },
    "OrphanedLeafRepairReport": {
      "kind": "struct",
      "fields": [
        {
          "name": "DryRun",
          "type": "bool",
          "required": true
        },
        {
          "name": "LeavesWalked",
          "type": "int",
          "required": true
        },
        {
          "name": "ResumeFrom",
          "type": "string?",
          "required": false
        },
        {
          "name": "Findings",
          "type": "IReadOnlyList<OrphanedLeafFinding>",
          "required": true
        },
        {
          "name": "Gaps",
          "type": "IReadOnlyList<OrphanedLeafAuditGap>",
          "required": true
        },
        {
          "name": "Survey",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice/BPlusTree/OrphanedLeafRepairReport.cs#OrphanedLeafRepairReport"
    },
    "RoutingInfo": {
      "kind": "record",
      "fields": [
        {
          "name": "PhysicalTreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "ShardMap",
          "type": "ShardMap",
          "required": true
        }
      ],
      "source": "src/lattice/BPlusTree/RoutingInfo.cs#RoutingInfo"
    },
    "SnapshotMode": {
      "kind": "enum",
      "values": [
        "Offline",
        "Online"
      ],
      "source": "src/lattice/BPlusTree/SnapshotMode.cs#SnapshotMode"
    },
    "SplitActivityReport": {
      "kind": "struct",
      "fields": [
        {
          "name": "InFlight",
          "type": "int",
          "required": true
        },
        {
          "name": "ReportingTrees",
          "type": "int",
          "required": true
        },
        {
          "name": "ObservedAt",
          "type": "DateTimeOffset",
          "required": true
        }
      ],
      "source": "src/lattice/SplitActivityReport.cs#SplitActivityReport"
    },
    "TreeDiagnosticReport": {
      "kind": "struct",
      "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": "Shards",
          "type": "ImmutableArray<ShardDiagnosticReport>",
          "required": true
        },
        {
          "name": "RecentSplits",
          "type": "ImmutableArray<RecentSplit>",
          "required": true
        },
        {
          "name": "SampledAt",
          "type": "DateTimeOffset",
          "required": true
        },
        {
          "name": "Deep",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice/BPlusTree/TreeDiagnosticReport.cs#TreeDiagnosticReport"
    },
    "TreeOwnershipDecision": {
      "kind": "struct",
      "fields": [
        {
          "name": "Allowed",
          "type": "bool",
          "required": true
        },
        {
          "name": "Reason",
          "type": "string?",
          "required": false
        }
      ],
      "source": "src/lattice/TreeOwnershipDecision.cs#TreeOwnershipDecision"
    },
    "TreeStorageUsageReport": {
      "kind": "struct",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "WalRetainedBytes",
          "type": "long",
          "required": true
        },
        {
          "name": "WalPhysicalBytes",
          "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": "SampledAt",
          "type": "DateTimeOffset",
          "required": true
        },
        {
          "name": "LiveKeys",
          "type": "long",
          "required": true
        },
        {
          "name": "WalMaxRetainedBytes",
          "type": "long?",
          "required": false
        },
        {
          "name": "Stale",
          "type": "bool",
          "required": true
        },
        {
          "name": "OldestMeasuredAtUtc",
          "type": "DateTimeOffset?",
          "required": false
        }
      ],
      "source": "src/lattice/BPlusTree/TreeStorageUsageReport.cs#TreeStorageUsageReport"
    },
    "VersionedValue": {
      "kind": "record",
      "fields": [
        {
          "name": "Value",
          "type": "byte[]?",
          "required": false
        },
        {
          "name": "Version",
          "type": "HybridLogicalClock",
          "required": true
        },
        {
          "name": "ExpiresAtTicks",
          "type": "long",
          "required": true
        },
        {
          "name": "MergeMode",
          "type": "LatticeMergeMode?",
          "required": false
        }
      ],
      "source": "src/lattice/BPlusTree/VersionedValue.cs#VersionedValue"
    },
    "WalMoveBatchPlan": {
      "kind": "struct",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "PlacementVersion",
          "type": "long",
          "required": true
        },
        {
          "name": "Moves",
          "type": "ImmutableArray<WalMovePlan>",
          "required": true
        },
        {
          "name": "AllTargetsResolvableOnThisSilo",
          "type": "bool",
          "required": true
        }
      ],
      "source": "src/lattice/WalMoveBatchPlan.cs#WalMoveBatchPlan"
    },
    "WalMoveBatchReceipt": {
      "kind": "struct",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "PreviousPlacementVersion",
          "type": "long",
          "required": true
        },
        {
          "name": "NewPlacementVersion",
          "type": "long",
          "required": true
        },
        {
          "name": "Moves",
          "type": "ImmutableArray<WalMoveReceipt>",
          "required": true
        },
        {
          "name": "Outcome",
          "type": "WalMoveOutcome",
          "required": true
        }
      ],
      "source": "src/lattice/WalMoveBatchReceipt.cs#WalMoveBatchReceipt"
    },
    "WalMoveOptions": {
      "kind": "struct",
      "fields": [
        {
          "name": "QuiesceLease",
          "type": "TimeSpan",
          "required": true
        },
        {
          "name": "CopyPageSize",
          "type": "int",
          "required": true
        },
        {
          "name": "VerifyAfterCopy",
          "type": "bool",
          "required": true
        },
        {
          "name": "MaxConcurrentPartitionMoves",
          "type": "int",
          "required": true
        }
      ],
      "source": "src/lattice/WalMoveOptions.cs#WalMoveOptions"
    },
    "WalMoveOutcome": {
      "kind": "enum",
      "values": [
        "Moved",
        "AlreadyAtTarget",
        "SourceReclaimed",
        "NoOp"
      ],
      "source": "src/lattice/WalMoveOutcome.cs#WalMoveOutcome"
    },
    "WalMovePlan": {
      "kind": "struct",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Partition",
          "type": "int",
          "required": true
        },
        {
          "name": "FromProviderKey",
          "type": "string",
          "required": true
        },
        {
          "name": "ToProviderKey",
          "type": "string",
          "required": true
        },
        {
          "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/WalMovePlan.cs#WalMovePlan"
    },
    "WalMoveReceipt": {
      "kind": "struct",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Partition",
          "type": "int",
          "required": true
        },
        {
          "name": "FromProviderKey",
          "type": "string",
          "required": true
        },
        {
          "name": "ToProviderKey",
          "type": "string",
          "required": true
        },
        {
          "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": "WalMoveOutcome",
          "required": true
        }
      ],
      "source": "src/lattice/WalMoveReceipt.cs#WalMoveReceipt"
    },
    "WalPlacement": {
      "kind": "struct",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Version",
          "type": "long",
          "required": true
        },
        {
          "name": "DefaultProviderKey",
          "type": "string",
          "required": true
        },
        {
          "name": "Partitions",
          "type": "ImmutableArray<WalPartitionPlacement>",
          "required": true
        }
      ],
      "source": "src/lattice/WalPlacement.cs#WalPlacement"
    },
    "WalPlacementAudit": {
      "kind": "struct",
      "fields": [
        {
          "name": "TreeId",
          "type": "string",
          "required": true
        },
        {
          "name": "Version",
          "type": "long",
          "required": true
        },
        {
          "name": "PartitionCount",
          "type": "int",
          "required": true
        },
        {
          "name": "Partitions",
          "type": "ImmutableArray<WalPartitionPlacement>",
          "required": true
        },
        {
          "name": "AllResolvableOnThisSilo",
          "type": "bool",
          "required": true
        },
        {
          "name": "KnownProviderKeys",
          "type": "ImmutableArray<string>",
          "required": true
        }
      ],
      "source": "src/lattice/WalPlacementAudit.cs#WalPlacementAudit"
    }
  },
  "operations": [
    {
      "id": "apply-crdt-delta",
      "in_process": {
        "interface": "ILattice",
        "method": "ApplyCrdtDeltaAsync",
        "signature": "Task<HybridLogicalClock> ApplyCrdtDeltaAsync(string key, LatticeMergeMode mode, byte[] deltaBytes, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "key",
            "type": "string",
            "required": true
          },
          {
            "name": "mode",
            "type": "LatticeMergeMode",
            "required": true
          },
          {
            "name": "deltaBytes",
            "type": "byte[]",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "HybridLogicalClock"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored write reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; replication and prepared saga apply paths bypass this guard."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe when the caller enters LatticeIdempotencyContext and the host configures ILatticeRetryPolicy; otherwise the policy is bypassed.",
        "source": "src/lattice/ILatticeRetryPolicy.cs#ILatticeRetryPolicy"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Retries under the same LatticeIdempotencyContext stamp the same HybridLogicalClock so dedup and merge collapse repeated mutations.",
        "source": "src/lattice/LatticeIdempotencyContext.cs#LatticeIdempotencyContext"
      },
      "concurrency": {
        "rule": "CRDT delta merges are convergent under interleaving and omit the optimistic CAS guard.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ApplyCrdtDeltaAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#ApplyCrdtDeltaAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#ApplyCrdtDeltaAsync"
      ]
    },
    {
      "id": "apply-crdt-delta-many",
      "in_process": {
        "interface": "ILattice",
        "method": "ApplyCrdtDeltaManyAsync",
        "signature": "Task ApplyCrdtDeltaManyAsync(List<KeyValuePair<string, byte[]>> deltas, LatticeMergeMode mode, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "deltas",
            "type": "List<KeyValuePair<string, byte[]>>",
            "required": true
          },
          {
            "name": "mode",
            "type": "LatticeMergeMode",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "deltas is null."
        },
        {
          "error_id": "argument-exception",
          "condition": "mode is LatticeMergeMode.LwwRegister; LWW batches use SetManyAsync."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored write reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; replication and prepared saga apply paths bypass this guard."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry safety follows the operation-specific idempotency rule.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ApplyCrdtDeltaManyAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The XML states caller retry converges because entries fold CRDT deltas rather than overwrite values.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ApplyCrdtDeltaManyAsync"
      },
      "concurrency": {
        "rule": "Not atomic; shard fan-out may leave a half-applied batch on partial failure.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ApplyCrdtDeltaManyAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#ApplyCrdtDeltaManyAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#ApplyCrdtDeltaManyAsync"
      ]
    },
    {
      "id": "apply-crdt-delta-with-ttl",
      "in_process": {
        "interface": "ILattice",
        "method": "ApplyCrdtDeltaAsync",
        "signature": "Task<HybridLogicalClock> ApplyCrdtDeltaAsync(string key, LatticeMergeMode mode, byte[] deltaBytes, TimeSpan ttl, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "key",
            "type": "string",
            "required": true
          },
          {
            "name": "mode",
            "type": "LatticeMergeMode",
            "required": true
          },
          {
            "name": "deltaBytes",
            "type": "byte[]",
            "required": true
          },
          {
            "name": "ttl",
            "type": "TimeSpan",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "HybridLogicalClock"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "argument-out-of-range",
          "condition": "ttl is less than or equal to zero, or exceeds DateTimeOffset.MaxValue when converted to an absolute expiry."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored write reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; replication and prepared saga apply paths bypass this guard."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe when the caller enters LatticeIdempotencyContext and the host configures ILatticeRetryPolicy; otherwise the policy is bypassed.",
        "source": "src/lattice/ILatticeRetryPolicy.cs#ILatticeRetryPolicy"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Retries under the same LatticeIdempotencyContext stamp the same HybridLogicalClock so dedup and merge collapse repeated mutations.",
        "source": "src/lattice/LatticeIdempotencyContext.cs#LatticeIdempotencyContext"
      },
      "concurrency": {
        "rule": "CRDT delta merges are convergent under interleaving and omit the optimistic CAS guard.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ApplyCrdtDeltaAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#ApplyCrdtDeltaAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#ApplyCrdtDeltaAsync"
      ]
    },
    {
      "id": "audit-wal-placement",
      "in_process": {
        "interface": "ILatticeAdmin",
        "method": "AuditWalPlacementAsync",
        "signature": "Task<WalPlacementAudit> AuditWalPlacementAsync(string treeId, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "treeId",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "WalPlacementAudit"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Safe to retry because the operation performs registry, topology, and catalog reads only and returns a point-in-time audit snapshot.",
        "source": "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#AuditWalPlacementAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/ILatticeAdmin.cs#AuditWalPlacementAsync"
      },
      "concurrency": {
        "rule": "AlwaysInterleave read-only fan-out methods do not block sibling administrative calls.",
        "source": "src/lattice/ILatticeAdmin.cs#AuditWalPlacementAsync"
      },
      "sources": [
        "src/lattice/ILatticeAdmin.cs#AuditWalPlacementAsync",
        "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#AuditWalPlacementAsync"
      ]
    },
    {
      "id": "bulk-append-chunk-with-operation-id",
      "in_process": {
        "interface": "ILattice",
        "method": "BulkAppendChunkAsync",
        "signature": "Task<int> BulkAppendChunkAsync(string operationId, IReadOnlyList<KeyValuePair<string, byte[]>> sortedEntries, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "operationId",
            "type": "string",
            "required": true
          },
          {
            "name": "sortedEntries",
            "type": "IReadOnlyList<KeyValuePair<string, byte[]>>",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "int"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry safety follows the operation-specific idempotency rule.",
        "source": "src/lattice/BPlusTree/ILattice.cs#BulkAppendChunkAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Stable operationId makes re-driven chunks no-ops while each shard remembers its most recent chunk id.",
        "source": "src/lattice/BPlusTree/ILattice.cs#BulkAppendChunkAsync"
      },
      "concurrency": {
        "rule": "The tree router fans the chunk out by physical shard, and each non-reentrant shard root serializes the append against that shard's last completed bulk operation id and pending graft state.",
        "source": "src/lattice/BPlusTree/Grains/ShardRootGrain.BulkLoad.cs#BulkAppendAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#BulkAppendChunkAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#BulkAppendChunkAsync"
      ]
    },
    {
      "id": "bulk-load",
      "in_process": {
        "interface": "ILattice",
        "method": "BulkLoadAsync",
        "signature": "Task BulkLoadAsync(IReadOnlyList<KeyValuePair<string, byte[]>> entries, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "entries",
            "type": "IReadOnlyList<KeyValuePair<string, byte[]>>",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "A retry after a completed import is safe only if the caller treats InvalidOperationException from an already-populated shard as the benign duplicate outcome; the public call creates a fresh operation id, so it is not a resumable client retry protocol.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#BulkLoadAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "Each public call creates a fresh Guid operation id, and after any shard has data a different operation id is rejected instead of being collapsed as the same request.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#BulkLoadAsync"
      },
      "concurrency": {
        "rule": "The tree router fans out to every physical shard, and each non-reentrant shard root serializes the bulk load on that shard before checking its last completed bulk operation id and root node.",
        "source": "src/lattice/BPlusTree/Grains/ShardRootGrain.BulkLoad.cs#BulkLoadAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#BulkLoadAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#BulkLoadAsync"
      ]
    },
    {
      "id": "close-cursor",
      "in_process": {
        "interface": "ILattice",
        "method": "CloseCursorAsync",
        "signature": "Task CloseCursorAsync(string cursorId, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cursorId",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry safety follows the operation-specific idempotency rule.",
        "source": "src/lattice/BPlusTree/ILattice.cs#CloseCursorAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Closing an unknown or already-closed cursor is documented as a no-op.",
        "source": "src/lattice/BPlusTree/ILattice.cs#CloseCursorAsync"
      },
      "concurrency": {
        "rule": "CloseCursorAsync routes to the single non-reentrant cursor activation for the tree and cursor id, which serializes cleanup and no-ops when the cursor is not started or already closed.",
        "source": "src/lattice/BPlusTree/Grains/LatticeCursorGrain.cs#CloseAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#CloseCursorAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#CloseCursorAsync"
      ]
    },
    {
      "id": "compact-shard",
      "in_process": {
        "interface": "ILattice",
        "method": "CompactShardAsync",
        "signature": "Task<bool> CompactShardAsync(int shardIndex, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "shardIndex",
            "type": "int",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "bool"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe to retry while the original compaction is still in flight because the coordinator returns false for an active timer or InProgress state; after the pass completes, the same request may start a new operator-triggered pass.",
        "source": "src/lattice/BPlusTree/Grains/TombstoneCompactionGrain.cs#TryBeginRequestedCompactionAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Duplicate requests collapse to false only while the coordinator has an active timer or InProgress state; once complete, the same request can begin another compaction pass.",
        "source": "src/lattice/BPlusTree/Grains/TombstoneCompactionGrain.cs#TryBeginRequestedCompactionAsync"
      },
      "concurrency": {
        "rule": "A single non-reentrant compaction coordinator per tree serializes compaction requests and admits only one pass at a time through its timer and persisted in-progress guard.",
        "source": "src/lattice/BPlusTree/Grains/TombstoneCompactionGrain.cs#TryBeginRequestedCompactionAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#CompactShardAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.ProjectionAdmin.cs#CompactShardAsync"
      ]
    },
    {
      "id": "count",
      "in_process": {
        "interface": "ILattice",
        "method": "CountAsync",
        "signature": "Task<int> CountAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "int"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#CountAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#CountAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#CountAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#CountAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#CountAsync"
      ]
    },
    {
      "id": "count-per-shard",
      "in_process": {
        "interface": "ILattice",
        "method": "CountPerShardAsync",
        "signature": "Task<IReadOnlyList<int>> CountPerShardAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "IReadOnlyList<int>",
        "meaning": "One live-key count per physical shard in ascending physical shard-index order (ShardMap.GetPhysicalShardIndices); a list position equals a physical shard index only while those indices run contiguously from 0, which a shard consolidation can break, so address shards through GetRoutingAsync."
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#CountPerShardAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#CountPerShardAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#CountPerShardAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#CountPerShardAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#CountPerShardAsync"
      ]
    },
    {
      "id": "count-range",
      "in_process": {
        "interface": "ILattice",
        "method": "CountAsync",
        "signature": "Task<int> CountAsync(string? startInclusive, string? endExclusive, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "int"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#CountAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#CountAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#CountAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#CountAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#CountAsync"
      ]
    },
    {
      "id": "cross-tree-begin-atomic-write",
      "in_process": {
        "interface": "LatticeCrossTreeAtomicWriteExtensions",
        "method": "BeginAtomicWrite",
        "signature": "LatticeAtomicWriteBuilder BeginAtomicWrite(this IGrainFactory factory, string operationId)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "factory",
            "type": "IGrainFactory",
            "required": true
          },
          {
            "name": "operationId",
            "type": "string",
            "required": true
          }
        ]
      },
      "response": {
        "type": "LatticeAtomicWriteBuilder"
      },
      "errors": [
        {
          "error_id": "argument-null",
          "condition": "factory is null."
        },
        {
          "error_id": "argument-exception",
          "condition": "operationId is null, empty, whitespace, or contains '/'."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Opening the builder has no side effects and may be repeated; the retry semantics that matter belong to CommitAsync, which delegates to SetManyAtomicAsync under the same operationId.",
        "source": "src/lattice/LatticeCrossTreeAtomicWriteExtensions.cs#BeginAtomicWrite"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Opening the builder writes nothing. CommitAsync submits the accumulated per-tree slices through SetManyAtomicAsync, so a re-submission under the same operationId re-attaches to the in-flight or completed saga.",
        "source": "src/lattice/LatticeAtomicWriteBuilder.cs#CommitAsync"
      },
      "concurrency": {
        "rule": "The builder is a local accumulator that is not thread-safe and must be used from one logical flow; CommitAsync runs the same coordinated cross-tree saga as SetManyAtomicAsync, so every participating tree flips visibility at one decision.",
        "source": "src/lattice/LatticeAtomicWriteBuilder.cs#LatticeAtomicWriteBuilder"
      },
      "sources": [
        "src/lattice/LatticeCrossTreeAtomicWriteExtensions.cs#BeginAtomicWrite",
        "src/lattice/LatticeAtomicWriteBuilder.cs#LatticeAtomicWriteBuilder",
        "docs/lattice/atomic-writes.md"
      ]
    },
    {
      "id": "cross-tree-set-many-atomic",
      "in_process": {
        "interface": "LatticeCrossTreeAtomicWriteExtensions",
        "method": "SetManyAtomicAsync",
        "signature": "Task<CrossTreeAtomicWriteOutcome> SetManyAtomicAsync(this IGrainFactory factory, IReadOnlyList<LatticeTreeBatch> batches, string operationId, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "factory",
            "type": "IGrainFactory",
            "required": true
          },
          {
            "name": "batches",
            "type": "IReadOnlyList<LatticeTreeBatch>",
            "required": true
          },
          {
            "name": "operationId",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "CrossTreeAtomicWriteOutcome"
      },
      "errors": [
        {
          "error_id": "argument-null",
          "condition": "factory or batches is null."
        },
        {
          "error_id": "argument-exception",
          "condition": "operationId is null, empty, whitespace, or contains '/'; a tree id is null, empty, or repeated; a tree's slice repeats a key (a Set and a Delete of one key count as a repeat), or carries a null key or a null upsert value; or an entry exceeds its tree's MaxKeyLength or MaxValueSizeBytes. A rejected batch stages no write and persists no saga state."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A tree whose slice carries an upsert has reached its MaxLiveKeys or MaxEstimatedBytes cap; the refused batch stages no write and persists no saga state, and a delete-only slice is never refused."
        },
        {
          "error_id": "invalid-operation",
          "condition": "A write fails after the saga compensates, or the operationId is re-submitted with a different tree-set or key-set."
        },
        {
          "error_id": "state-write-failed",
          "condition": "A saga state-write conflict persists after the bounded re-attach attempts."
        },
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before dispatch."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Re-submitting the same batch under the same operationId re-attaches to the in-flight or completed saga and returns its memoized outcome.",
        "source": "src/lattice/LatticeCrossTreeAtomicWriteExtensions.cs#SetManyAtomicAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The required operationId binds the tree-set and key-set; a matching re-submission returns the memoized outcome and the durable decision is never applied twice.",
        "source": "src/lattice/LatticeCrossTreeAtomicWriteExtensions.cs#SetManyAtomicAsync"
      },
      "concurrency": {
        "rule": "Each participating tree runs its single-tree saga in prepare-and-pause mode and one coordinator decision flips visibility on every tree at once.",
        "source": "src/lattice/LatticeCrossTreeAtomicWriteExtensions.cs#LatticeCrossTreeAtomicWriteExtensions"
      },
      "sources": [
        "src/lattice/LatticeCrossTreeAtomicWriteExtensions.cs#SetManyAtomicAsync",
        "src/lattice/LatticeTreeBatch.cs#LatticeTreeBatch",
        "src/lattice/CrossTreeAtomicWriteOutcome.cs#CrossTreeAtomicWriteOutcome",
        "docs/lattice/atomic-writes.md"
      ]
    },
    {
      "id": "delete",
      "in_process": {
        "interface": "ILattice",
        "method": "DeleteAsync",
        "signature": "Task<bool> DeleteAsync(string key, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "key",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "bool"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe when the caller enters LatticeIdempotencyContext and the host configures ILatticeRetryPolicy; otherwise the policy is bypassed.",
        "source": "src/lattice/ILatticeRetryPolicy.cs#ILatticeRetryPolicy"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Retries under the same LatticeIdempotencyContext stamp the same HybridLogicalClock so dedup and merge collapse repeated mutations.",
        "source": "src/lattice/LatticeIdempotencyContext.cs#LatticeIdempotencyContext"
      },
      "concurrency": {
        "rule": "The owning leaf accepts interleaved DeleteAsync calls, stamps each tombstone with a HybridLogicalClock, and applies it through LWW storage so concurrent writes resolve by timestamp.",
        "source": "src/lattice/BPlusTree/Grains/BPlusLeafGrain.cs#DeleteCoreAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#DeleteAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#DeleteAsync"
      ]
    },
    {
      "id": "delete-range-range",
      "in_process": {
        "interface": "ILattice",
        "method": "DeleteRangeAsync",
        "signature": "Task<int> DeleteRangeAsync(string startInclusive, string endExclusive, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "startInclusive",
            "type": "string",
            "required": true
          },
          {
            "name": "endExclusive",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "int"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe when the caller enters LatticeIdempotencyContext and the host configures ILatticeRetryPolicy; otherwise the policy is bypassed.",
        "source": "src/lattice/ILatticeRetryPolicy.cs#ILatticeRetryPolicy"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Retries under the same LatticeIdempotencyContext stamp the same HybridLogicalClock so dedup and merge collapse repeated mutations.",
        "source": "src/lattice/LatticeIdempotencyContext.cs#LatticeIdempotencyContext"
      },
      "concurrency": {
        "rule": "Range delete fans out to every physical shard, pins one HLC for the whole request with LatticeHlcOverrideContext, and each leaf applies LWW tombstones for the matched keys.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#DeleteRangeAsyncCore"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#DeleteRangeAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#DeleteRangeAsync"
      ]
    },
    {
      "id": "delete-range-step",
      "in_process": {
        "interface": "ILattice",
        "method": "DeleteRangeStepAsync",
        "signature": "Task<LatticeCursorDeleteProgress> DeleteRangeStepAsync(string cursorId, int maxToDelete, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cursorId",
            "type": "string",
            "required": true
          },
          {
            "name": "maxToDelete",
            "type": "int",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "LatticeCursorDeleteProgress"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry safety follows the operation-specific idempotency rule.",
        "source": "src/lattice/BPlusTree/ILattice.cs#DeleteRangeStepAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "After completion, subsequent cursor steps are documented as idempotent no-ops.",
        "source": "src/lattice/BPlusTree/ILattice.cs#DeleteRangeStepAsync"
      },
      "concurrency": {
        "rule": "A persisted delete-range cursor advances by bounded steps and can resume across failover.",
        "source": "src/lattice/BPlusTree/ILattice.cs#DeleteRangeStepAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#DeleteRangeStepAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#DeleteRangeStepAsync"
      ]
    },
    {
      "id": "delete-range-where-predicate",
      "in_process": {
        "interface": "ILattice",
        "method": "DeleteRangeWherePredicateAsync",
        "signature": "Task<int> DeleteRangeWherePredicateAsync(LatticePredicateNode predicate, string startInclusive, string endExclusive, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "predicate",
            "type": "LatticePredicateNode",
            "required": true
          },
          {
            "name": "startInclusive",
            "type": "string",
            "required": true
          },
          {
            "name": "endExclusive",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "int"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe when the caller enters LatticeIdempotencyContext and the host configures ILatticeRetryPolicy; otherwise the policy is bypassed.",
        "source": "src/lattice/ILatticeRetryPolicy.cs#ILatticeRetryPolicy"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Retries under the same LatticeIdempotencyContext stamp the same HybridLogicalClock so dedup and merge collapse repeated mutations.",
        "source": "src/lattice/LatticeIdempotencyContext.cs#LatticeIdempotencyContext"
      },
      "concurrency": {
        "rule": "Predicate range delete evaluates the predicate once on each leaf, records the matched key set, and applies one HLC-pinned LWW tombstone per matched key while shards run in parallel.",
        "source": "src/lattice/BPlusTree/Grains/BPlusLeafGrain.cs#DeleteRangeAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#DeleteRangeWherePredicateAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#DeleteRangeWherePredicateAsync"
      ]
    },
    {
      "id": "delete-tree",
      "in_process": {
        "interface": "ILattice",
        "method": "DeleteTreeAsync",
        "signature": "Task DeleteTreeAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "invalid-operation",
          "condition": "The tree's alias targets a tree this tree does not own, another tree aliases this one, or a resize, restore or remediation holds the tree's alias."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry safety follows the operation-specific idempotency rule.",
        "source": "src/lattice/BPlusTree/ILattice.cs#DeleteTreeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Calling on an already-deleted tree is documented as a no-op.",
        "source": "src/lattice/BPlusTree/ILattice.cs#DeleteTreeAsync"
      },
      "concurrency": {
        "rule": "The delete acts on the logical tree and throws InvalidOperationException while a resize, restore or remediation holds the tree's alias, when another tree aliases it, or when its alias targets a tree it does not own.",
        "source": "src/lattice/BPlusTree/ILattice.cs#DeleteTreeAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#DeleteTreeAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#DeleteTreeAsync",
        "docs/lattice/tree-registry.md"
      ]
    },
    {
      "id": "diagnose-deep-option",
      "in_process": {
        "interface": "ILattice",
        "method": "DiagnoseAsync",
        "signature": "Task<TreeDiagnosticReport> DiagnoseAsync(bool deep = false, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "deep",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "TreeDiagnosticReport"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#DiagnoseAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#DiagnoseAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#DiagnoseAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#DiagnoseAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.AccessGate.cs#DiagnoseAsync"
      ]
    },
    {
      "id": "entries",
      "in_process": {
        "interface": "ILattice",
        "method": "EntriesAsync",
        "signature": "IAsyncEnumerable<KeyValuePair<string, byte[]>> EntriesAsync(string? startInclusive = null, string? endExclusive = null, bool reverse = false, bool? prefetch = null, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "prefetch",
            "type": "bool?",
            "required": false,
            "default": "null"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "KeyValuePair<string, byte[]>"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#EntriesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#EntriesAsync"
      },
      "concurrency": {
        "rule": "Raw streams are ordered but can surface EnumerationAbortedException under stateless-worker enumerator mis-routing; scan extensions recover.",
        "source": "src/lattice/BPlusTree/ILattice.cs#EntriesAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#EntriesAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#EntriesAsync"
      ]
    },
    {
      "id": "entries-where-predicate",
      "in_process": {
        "interface": "ILattice",
        "method": "EntriesWherePredicateAsync",
        "signature": "IAsyncEnumerable<KeyValuePair<string, byte[]>> EntriesWherePredicateAsync(LatticePredicateNode predicate, string? startInclusive = null, string? endExclusive = null, bool reverse = false, bool? prefetch = null, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "predicate",
            "type": "LatticePredicateNode",
            "required": true
          },
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "prefetch",
            "type": "bool?",
            "required": false,
            "default": "null"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "KeyValuePair<string, byte[]>"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#EntriesWherePredicateAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#EntriesWherePredicateAsync"
      },
      "concurrency": {
        "rule": "Raw streams are ordered but can surface EnumerationAbortedException under stateless-worker enumerator mis-routing; scan extensions recover.",
        "source": "src/lattice/BPlusTree/ILattice.cs#EntriesWherePredicateAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#EntriesWherePredicateAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Entries.cs#EntriesWherePredicateAsync"
      ]
    },
    {
      "id": "execute-wal-move-batch",
      "in_process": {
        "interface": "ILatticeAdmin",
        "method": "ExecuteWalMoveAsync",
        "signature": "Task<WalMoveBatchReceipt> ExecuteWalMoveAsync(string treeId, IEnumerable<(int Partition, string TargetProviderKey)> moves, WalMoveOptions? options = null, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "treeId",
            "type": "string",
            "required": true
          },
          {
            "name": "moves",
            "type": "IEnumerable<(int Partition, string TargetProviderKey)>",
            "required": true
          },
          {
            "name": "options",
            "type": "WalMoveOptions?",
            "required": false,
            "default": "null"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "WalMoveBatchReceipt"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry follows the operation idempotency documented by the WAL move surface; batch failures retain target copies for re-execute.",
        "source": "src/lattice/ILatticeAdmin.cs#ExecuteWalMoveAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Re-executing a move already pinned to the target is documented as an idempotent repair.",
        "source": "src/lattice/ILatticeAdmin.cs#ExecuteWalMoveAsync"
      },
      "concurrency": {
        "rule": "WAL placement mutation methods are deliberately not AlwaysInterleave so placement moves do not interleave on the admin singleton.",
        "source": "src/lattice/ILatticeAdmin.cs#ExecuteWalMoveAsync"
      },
      "sources": [
        "src/lattice/ILatticeAdmin.cs#ExecuteWalMoveAsync",
        "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#ExecuteWalMoveAsync"
      ]
    },
    {
      "id": "execute-wal-move-single",
      "in_process": {
        "interface": "ILatticeAdmin",
        "method": "ExecuteWalMoveAsync",
        "signature": "Task<WalMoveReceipt> ExecuteWalMoveAsync(string treeId, int partition, string targetProviderKey, WalMoveOptions? options = null, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "treeId",
            "type": "string",
            "required": true
          },
          {
            "name": "partition",
            "type": "int",
            "required": true
          },
          {
            "name": "targetProviderKey",
            "type": "string",
            "required": true
          },
          {
            "name": "options",
            "type": "WalMoveOptions?",
            "required": false,
            "default": "null"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "WalMoveReceipt"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry follows the operation idempotency documented by the WAL move surface; batch failures retain target copies for re-execute.",
        "source": "src/lattice/ILatticeAdmin.cs#ExecuteWalMoveAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Re-executing a move already pinned to the target is documented as an idempotent repair.",
        "source": "src/lattice/ILatticeAdmin.cs#ExecuteWalMoveAsync"
      },
      "concurrency": {
        "rule": "WAL placement mutation methods are deliberately not AlwaysInterleave so placement moves do not interleave on the admin singleton.",
        "source": "src/lattice/ILatticeAdmin.cs#ExecuteWalMoveAsync"
      },
      "sources": [
        "src/lattice/ILatticeAdmin.cs#ExecuteWalMoveAsync",
        "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#ExecuteWalMoveAsync"
      ]
    },
    {
      "id": "exists",
      "in_process": {
        "interface": "ILattice",
        "method": "ExistsAsync",
        "signature": "Task<bool> ExistsAsync(string key, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "key",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "bool"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#ExistsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ExistsAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ExistsAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#ExistsAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#ExistsAsync"
      ]
    },
    {
      "id": "get",
      "in_process": {
        "interface": "ILattice",
        "method": "GetAsync",
        "signature": "Task<byte[]?> GetAsync(string key, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "key",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "byte[]?"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetAsync"
      ]
    },
    {
      "id": "get-all-tree-ids",
      "in_process": {
        "interface": "ILattice",
        "method": "GetAllTreeIdsAsync",
        "signature": "Task<IReadOnlyList<string>> GetAllTreeIdsAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "IReadOnlyList<string>"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetAllTreeIdsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetAllTreeIdsAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetAllTreeIdsAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetAllTreeIdsAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.AccessGate.cs#GetAllTreeIdsAsync"
      ]
    },
    {
      "id": "get-history-retention",
      "in_process": {
        "interface": "ILattice",
        "method": "GetHistoryRetentionAsync",
        "signature": "Task<HistoryRetentionSettings> GetHistoryRetentionAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "HistoryRetentionSettings"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetHistoryRetentionAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetHistoryRetentionAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetHistoryRetentionAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetHistoryRetentionAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.AccessGate.cs#GetHistoryRetentionAsync"
      ]
    },
    {
      "id": "get-leaf-projection-digest",
      "in_process": {
        "interface": "ILattice",
        "method": "GetLeafProjectionDigestAsync",
        "signature": "Task<LeafProjectionDigest> GetLeafProjectionDigestAsync(int shardIndex, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "shardIndex",
            "type": "int",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "LeafProjectionDigest"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "invalid-operation",
          "condition": "MaintainProjectionDigest is disabled, so the persisted projection-digest aggregate is not maintained."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetLeafProjectionDigestAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetLeafProjectionDigestAsync"
      },
      "concurrency": {
        "rule": "Read-only digest read; shard digests are maintained incrementally by leaf-to-root projection aggregates and read from the shard root rather than by walking the leaf chain.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetLeafProjectionDigestAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetLeafProjectionDigestAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Digest.cs#GetLeafProjectionDigestAsync"
      ]
    },
    {
      "id": "get-leaf-projection-digest-for-range-range",
      "in_process": {
        "interface": "ILattice",
        "method": "GetLeafProjectionDigestForRangeAsync",
        "signature": "Task<LeafProjectionDigest> GetLeafProjectionDigestForRangeAsync(int shardIndex, string? startKeyInclusive, string? endKeyExclusive, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "shardIndex",
            "type": "int",
            "required": true
          },
          {
            "name": "startKeyInclusive",
            "type": "string?",
            "required": false
          },
          {
            "name": "endKeyExclusive",
            "type": "string?",
            "required": false
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "LeafProjectionDigest"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "invalid-operation",
          "condition": "MaintainProjectionDigest is disabled, so the persisted projection-digest aggregate is not maintained."
        },
        {
          "error_id": "argument-out-of-range",
          "condition": "shardIndex is not a physical shard of this tree."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetLeafProjectionDigestForRangeAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetLeafProjectionDigestForRangeAsync"
      },
      "concurrency": {
        "rule": "Read-only digest read; shard digests are maintained incrementally by leaf-to-root projection aggregates and read from the shard root rather than by walking the leaf chain.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetLeafProjectionDigestAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetLeafProjectionDigestForRangeAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Digest.cs#GetLeafProjectionDigestForRangeAsync"
      ]
    },
    {
      "id": "get-many",
      "in_process": {
        "interface": "ILattice",
        "method": "GetManyAsync",
        "signature": "Task<Dictionary<string, byte[]>> GetManyAsync(List<string> keys, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "keys",
            "type": "List<string>",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "Dictionary<string, byte[]>"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetManyAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetManyAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetManyAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetManyAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetManyAsync"
      ]
    },
    {
      "id": "get-many-with-gate-accounting",
      "in_process": {
        "interface": "ILattice",
        "method": "GetManyWithGateAccountingAsync",
        "signature": "Task<GatedMultiReadResult> GetManyWithGateAccountingAsync(List<string> keys, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "keys",
            "type": "List<string>",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "GatedMultiReadResult"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetManyWithGateAccountingAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetManyWithGateAccountingAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetManyWithGateAccountingAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetManyWithGateAccountingAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetManyWithGateAccountingAsync"
      ]
    },
    {
      "id": "get-materialiser-lag",
      "in_process": {
        "interface": "ILattice",
        "method": "GetMaterialiserLagAsync",
        "signature": "Task<long> GetMaterialiserLagAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "long",
        "meaning": "Largest per-shard materialiser-lag estimate: sum over WAL partitions of head minus minimum projection checkpoint, clamped at zero per term."
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only estimate; retrying only re-reads the current lag.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetMaterialiserLagAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only and returns a point-in-time estimate.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetMaterialiserLagAsync"
      },
      "concurrency": {
        "rule": "Read a steady value as caught up and a growing value as falling behind; on multi-partition trees the per-leaf partition-0 checkpoint makes the figure an estimate.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetMaterialiserLagAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetMaterialiserLagAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.OrphanRepair.cs#GetMaterialiserLagAsync"
      ]
    },
    {
      "id": "get-or-set",
      "in_process": {
        "interface": "ILattice",
        "method": "GetOrSetAsync",
        "signature": "Task<byte[]?> GetOrSetAsync(string key, byte[] value, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "key",
            "type": "string",
            "required": true
          },
          {
            "name": "value",
            "type": "byte[]",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "byte[]?"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored write reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; replication and prepared saga apply paths bypass this guard."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe when the caller enters LatticeIdempotencyContext and the host configures ILatticeRetryPolicy; otherwise the policy is bypassed.",
        "source": "src/lattice/ILatticeRetryPolicy.cs#ILatticeRetryPolicy"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Retries under the same LatticeIdempotencyContext stamp the same HybridLogicalClock so dedup and merge collapse repeated mutations.",
        "source": "src/lattice/LatticeIdempotencyContext.cs#LatticeIdempotencyContext"
      },
      "concurrency": {
        "rule": "A point write racing GetOrSetAsync applies in either order, and the owning leaf stamps the write with its own HLC so last-writer-wins resolves the race.",
        "source": "src/lattice/BPlusTree/IShardRootGrain.cs#GetOrSetAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetOrSetAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetOrSetAsync"
      ]
    },
    {
      "id": "get-range-read-gate-coverage-range",
      "in_process": {
        "interface": "ILattice",
        "method": "GetRangeReadGateCoverageAsync",
        "signature": "Task<LatticeRangeReadGateCoverage> GetRangeReadGateCoverageAsync(string? startInclusive = null, string? endExclusive = null, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "LatticeRangeReadGateCoverage"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetRangeReadGateCoverageAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetRangeReadGateCoverageAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetRangeReadGateCoverageAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetRangeReadGateCoverageAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.AccessGate.cs#GetRangeReadGateCoverageAsync"
      ]
    },
    {
      "id": "get-routing",
      "in_process": {
        "interface": "ILattice",
        "method": "GetRoutingAsync",
        "signature": "ValueTask<RoutingInfo> GetRoutingAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "RoutingInfo"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetRoutingAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetRoutingAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetRoutingAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetRoutingAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#GetRoutingAsync"
      ]
    },
    {
      "id": "get-routing-force-refresh",
      "in_process": {
        "interface": "ILattice",
        "method": "GetRoutingAsync",
        "signature": "ValueTask<RoutingInfo> GetRoutingAsync(bool forceRefresh, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "forceRefresh",
            "type": "bool",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "RoutingInfo"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetRoutingAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetRoutingAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetRoutingAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetRoutingAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#GetRoutingAsync"
      ]
    },
    {
      "id": "get-split-activity",
      "in_process": {
        "interface": "ILatticeAdmin",
        "method": "GetSplitActivityAsync",
        "signature": "Task<SplitActivityReport> GetSplitActivityAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "SplitActivityReport"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Safe to retry because the operation performs a read-only call to the cluster split-admission singleton and returns a point-in-time activity snapshot.",
        "source": "src/lattice/BPlusTree/Grains/LatticeAdminGrain.cs#GetSplitActivityAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/ILatticeAdmin.cs#GetSplitActivityAsync"
      },
      "concurrency": {
        "rule": "AlwaysInterleave read-only fan-out methods do not block sibling administrative calls.",
        "source": "src/lattice/ILatticeAdmin.cs#GetSplitActivityAsync"
      },
      "sources": [
        "src/lattice/ILatticeAdmin.cs#GetSplitActivityAsync",
        "src/lattice/BPlusTree/Grains/LatticeAdminGrain.cs#GetSplitActivityAsync"
      ]
    },
    {
      "id": "get-storage-usage",
      "in_process": {
        "interface": "ILattice",
        "method": "GetStorageUsageAsync",
        "signature": "Task<TreeStorageUsageReport> GetStorageUsageAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "TreeStorageUsageReport"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetStorageUsageAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetStorageUsageAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetStorageUsageAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetStorageUsageAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.AccessGate.cs#GetStorageUsageAsync"
      ]
    },
    {
      "id": "get-total-storage-usage",
      "in_process": {
        "interface": "ILatticeAdmin",
        "method": "GetTotalStorageUsageAsync",
        "signature": "Task<ClusterStorageUsageReport> GetTotalStorageUsageAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "ClusterStorageUsageReport"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The implementation absorbs per-tree failures into partial or next-tick results; caller cancellation still aborts.",
        "source": "src/lattice/BPlusTree/Grains/LatticeAdminGrain.cs#GetTotalStorageUsageAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/ILatticeAdmin.cs#GetTotalStorageUsageAsync"
      },
      "concurrency": {
        "rule": "AlwaysInterleave read-only fan-out methods do not block sibling administrative calls.",
        "source": "src/lattice/ILatticeAdmin.cs#GetTotalStorageUsageAsync"
      },
      "sources": [
        "src/lattice/ILatticeAdmin.cs#GetTotalStorageUsageAsync",
        "src/lattice/BPlusTree/Grains/LatticeAdminGrain.cs#GetTotalStorageUsageAsync"
      ]
    },
    {
      "id": "get-wal-placement",
      "in_process": {
        "interface": "ILatticeAdmin",
        "method": "GetWalPlacementAsync",
        "signature": "Task<WalPlacement> GetWalPlacementAsync(string treeId, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "treeId",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "WalPlacement"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Safe to retry because the operation performs registry, topology, and catalog reads only and returns a point-in-time placement snapshot.",
        "source": "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#GetWalPlacementAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/ILatticeAdmin.cs#GetWalPlacementAsync"
      },
      "concurrency": {
        "rule": "AlwaysInterleave read-only fan-out methods do not block sibling administrative calls.",
        "source": "src/lattice/ILatticeAdmin.cs#GetWalPlacementAsync"
      },
      "sources": [
        "src/lattice/ILatticeAdmin.cs#GetWalPlacementAsync",
        "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#GetWalPlacementAsync"
      ]
    },
    {
      "id": "get-with-version",
      "in_process": {
        "interface": "ILattice",
        "method": "GetWithVersionAsync",
        "signature": "Task<VersionedValue> GetWithVersionAsync(string key, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "key",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "VersionedValue"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetWithVersionAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetWithVersionAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#GetWithVersionAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#GetWithVersionAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#GetWithVersionAsync"
      ]
    },
    {
      "id": "inspect-orphaned-leaves",
      "in_process": {
        "interface": "ILattice",
        "method": "InspectOrphanedLeavesAsync",
        "signature": "Task<OrphanedLeafRepairReport> InspectOrphanedLeavesAsync(string? resumeFrom = null, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "resumeFrom",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "OrphanedLeafRepairReport"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#InspectOrphanedLeavesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#InspectOrphanedLeavesAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#InspectOrphanedLeavesAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#InspectOrphanedLeavesAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.OrphanRepair.cs#InspectOrphanedLeavesAsync"
      ]
    },
    {
      "id": "is-merge-complete",
      "in_process": {
        "interface": "ILattice",
        "method": "IsMergeCompleteAsync",
        "signature": "Task<bool> IsMergeCompleteAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "bool"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsMergeCompleteAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsMergeCompleteAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsMergeCompleteAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#IsMergeCompleteAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#IsMergeCompleteAsync"
      ]
    },
    {
      "id": "is-reshard-complete",
      "in_process": {
        "interface": "ILattice",
        "method": "IsReshardCompleteAsync",
        "signature": "Task<bool> IsReshardCompleteAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "bool"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsReshardCompleteAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsReshardCompleteAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsReshardCompleteAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#IsReshardCompleteAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Reshard.cs#IsReshardCompleteAsync"
      ]
    },
    {
      "id": "is-resize-complete",
      "in_process": {
        "interface": "ILattice",
        "method": "IsResizeCompleteAsync",
        "signature": "Task<bool> IsResizeCompleteAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "bool"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsResizeCompleteAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsResizeCompleteAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsResizeCompleteAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#IsResizeCompleteAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#IsResizeCompleteAsync"
      ]
    },
    {
      "id": "is-resize-undo-pending",
      "in_process": {
        "interface": "ILattice",
        "method": "IsResizeUndoPendingAsync",
        "signature": "Task<bool> IsResizeUndoPendingAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "bool",
        "meaning": "true while an undo accepted by UndoResizeAsync is still unwinding; false once it has finished or when no undo has been requested. A pending undo takes precedence over IsResizeCompleteAsync, which reports true after an undo of an already completed resize."
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The caller is not authorized for whole-tree LatticeOperation.Read on the tree."
        },
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before the read."
        },
        {
          "error_id": "reserved-tree-namespace",
          "condition": "The tree id starts with the internal system tree prefix."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Safe to retry: the call only reads the resize coordinator's undo progress and answers without waiting for an in-flight resize phase.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#IsResizeUndoPendingAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#IsResizeUndoPendingAsync"
      },
      "concurrency": {
        "rule": "Answers without waiting for an in-flight resize phase; combine with IsResizeCompleteAsync to distinguish a running resize, an accepted undo that is unwinding, and no resize.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsResizeUndoPendingAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#IsResizeUndoPendingAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#IsResizeUndoPendingAsync"
      ]
    },
    {
      "id": "is-snapshot-complete",
      "in_process": {
        "interface": "ILattice",
        "method": "IsSnapshotCompleteAsync",
        "signature": "Task<bool> IsSnapshotCompleteAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "bool"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsSnapshotCompleteAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsSnapshotCompleteAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#IsSnapshotCompleteAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#IsSnapshotCompleteAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#IsSnapshotCompleteAsync"
      ]
    },
    {
      "id": "keys",
      "in_process": {
        "interface": "ILattice",
        "method": "KeysAsync",
        "signature": "IAsyncEnumerable<string> KeysAsync(string? startInclusive = null, string? endExclusive = null, bool reverse = false, bool? prefetch = null, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "prefetch",
            "type": "bool?",
            "required": false,
            "default": "null"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#KeysAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#KeysAsync"
      },
      "concurrency": {
        "rule": "Raw streams are ordered but can surface EnumerationAbortedException under stateless-worker enumerator mis-routing; scan extensions recover.",
        "source": "src/lattice/BPlusTree/ILattice.cs#KeysAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#KeysAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#KeysAsync"
      ]
    },
    {
      "id": "keys-where-predicate",
      "in_process": {
        "interface": "ILattice",
        "method": "KeysWherePredicateAsync",
        "signature": "IAsyncEnumerable<string> KeysWherePredicateAsync(LatticePredicateNode predicate, string? startInclusive = null, string? endExclusive = null, bool reverse = false, bool? prefetch = null, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "predicate",
            "type": "LatticePredicateNode",
            "required": true
          },
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "prefetch",
            "type": "bool?",
            "required": false,
            "default": "null"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#KeysWherePredicateAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#KeysWherePredicateAsync"
      },
      "concurrency": {
        "rule": "Raw streams are ordered but can surface EnumerationAbortedException under stateless-worker enumerator mis-routing; scan extensions recover.",
        "source": "src/lattice/BPlusTree/ILattice.cs#KeysWherePredicateAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#KeysWherePredicateAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Keys.cs#KeysWherePredicateAsync"
      ]
    },
    {
      "id": "merge",
      "in_process": {
        "interface": "ILattice",
        "method": "MergeAsync",
        "signature": "Task MergeAsync(string sourceTreeId, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "sourceTreeId",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe to retry only while the same-source merge remains in progress, where the per-target merge coordinator returns without starting another merge; after completion, reissuing the call starts a new merge that can copy later source changes.",
        "source": "src/lattice/BPlusTree/Grains/TreeMergeGrain.cs#MergeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The same source idempotently reattaches only while state.InProgress is true; after CompleteMergeAsync clears InProgress, the same call initiates a new merge.",
        "source": "src/lattice/BPlusTree/Grains/TreeMergeGrain.cs#MergeAsync"
      },
      "concurrency": {
        "rule": "One non-reentrant merge coordinator per target tree serializes merge requests with persisted InProgress and SourceTreeId state before timer-driven shard processing begins.",
        "source": "src/lattice/BPlusTree/Grains/TreeMergeGrain.cs#MergeAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#MergeAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.AccessGate.cs#MergeAsync"
      ]
    },
    {
      "id": "next-entries",
      "in_process": {
        "interface": "ILattice",
        "method": "NextEntriesAsync",
        "signature": "Task<LatticeCursorEntriesPage> NextEntriesAsync(string cursorId, int pageSize, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cursorId",
            "type": "string",
            "required": true
          },
          {
            "name": "pageSize",
            "type": "int",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "LatticeCursorEntriesPage"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#NextEntriesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#NextEntriesAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#NextEntriesAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#NextEntriesAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#NextEntriesAsync"
      ]
    },
    {
      "id": "next-keys",
      "in_process": {
        "interface": "ILattice",
        "method": "NextKeysAsync",
        "signature": "Task<LatticeCursorKeysPage> NextKeysAsync(string cursorId, int pageSize, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cursorId",
            "type": "string",
            "required": true
          },
          {
            "name": "pageSize",
            "type": "int",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "LatticeCursorKeysPage"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#NextKeysAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#NextKeysAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#NextKeysAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#NextKeysAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#NextKeysAsync"
      ]
    },
    {
      "id": "open-delete-range-cursor-range",
      "in_process": {
        "interface": "ILattice",
        "method": "OpenDeleteRangeCursorAsync",
        "signature": "Task<string> OpenDeleteRangeCursorAsync(string startInclusive, string endExclusive, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "startInclusive",
            "type": "string",
            "required": true
          },
          {
            "name": "endExclusive",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry after a lost open response creates a new cursor id over the same range; the abandoned cursor has no delete side effect and self-cleans by idle TTL, so callers must use only the returned cursor id.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenDeleteRangeCursorCoreAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "The public method generates a fresh Guid cursor id before opening the cursor grain, so repeated calls create distinct cursor resources.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenDeleteRangeCursorCoreAsync"
      },
      "concurrency": {
        "rule": "Each generated cursor id maps to one non-reentrant cursor activation; opening it persists the spec once, accepts the same spec for that cursor id, and rejects a different spec.",
        "source": "src/lattice/BPlusTree/Grains/LatticeCursorGrain.cs#OpenAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#OpenDeleteRangeCursorAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenDeleteRangeCursorAsync"
      ]
    },
    {
      "id": "open-delete-range-cursor-where-predicate",
      "in_process": {
        "interface": "ILattice",
        "method": "OpenDeleteRangeCursorWherePredicateAsync",
        "signature": "Task<string> OpenDeleteRangeCursorWherePredicateAsync(LatticePredicateNode predicate, string startInclusive, string endExclusive, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "predicate",
            "type": "LatticePredicateNode",
            "required": true
          },
          {
            "name": "startInclusive",
            "type": "string",
            "required": true
          },
          {
            "name": "endExclusive",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry after a lost open response creates a new cursor id over the same range and predicate; the abandoned cursor has no delete side effect and self-cleans by idle TTL, so callers must use only the returned cursor id.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenDeleteRangeCursorCoreAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "The public predicate overload delegates to the same core method that generates a fresh Guid cursor id for every call.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenDeleteRangeCursorCoreAsync"
      },
      "concurrency": {
        "rule": "Each generated cursor id maps to one non-reentrant cursor activation; opening it persists the predicate spec once, accepts the same spec for that cursor id, and rejects a different spec.",
        "source": "src/lattice/BPlusTree/Grains/LatticeCursorGrain.cs#OpenAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#OpenDeleteRangeCursorWherePredicateAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenDeleteRangeCursorWherePredicateAsync"
      ]
    },
    {
      "id": "open-entry-cursor",
      "in_process": {
        "interface": "ILattice",
        "method": "OpenEntryCursorAsync",
        "signature": "Task<string> OpenEntryCursorAsync(string? startInclusive = null, string? endExclusive = null, bool reverse = false, bool pointInTime = false, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "pointInTime",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenEntryCursorAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenEntryCursorAsync"
      },
      "concurrency": {
        "rule": "Stateful cursors checkpoint progress server-side; point-in-time mode captures a saga-decision snapshot.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenEntryCursorAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#OpenEntryCursorAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenEntryCursorAsync"
      ]
    },
    {
      "id": "open-entry-cursor-where-predicate",
      "in_process": {
        "interface": "ILattice",
        "method": "OpenEntryCursorWherePredicateAsync",
        "signature": "Task<string> OpenEntryCursorWherePredicateAsync(LatticePredicateNode predicate, string? startInclusive = null, string? endExclusive = null, bool reverse = false, bool pointInTime = false, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "predicate",
            "type": "LatticePredicateNode",
            "required": true
          },
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "pointInTime",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenEntryCursorWherePredicateAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenEntryCursorWherePredicateAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenEntryCursorWherePredicateAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#OpenEntryCursorWherePredicateAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenEntryCursorWherePredicateAsync"
      ]
    },
    {
      "id": "open-key-cursor",
      "in_process": {
        "interface": "ILattice",
        "method": "OpenKeyCursorAsync",
        "signature": "Task<string> OpenKeyCursorAsync(string? startInclusive = null, string? endExclusive = null, bool reverse = false, bool pointInTime = false, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "pointInTime",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenKeyCursorAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenKeyCursorAsync"
      },
      "concurrency": {
        "rule": "Stateful cursors checkpoint progress server-side; point-in-time mode captures a saga-decision snapshot.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenKeyCursorAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#OpenKeyCursorAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenKeyCursorAsync"
      ]
    },
    {
      "id": "open-key-cursor-where-predicate",
      "in_process": {
        "interface": "ILattice",
        "method": "OpenKeyCursorWherePredicateAsync",
        "signature": "Task<string> OpenKeyCursorWherePredicateAsync(LatticePredicateNode predicate, string? startInclusive = null, string? endExclusive = null, bool reverse = false, bool pointInTime = false, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "predicate",
            "type": "LatticePredicateNode",
            "required": true
          },
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "pointInTime",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenKeyCursorWherePredicateAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenKeyCursorWherePredicateAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenKeyCursorWherePredicateAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#OpenKeyCursorWherePredicateAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenKeyCursorWherePredicateAsync"
      ]
    },
    {
      "id": "open-snapshot-entry-cursor",
      "in_process": {
        "interface": "ILattice",
        "method": "OpenSnapshotEntryCursorAsync",
        "signature": "Task<string> OpenSnapshotEntryCursorAsync(string? startInclusive = null, string? endExclusive = null, bool reverse = false, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotEntryCursorAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotEntryCursorAsync"
      },
      "concurrency": {
        "rule": "Snapshot cursors serve pages against a tree-wide coordinate captured at open time.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotEntryCursorAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotEntryCursorAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenSnapshotEntryCursorAsync"
      ]
    },
    {
      "id": "open-snapshot-entry-cursor-where-predicate",
      "in_process": {
        "interface": "ILattice",
        "method": "OpenSnapshotEntryCursorWherePredicateAsync",
        "signature": "Task<string> OpenSnapshotEntryCursorWherePredicateAsync(LatticePredicateNode predicate, string? startInclusive = null, string? endExclusive = null, bool reverse = false, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "predicate",
            "type": "LatticePredicateNode",
            "required": true
          },
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotEntryCursorWherePredicateAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotEntryCursorWherePredicateAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotEntryCursorWherePredicateAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotEntryCursorWherePredicateAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenSnapshotEntryCursorWherePredicateAsync"
      ]
    },
    {
      "id": "open-snapshot-key-cursor",
      "in_process": {
        "interface": "ILattice",
        "method": "OpenSnapshotKeyCursorAsync",
        "signature": "Task<string> OpenSnapshotKeyCursorAsync(string? startInclusive = null, string? endExclusive = null, bool reverse = false, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotKeyCursorAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotKeyCursorAsync"
      },
      "concurrency": {
        "rule": "Snapshot cursors serve pages against a tree-wide coordinate captured at open time.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotKeyCursorAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotKeyCursorAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenSnapshotKeyCursorAsync"
      ]
    },
    {
      "id": "open-snapshot-key-cursor-where-predicate",
      "in_process": {
        "interface": "ILattice",
        "method": "OpenSnapshotKeyCursorWherePredicateAsync",
        "signature": "Task<string> OpenSnapshotKeyCursorWherePredicateAsync(LatticePredicateNode predicate, string? startInclusive = null, string? endExclusive = null, bool reverse = false, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "predicate",
            "type": "LatticePredicateNode",
            "required": true
          },
          {
            "name": "startInclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "endExclusive",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "reverse",
            "type": "bool",
            "required": false,
            "default": "false"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "string"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotKeyCursorWherePredicateAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotKeyCursorWherePredicateAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotKeyCursorWherePredicateAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#OpenSnapshotKeyCursorWherePredicateAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#OpenSnapshotKeyCursorWherePredicateAsync"
      ]
    },
    {
      "id": "plan-wal-move-batch",
      "in_process": {
        "interface": "ILatticeAdmin",
        "method": "PlanWalMoveAsync",
        "signature": "Task<WalMoveBatchPlan> PlanWalMoveAsync(string treeId, IEnumerable<(int Partition, string TargetProviderKey)> moves, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "treeId",
            "type": "string",
            "required": true
          },
          {
            "name": "moves",
            "type": "IEnumerable<(int Partition, string TargetProviderKey)>",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "WalMoveBatchPlan"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only planning is safe to retry; retrying only recomputes the current batch WAL move preview and changes no placement.",
        "source": "src/lattice/ILatticeAdmin.cs#PlanWalMoveAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/ILatticeAdmin.cs#PlanWalMoveAsync"
      },
      "concurrency": {
        "rule": "AlwaysInterleave read-only fan-out methods do not block sibling administrative calls.",
        "source": "src/lattice/ILatticeAdmin.cs#PlanWalMoveAsync"
      },
      "sources": [
        "src/lattice/ILatticeAdmin.cs#PlanWalMoveAsync",
        "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#PlanWalMoveAsync"
      ]
    },
    {
      "id": "plan-wal-move-single",
      "in_process": {
        "interface": "ILatticeAdmin",
        "method": "PlanWalMoveAsync",
        "signature": "Task<WalMovePlan> PlanWalMoveAsync(string treeId, int partition, string targetProviderKey, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "treeId",
            "type": "string",
            "required": true
          },
          {
            "name": "partition",
            "type": "int",
            "required": true
          },
          {
            "name": "targetProviderKey",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "WalMovePlan"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only planning is safe to retry; retrying only recomputes the current partition WAL move preview and changes no placement.",
        "source": "src/lattice/ILatticeAdmin.cs#PlanWalMoveAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/ILatticeAdmin.cs#PlanWalMoveAsync"
      },
      "concurrency": {
        "rule": "AlwaysInterleave read-only fan-out methods do not block sibling administrative calls.",
        "source": "src/lattice/ILatticeAdmin.cs#PlanWalMoveAsync"
      },
      "sources": [
        "src/lattice/ILatticeAdmin.cs#PlanWalMoveAsync",
        "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#PlanWalMoveAsync"
      ]
    },
    {
      "id": "poll-wal-usage",
      "in_process": {
        "interface": "ILatticeAdmin",
        "method": "PollWalUsageAsync",
        "signature": "Task PollWalUsageAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The implementation absorbs per-tree failures into partial or next-tick results; caller cancellation still aborts.",
        "source": "src/lattice/BPlusTree/Grains/LatticeAdminGrain.cs#PollWalUsageAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The method refreshes WAL usage observations and stores no caller-visible resource.",
        "source": "src/lattice/ILatticeAdmin.cs#PollWalUsageAsync"
      },
      "concurrency": {
        "rule": "AlwaysInterleave read-only fan-out methods do not block sibling administrative calls. Concurrent PollWalUsageAsync calls join the poll already running rather than starting another, so every silo's poller adds up to one cluster-wide fan-out at a time; a caller's cancellation stops only its own wait, never a poll other callers joined, and a finished poll is never reused (#6017).",
        "source": "src/lattice/ILatticeAdmin.cs#PollWalUsageAsync"
      },
      "sources": [
        "src/lattice/ILatticeAdmin.cs#PollWalUsageAsync",
        "src/lattice/BPlusTree/Grains/LatticeAdminGrain.cs#PollWalUsageAsync"
      ]
    },
    {
      "id": "purge-tree",
      "in_process": {
        "interface": "ILattice",
        "method": "PurgeTreeAsync",
        "signature": "Task PurgeTreeAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "invalid-operation",
          "condition": "The tree has not been deleted."
        }
      ],
      "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": "The per-tree deletion state machine serializes purge through its persisted deletion state, pinning logical alias targets and fencing alias changes with AliasOperationId.",
        "source": "src/lattice/BPlusTree/State/TreeDeletionState.cs#TreeDeletionState"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#PurgeTreeAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#PurgeTreeAsync",
        "docs/lattice/tree-registry.md"
      ]
    },
    {
      "id": "queue-count",
      "in_process": {
        "interface": "ILatticeQueue<T>",
        "method": "CountAsync",
        "signature": "Task<int> CountAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "int"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "invalid-operation",
          "condition": "The queue coordinator grain has not completed activation."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only in-memory count; retrying only re-reads the current parked depth.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#CountAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#CountAsync"
      },
      "concurrency": {
        "rule": "Served from the single coordinator grain in-memory cache after activation; concurrent mutations serialize on that grain.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#CountAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILatticeQueue.cs#ILatticeQueue",
        "src/lattice/BPlusTree/LatticeQueueExtensions.cs#GetLatticeQueue",
        "src/lattice/BPlusTree/Grains/LatticeQueueGrain.cs#LatticeQueueGrain",
        "src/lattice/BPlusTree/Grains/LatticeQueueCore.cs#LatticeQueueCore",
        "docs/lattice/queues.md"
      ]
    },
    {
      "id": "queue-enqueue",
      "in_process": {
        "interface": "ILatticeQueue<T>",
        "method": "EnqueueAsync",
        "signature": "Task<long> EnqueueAsync(T item, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "item",
            "type": "T",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "long"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "invalid-operation",
          "condition": "The queue coordinator grain has not completed activation."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "A lost response followed by retry appends a new tail entry with a new monotonic id; bounded queues may evict the oldest entry first.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#EnqueueAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "Each successful call assigns a new monotonic per-queue id and writes a new tail row.",
        "source": "src/lattice/BPlusTree/Grains/LatticeQueueCore.cs#EnqueueAsync"
      },
      "concurrency": {
        "rule": "Single coordinator grain serializes all appends to preserve FIFO; when QueueCapacity is reached it evicts oldest entries before appending.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#EnqueueAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILatticeQueue.cs#ILatticeQueue",
        "src/lattice/BPlusTree/LatticeQueueExtensions.cs#GetLatticeQueue",
        "src/lattice/BPlusTree/Grains/LatticeQueueGrain.cs#LatticeQueueGrain",
        "src/lattice/BPlusTree/Grains/LatticeQueueCore.cs#LatticeQueueCore",
        "docs/lattice/queues.md"
      ]
    },
    {
      "id": "queue-list",
      "in_process": {
        "interface": "ILatticeQueue<T>",
        "method": "ListAsync",
        "signature": "Task<IReadOnlyList<LatticeQueueEntry<T>>> ListAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "IReadOnlyList<LatticeQueueEntry<T>>"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "invalid-operation",
          "condition": "The queue coordinator grain has not completed activation."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only diagnostic snapshot; retrying only re-reads the current parked set.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#ListAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#ListAsync"
      },
      "concurrency": {
        "rule": "Returns an ascending-id snapshot of every parked entry from the coordinator in-memory cache; intended for diagnostics/control-plane, not the hot path.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#ListAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILatticeQueue.cs#ILatticeQueue",
        "src/lattice/BPlusTree/LatticeQueueExtensions.cs#GetLatticeQueue",
        "src/lattice/BPlusTree/Grains/LatticeQueueGrain.cs#LatticeQueueGrain",
        "src/lattice/BPlusTree/Grains/LatticeQueueCore.cs#LatticeQueueCore",
        "docs/lattice/queues.md"
      ]
    },
    {
      "id": "queue-peek",
      "in_process": {
        "interface": "ILatticeQueue<T>",
        "method": "PeekAsync",
        "signature": "Task<LatticeQueueEntry<T>?> PeekAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "LatticeQueueEntry<T>?"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "invalid-operation",
          "condition": "The queue coordinator grain has not completed activation."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Read-only head read; retrying only re-reads the current head.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#PeekAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#PeekAsync"
      },
      "concurrency": {
        "rule": "Returns the current head from the single coordinator grain cache without removing it.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#PeekAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILatticeQueue.cs#ILatticeQueue",
        "src/lattice/BPlusTree/LatticeQueueExtensions.cs#GetLatticeQueue",
        "src/lattice/BPlusTree/Grains/LatticeQueueGrain.cs#LatticeQueueGrain",
        "src/lattice/BPlusTree/Grains/LatticeQueueCore.cs#LatticeQueueCore",
        "docs/lattice/queues.md"
      ]
    },
    {
      "id": "queue-try-dequeue",
      "in_process": {
        "interface": "ILatticeQueue<T>",
        "method": "TryDequeueAsync",
        "signature": "Task<LatticeQueueEntry<T>?> TryDequeueAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "LatticeQueueEntry<T>?"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "invalid-operation",
          "condition": "The queue coordinator grain has not completed activation."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Destructive dequeue removes the head before returning it; retry after a lost response may remove the next entry.",
        "source": "src/lattice/BPlusTree/ILatticeQueue.cs#TryDequeueAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "A successful call advances the persisted/in-memory head and deletes the consumed row.",
        "source": "src/lattice/BPlusTree/Grains/LatticeQueueCore.cs#TryDequeueAsync"
      },
      "concurrency": {
        "rule": "Single coordinator grain serializes dequeue operations, preserving FIFO order and amortized O(1) head advancement.",
        "source": "src/lattice/BPlusTree/Grains/LatticeQueueCore.cs#TryDequeueAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILatticeQueue.cs#ILatticeQueue",
        "src/lattice/BPlusTree/LatticeQueueExtensions.cs#GetLatticeQueue",
        "src/lattice/BPlusTree/Grains/LatticeQueueGrain.cs#LatticeQueueGrain",
        "src/lattice/BPlusTree/Grains/LatticeQueueCore.cs#LatticeQueueCore",
        "docs/lattice/queues.md"
      ]
    },
    {
      "id": "rebuild-leaf-projection",
      "in_process": {
        "interface": "ILattice",
        "method": "RebuildLeafProjectionAsync",
        "signature": "Task RebuildLeafProjectionAsync(int shardIndex, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "shardIndex",
            "type": "int",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry safety follows the operation-specific idempotency rule.",
        "source": "src/lattice/BPlusTree/ILattice.cs#RebuildLeafProjectionAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Each leaf rebuild is documented independently idempotent and safe to retry.",
        "source": "src/lattice/BPlusTree/ILattice.cs#RebuildLeafProjectionAsync"
      },
      "concurrency": {
        "rule": "The public loop drives one physical shard through bounded shard-root pages, each page releases the shard between batches, and each leaf projection rebuild is idempotent.",
        "source": "src/lattice/BPlusTree/Grains/ShardRootGrain.ProjectionAdmin.cs#RebuildShardProjectionBoundedAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#RebuildLeafProjectionAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.Cursor.cs#RebuildLeafProjectionAsync"
      ]
    },
    {
      "id": "reclaim-moved-wal-source-single",
      "in_process": {
        "interface": "ILatticeAdmin",
        "method": "ReclaimMovedWalSourceAsync",
        "signature": "Task<WalMoveReceipt> ReclaimMovedWalSourceAsync(string treeId, int partition, string sourceProviderKey, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "treeId",
            "type": "string",
            "required": true
          },
          {
            "name": "partition",
            "type": "int",
            "required": true
          },
          {
            "name": "sourceProviderKey",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "WalMoveReceipt"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry follows the operation idempotency documented by the WAL move surface; batch failures retain target copies for re-execute.",
        "source": "src/lattice/ILatticeAdmin.cs#ReclaimMovedWalSourceAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Re-running a completed reclaim reports NoOp when the source holds no live entries.",
        "source": "src/lattice/ILatticeAdmin.cs#ReclaimMovedWalSourceAsync"
      },
      "concurrency": {
        "rule": "WAL placement mutation methods are deliberately not AlwaysInterleave so placement moves do not interleave on the admin singleton.",
        "source": "src/lattice/ILatticeAdmin.cs#ReclaimMovedWalSourceAsync"
      },
      "sources": [
        "src/lattice/ILatticeAdmin.cs#ReclaimMovedWalSourceAsync",
        "src/lattice/BPlusTree/Grains/LatticeAdminGrain.WalMove.cs#ReclaimMovedWalSourceAsync"
      ]
    },
    {
      "id": "recover-tree",
      "in_process": {
        "interface": "ILattice",
        "method": "RecoverTreeAsync",
        "signature": "Task RecoverTreeAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "invalid-operation",
          "condition": "The tree has not been deleted (including a live resized tree), a purge is in progress, or the purge has already completed, except that a purged id registered again clears the stale purge record and returns."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe to retry after partial recovery failure because per-shard unmark and reseed run before clearing the deletion record; after successful recovery, retry throws InvalidOperationException because the tree is no longer deleted.",
        "source": "src/lattice/BPlusTree/ITreeDeletionGrain.cs#RecoverAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Partial recovery is retryable, but a repeated call after the deletion record is cleared throws InvalidOperationException because the tree has not been deleted.",
        "source": "src/lattice/BPlusTree/ITreeDeletionGrain.cs#RecoverAsync"
      },
      "concurrency": {
        "rule": "The per-tree deletion state machine serializes recovery through its persisted deletion state, pinning logical alias targets and fencing alias changes with AliasOperationId.",
        "source": "src/lattice/BPlusTree/State/TreeDeletionState.cs#TreeDeletionState"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#RecoverTreeAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#RecoverTreeAsync",
        "docs/lattice/tree-registry.md"
      ]
    },
    {
      "id": "refresh-storage-usage",
      "in_process": {
        "interface": "ILatticeAdmin",
        "method": "RefreshStorageUsageAsync",
        "signature": "Task<ClusterStorageUsageReport> RefreshStorageUsageAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "ClusterStorageUsageReport"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The implementation absorbs per-tree failures into partial or next-tick results; caller cancellation still aborts.",
        "source": "src/lattice/BPlusTree/Grains/LatticeAdminGrain.cs#RefreshStorageUsageAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The method recomputes a read-only report with caches bypassed.",
        "source": "src/lattice/ILatticeAdmin.cs#RefreshStorageUsageAsync"
      },
      "concurrency": {
        "rule": "AlwaysInterleave read-only fan-out methods do not block sibling administrative calls.",
        "source": "src/lattice/ILatticeAdmin.cs#RefreshStorageUsageAsync"
      },
      "sources": [
        "src/lattice/ILatticeAdmin.cs#RefreshStorageUsageAsync",
        "src/lattice/BPlusTree/Grains/LatticeAdminGrain.cs#RefreshStorageUsageAsync"
      ]
    },
    {
      "id": "repair-orphaned-leaves",
      "in_process": {
        "interface": "ILattice",
        "method": "RepairOrphanedLeavesAsync",
        "signature": "Task<OrphanedLeafRepairReport> RepairOrphanedLeavesAsync(string? resumeFrom = null, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "resumeFrom",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "OrphanedLeafRepairReport"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry safety follows the operation-specific idempotency rule.",
        "source": "src/lattice/BPlusTree/ILattice.cs#RepairOrphanedLeavesAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Re-running is documented safe and cannot double-repair.",
        "source": "src/lattice/BPlusTree/ILattice.cs#RepairOrphanedLeavesAsync"
      },
      "concurrency": {
        "rule": "The repair pass walks shards sequentially, each shard declines a concurrent pass with ShardPassAlreadyRunning, and the orphan unsplice commits through the predecessor sibling compare-and-swap after the leaf retirement latch.",
        "source": "src/lattice/BPlusTree/Grains/ShardRootGrain.OrphanRepair.cs#RunOrphanedLeafPassAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#RepairOrphanedLeavesAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.OrphanRepair.cs#RepairOrphanedLeavesAsync"
      ]
    },
    {
      "id": "reshard",
      "in_process": {
        "interface": "ILattice",
        "method": "ReshardAsync",
        "signature": "Task ReshardAsync(int newShardCount, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "newShardCount",
            "type": "int",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-out-of-range",
          "condition": "newShardCount is outside 2..min(DefaultVirtualShardCount, the tree's ShardMap virtual slot count)."
        },
        {
          "error_id": "invalid-operation",
          "condition": "A resize is in flight, or a completed resize can still be undone while the previous physical copy mirrors into the resized one (until it is purged, SoftDeleteDuration after the resize), and the target needs a migration (an observably empty tree is re-pinned before the resize interlock is checked); or a different reshard target is already in progress."
        },
        {
          "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": "conditional",
        "policy": "Retry safety follows the operation-specific idempotency rule.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ReshardAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "A call with the current shard count is a no-op, and a call with the same newShardCount while a reshard is in progress is a no-op; a different in-flight target throws.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ReshardAsync"
      },
      "concurrency": {
        "rule": "Populated trees grow by online splits and shrink by online shard consolidation; empty trees can be re-pinned directly to any valid count, and concurrent requests for a different in-flight target are rejected.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ReshardAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#ReshardAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#ReshardAsync"
      ]
    },
    {
      "id": "resize",
      "in_process": {
        "interface": "ILattice",
        "method": "ResizeAsync",
        "signature": "Task ResizeAsync(int newMaxLeafKeys, int newMaxInternalChildren, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "newMaxLeafKeys",
            "type": "int",
            "required": true
          },
          {
            "name": "newMaxInternalChildren",
            "type": "int",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "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": "conditional",
        "policy": "Safe to retry the initiation with the same sizing while the resize is in progress; a different in-flight sizing throws InvalidOperationException, and after completion a later call can start a new resize.",
        "source": "src/lattice/BPlusTree/ITreeResizeGrain.cs#ResizeAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "ResizeAsync is a no-op only when the persisted resize is already in progress with the same parameters; different in-flight parameters throw and completed resizes do not memoize the prior call.",
        "source": "src/lattice/BPlusTree/ITreeResizeGrain.cs#ResizeAsync"
      },
      "concurrency": {
        "rule": "The per-tree resize coordinator persists a phase state and operation id, runs one keepalive-backed coordinator pump, reserves the alias change with the tree's deletion state machine, and refuses to start while reshard is not idle.",
        "source": "src/lattice/BPlusTree/Grains/TreeResizeGrain.cs#ResizeCoreAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#ResizeAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#ResizeAsync"
      ]
    },
    {
      "id": "scan-entry-history",
      "in_process": {
        "interface": "ILattice",
        "method": "ScanEntryHistoryAsync",
        "signature": "Task<EntryHistoryPage> ScanEntryHistoryAsync(string key, HybridLogicalClock? fromHlc, HybridLogicalClock? toHlc, int limit, string? continuation, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "key",
            "type": "string",
            "required": true
          },
          {
            "name": "fromHlc",
            "type": "HybridLogicalClock?",
            "required": false
          },
          {
            "name": "toHlc",
            "type": "HybridLogicalClock?",
            "required": false
          },
          {
            "name": "limit",
            "type": "int",
            "required": true
          },
          {
            "name": "continuation",
            "type": "string?",
            "required": false
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "EntryHistoryPage"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ScanEntryHistoryAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ScanEntryHistoryAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#ScanEntryHistoryAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#ScanEntryHistoryAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.History.cs#ScanEntryHistoryAsync"
      ]
    },
    {
      "id": "set",
      "in_process": {
        "interface": "ILattice",
        "method": "SetAsync",
        "signature": "Task SetAsync(string key, byte[] value, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "key",
            "type": "string",
            "required": true
          },
          {
            "name": "value",
            "type": "byte[]",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored write reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; replication and prepared saga apply paths bypass this guard."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe when the caller enters LatticeIdempotencyContext and the host configures ILatticeRetryPolicy; otherwise the policy is bypassed.",
        "source": "src/lattice/ILatticeRetryPolicy.cs#ILatticeRetryPolicy"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Retries under the same LatticeIdempotencyContext stamp the same HybridLogicalClock so dedup and merge collapse repeated mutations.",
        "source": "src/lattice/LatticeIdempotencyContext.cs#LatticeIdempotencyContext"
      },
      "concurrency": {
        "rule": "The leaf's set call is AlwaysInterleave, but Orleans serializes synchronous code between awaits so the per-key LWW merge, HLC tick and projection-hash updates are race-free; the split state machine is serialized by the per-activation split gate.",
        "source": "src/lattice/BPlusTree/IBPlusLeafGrain.cs#SetAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#SetAsync"
      ]
    },
    {
      "id": "set-history-retention",
      "in_process": {
        "interface": "ILattice",
        "method": "SetHistoryRetentionAsync",
        "signature": "Task SetHistoryRetentionAsync(HistoryRetentionMode? mode, TimeSpan? window, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "mode",
            "type": "HistoryRetentionMode?",
            "required": false
          },
          {
            "name": "window",
            "type": "TimeSpan?",
            "required": false
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "tree-not-registered",
          "condition": "The tree id has a completed purge record; read-side configuration does not recreate it."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after an ambiguous failure is safe because the registry upsert stores the same tree retention override values again.",
        "source": "src/lattice/BPlusTree/Grains/LatticeRegistryGrain.cs#SetHistoryRetentionAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Repeating the call with the same arguments leaves the registry entry with the same HistoryRetentionMode and HistoryRetentionWindowTicks.",
        "source": "src/lattice/BPlusTree/Grains/LatticeRegistryGrain.cs#SetHistoryRetentionAsync"
      },
      "concurrency": {
        "rule": "The tree registry is a non-reentrant singleton whose mutating members are not AlwaysInterleave, so each retention upsert serializes and concurrent configuration writes resolve by last writer.",
        "source": "src/lattice/BPlusTree/Grains/LatticeRegistryGrain.cs#SetHistoryRetentionAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetHistoryRetentionAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#SetHistoryRetentionAsync"
      ]
    },
    {
      "id": "set-if-version",
      "in_process": {
        "interface": "ILattice",
        "method": "SetIfVersionAsync",
        "signature": "Task<bool> SetIfVersionAsync(string key, byte[] value, HybridLogicalClock expectedVersion, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "key",
            "type": "string",
            "required": true
          },
          {
            "name": "value",
            "type": "byte[]",
            "required": true
          },
          {
            "name": "expectedVersion",
            "type": "HybridLogicalClock",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "bool"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored write reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; replication and prepared saga apply paths bypass this guard."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe when the caller enters LatticeIdempotencyContext and the host configures ILatticeRetryPolicy; otherwise the policy is bypassed.",
        "source": "src/lattice/ILatticeRetryPolicy.cs#ILatticeRetryPolicy"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Retries under the same LatticeIdempotencyContext stamp the same HybridLogicalClock so dedup and merge collapse repeated mutations.",
        "source": "src/lattice/LatticeIdempotencyContext.cs#LatticeIdempotencyContext"
      },
      "concurrency": {
        "rule": "Optimistic concurrency compares the current HybridLogicalClock with expectedVersion before writing.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetIfVersionAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetIfVersionAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#SetIfVersionAsync"
      ]
    },
    {
      "id": "set-many",
      "in_process": {
        "interface": "ILattice",
        "method": "SetManyAsync",
        "signature": "Task SetManyAsync(List<KeyValuePair<string, byte[]>> entries, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "entries",
            "type": "List<KeyValuePair<string, byte[]>>",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored write reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; replication and prepared saga apply paths bypass this guard."
        },
        {
          "error_id": "saturated",
          "condition": "The per-shard fan-out has not settled within LatticeOptions.SetManyFanOutBudget, or the whole batch write has consumed LatticeOptions.SetManyEnvelopeBudget across gate, route, bucket and fan-out; already-committed branches are retained and in-flight branches are not cancelled."
        },
        {
          "error_id": "argument-exception",
          "condition": "A key exceeds LatticeOptions.MaxKeyLength or a value exceeds LatticeOptions.MaxValueSizeBytes; every entry is checked on entry before any shard work."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "A caller may retry after backoff and after accepting the non-atomic outcome: branches that already committed stay committed and abandoned branches may still complete.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Without an ambient LatticeIdempotencyContext each retry is a fresh batch write; repeated identical values converge by value but restamp write metadata.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#SetManyAsync"
      },
      "concurrency": {
        "rule": "Not atomic; shard fan-out may leave a half-applied batch on partial failure or budget expiry, and abandoned sibling branches are deliberately not cancelled.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetManyAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#SetManyAsync",
        "docs/lattice/configuration.md"
      ]
    },
    {
      "id": "set-many-atomic",
      "in_process": {
        "interface": "ILattice",
        "method": "SetManyAtomicAsync",
        "signature": "Task SetManyAtomicAsync(List<KeyValuePair<string, byte[]>> entries, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "entries",
            "type": "List<KeyValuePair<string, byte[]>>",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "argument-exception",
          "condition": "An upsert key exceeds LatticeOptions.MaxKeyLength or an upsert value exceeds LatticeOptions.MaxValueSizeBytes; the batch is refused before its saga starts."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored batch reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; checked once per call before the saga starts, so the batch is admitted or refused as a whole."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry safety follows the operation-specific idempotency rule.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The operationId overload re-attaches to the original saga and binds the key set for the retention window.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync"
      },
      "concurrency": {
        "rule": "Atomic-write saga hides prepared writes until a single commit decision; AlwaysInterleave avoids stateless-worker deadlock.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#SetManyAtomicAsync",
        "docs/lattice/configuration.md"
      ]
    },
    {
      "id": "set-many-atomic-mixed-with-operation-id",
      "in_process": {
        "interface": "ILattice",
        "method": "SetManyAtomicAsync",
        "signature": "Task SetManyAtomicAsync(List<KeyValuePair<string, byte[]>> upserts, IReadOnlyList<string> deletes, string operationId, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "upserts",
            "type": "List<KeyValuePair<string, byte[]>>",
            "required": true
          },
          {
            "name": "deletes",
            "type": "IReadOnlyList<string>",
            "required": true
          },
          {
            "name": "operationId",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-exception",
          "condition": "operationId is null, empty, whitespace, or contains '/'; or the combined batch contains a duplicate or null key, or a null upsert value; or an upsert key exceeds LatticeOptions.MaxKeyLength or an upsert value exceeds LatticeOptions.MaxValueSizeBytes; the batch is refused before its saga starts."
        },
        {
          "error_id": "invalid-operation",
          "condition": "Thrown when a write fails and compensation completes."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "idempotency-key-mismatch",
          "condition": "The operationId was previously submitted with a different key set."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored batch reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; checked once per call before the saga starts, so the batch is admitted or refused as a whole. A delete-only batch is not checked."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry with the same operationId re-attaches to the original saga during retention.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The operationId overload re-attaches to the original saga and binds the key set for the retention window.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync"
      },
      "concurrency": {
        "rule": "Atomic-write saga hides prepared writes until a single commit decision; AlwaysInterleave avoids stateless-worker deadlock.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#SetManyAtomicAsync",
        "docs/lattice/configuration.md"
      ]
    },
    {
      "id": "set-many-atomic-where-where-predicate",
      "in_process": {
        "interface": "ILattice",
        "method": "SetManyAtomicWhereAsync",
        "signature": "Task<AtomicWriteOutcome> SetManyAtomicWhereAsync(List<KeyValuePair<string, byte[]>> entries, LatticePredicateNode predicate, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "entries",
            "type": "List<KeyValuePair<string, byte[]>>",
            "required": true
          },
          {
            "name": "predicate",
            "type": "LatticePredicateNode",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "AtomicWriteOutcome"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "argument-exception",
          "condition": "An entry key exceeds LatticeOptions.MaxKeyLength or an entry value exceeds LatticeOptions.MaxValueSizeBytes; checked before the precondition is evaluated and before the saga starts."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored batch reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; checked once per call before the saga starts, so the batch is admitted or refused as a whole."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry safety follows the operation-specific idempotency rule.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicWhereAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The operationId overload returns the memoized outcome without re-evaluating the predicate.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicWhereAsync"
      },
      "concurrency": {
        "rule": "Atomic-write saga hides prepared writes until a single commit decision; AlwaysInterleave avoids stateless-worker deadlock.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicWhereAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicWhereAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#SetManyAtomicWhereAsync",
        "docs/lattice/configuration.md"
      ]
    },
    {
      "id": "set-many-atomic-where-with-operation-id",
      "in_process": {
        "interface": "ILattice",
        "method": "SetManyAtomicWhereAsync",
        "signature": "Task<AtomicWriteOutcome> SetManyAtomicWhereAsync(List<KeyValuePair<string, byte[]>> entries, LatticePredicateNode predicate, string operationId, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "entries",
            "type": "List<KeyValuePair<string, byte[]>>",
            "required": true
          },
          {
            "name": "predicate",
            "type": "LatticePredicateNode",
            "required": true
          },
          {
            "name": "operationId",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "AtomicWriteOutcome"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "idempotency-key-mismatch",
          "condition": "The operationId was previously submitted with a different key set."
        },
        {
          "error_id": "argument-exception",
          "condition": "An entry key exceeds LatticeOptions.MaxKeyLength or an entry value exceeds LatticeOptions.MaxValueSizeBytes; checked before the precondition is evaluated and before the saga starts."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored batch reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; checked once per call before the saga starts, so the batch is admitted or refused as a whole."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry with the same operationId re-attaches to the original saga during retention.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicWhereAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The operationId overload returns the memoized outcome without re-evaluating the predicate.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicWhereAsync"
      },
      "concurrency": {
        "rule": "Atomic-write saga hides prepared writes until a single commit decision; AlwaysInterleave avoids stateless-worker deadlock.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicWhereAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicWhereAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#SetManyAtomicWhereAsync",
        "docs/lattice/configuration.md"
      ]
    },
    {
      "id": "set-many-atomic-with-operation-id",
      "in_process": {
        "interface": "ILattice",
        "method": "SetManyAtomicAsync",
        "signature": "Task SetManyAtomicAsync(List<KeyValuePair<string, byte[]>> entries, string operationId, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "entries",
            "type": "List<KeyValuePair<string, byte[]>>",
            "required": true
          },
          {
            "name": "operationId",
            "type": "string",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-exception",
          "condition": "operationId is null, empty, whitespace, or contains '/'; or entries contains duplicate keys or null values; or an upsert key exceeds LatticeOptions.MaxKeyLength or an upsert value exceeds LatticeOptions.MaxValueSizeBytes; the batch is refused before its saga starts."
        },
        {
          "error_id": "invalid-operation",
          "condition": "Thrown when a write fails and compensation completes."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "idempotency-key-mismatch",
          "condition": "The operationId was previously submitted with a different key set."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored batch reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; checked once per call before the saga starts, so the batch is admitted or refused as a whole."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry with the same operationId re-attaches to the original saga during retention.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "The operationId overload re-attaches to the original saga and binds the key set for the retention window.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync"
      },
      "concurrency": {
        "rule": "Atomic-write saga hides prepared writes until a single commit decision; AlwaysInterleave avoids stateless-worker deadlock.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetManyAtomicAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#SetManyAtomicAsync",
        "docs/lattice/configuration.md"
      ]
    },
    {
      "id": "set-many-where-predicate",
      "in_process": {
        "interface": "ILattice",
        "method": "SetManyWherePredicateAsync",
        "signature": "Task<IReadOnlyList<string>> SetManyWherePredicateAsync(List<KeyValuePair<string, byte[]>> entries, LatticePredicateNode predicate, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "entries",
            "type": "List<KeyValuePair<string, byte[]>>",
            "required": true
          },
          {
            "name": "predicate",
            "type": "LatticePredicateNode",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "IReadOnlyList<string>"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored write reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; replication and prepared saga apply paths bypass this guard."
        },
        {
          "error_id": "argument-exception",
          "condition": "A key exceeds LatticeOptions.MaxKeyLength or a value exceeds LatticeOptions.MaxValueSizeBytes; every entry is checked on entry before any shard work. The check runs before the predicate is evaluated."
        }
      ],
      "retry": {
        "safe": false,
        "policy": "Not safe after an ambiguous failure because a retry re-evaluates the predicate against current committed values and every matched entry is committed as a fresh LWW write with a new HLC.",
        "source": "src/lattice/BPlusTree/Grains/BPlusLeafGrain.cs#SetManyWherePredicateAsync"
      },
      "idempotency": {
        "idempotent": false,
        "basis": "The method has no operation id or LatticeIdempotencyContext wrapper and CommitSetManyAsync stamps each matched entry with a new HybridLogicalClock.",
        "source": "src/lattice/BPlusTree/Grains/BPlusLeafGrain.cs#CommitSetManyAsync"
      },
      "concurrency": {
        "rule": "Not atomic; shard fan-out may leave a half-applied batch on partial failure.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SetManyWherePredicateAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetManyWherePredicateAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.cs#SetManyWherePredicateAsync",
        "docs/lattice/configuration.md"
      ]
    },
    {
      "id": "set-publish-events-enabled",
      "in_process": {
        "interface": "ILattice",
        "method": "SetPublishEventsEnabledAsync",
        "signature": "Task SetPublishEventsEnabledAsync(bool? enabled, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "enabled",
            "type": "bool?",
            "required": false
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "tree-not-registered",
          "condition": "The tree id has a completed purge record; read-side configuration does not recreate it."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retry after an ambiguous failure is safe because the registry upsert stores the same tree publish-events override again.",
        "source": "src/lattice/BPlusTree/Grains/LatticeRegistryGrain.cs#SetPublishEventsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "Repeating the call with the same argument leaves the registry entry with the same PublishEvents override.",
        "source": "src/lattice/BPlusTree/Grains/LatticeRegistryGrain.cs#SetPublishEventsAsync"
      },
      "concurrency": {
        "rule": "The tree registry is a non-reentrant singleton whose mutating members are not AlwaysInterleave, so each publish-events upsert serializes and concurrent configuration writes resolve by last writer.",
        "source": "src/lattice/BPlusTree/Grains/LatticeRegistryGrain.cs#SetPublishEventsAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetPublishEventsEnabledAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#SetPublishEventsEnabledAsync"
      ]
    },
    {
      "id": "set-with-ttl",
      "in_process": {
        "interface": "ILattice",
        "method": "SetAsync",
        "signature": "Task SetAsync(string key, byte[] value, TimeSpan ttl, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "key",
            "type": "string",
            "required": true
          },
          {
            "name": "value",
            "type": "byte[]",
            "required": true
          },
          {
            "name": "ttl",
            "type": "TimeSpan",
            "required": true
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        },
        {
          "error_id": "argument-out-of-range",
          "condition": "ttl is less than or equal to zero, or exceeds DateTimeOffset.MaxValue when converted to an absolute expiry."
        },
        {
          "error_id": "quota-exceeded",
          "condition": "A locally-authored write reaches a configured MaxLiveKeys or MaxEstimatedBytes cap; replication and prepared saga apply paths bypass this guard."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Safe when the caller enters LatticeIdempotencyContext and the host configures ILatticeRetryPolicy; otherwise the policy is bypassed.",
        "source": "src/lattice/ILatticeRetryPolicy.cs#ILatticeRetryPolicy"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "Retries under the same LatticeIdempotencyContext stamp the same HybridLogicalClock so dedup and merge collapse repeated mutations.",
        "source": "src/lattice/LatticeIdempotencyContext.cs#LatticeIdempotencyContext"
      },
      "concurrency": {
        "rule": "The TTL overload uses the same AlwaysInterleave leaf SetAsync contract as a normal set, with Orleans-serialized HLC tick and LWW merge plus split-gate serialization, and stores the absolute expiry in the LWW value.",
        "source": "src/lattice/BPlusTree/IBPlusLeafGrain.cs#SetAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SetAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#SetAsync"
      ]
    },
    {
      "id": "snapshot",
      "in_process": {
        "interface": "ILattice",
        "method": "SnapshotAsync",
        "signature": "Task SnapshotAsync(string destinationTreeId, SnapshotMode mode, int? maxLeafKeys = null, int? maxInternalChildren = null, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "destinationTreeId",
            "type": "string",
            "required": true
          },
          {
            "name": "mode",
            "type": "SnapshotMode",
            "required": true
          },
          {
            "name": "maxLeafKeys",
            "type": "int?",
            "required": false,
            "default": "null"
          },
          {
            "name": "maxInternalChildren",
            "type": "int?",
            "required": false,
            "default": "null"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "argument-null",
          "condition": "A non-null reference parameter is null."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "Retry the same destination, mode and sizing only when the caller treats an in-progress no-op or a destination-already-exists InvalidOperationException as the prior attempt winning; different parameters while in progress throw.",
        "source": "src/lattice/BPlusTree/Grains/TreeSnapshotGrain.cs#StartSnapshotAsync"
      },
      "idempotency": {
        "idempotent": "conditional",
        "basis": "A duplicate call with the same parameters is a no-op while snapshot state is InProgress, but after completion or destination registration the call is rejected instead of returning a memoized success.",
        "source": "src/lattice/BPlusTree/Grains/TreeSnapshotGrain.cs#StartSnapshotAsync"
      },
      "concurrency": {
        "rule": "The snapshot coordinator is a persistent activation keyed by source tree; it rejects different parameters while InProgress and persists InProgress and phase before shard side effects.",
        "source": "src/lattice/BPlusTree/Grains/TreeSnapshotGrain.cs#StartSnapshotAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SnapshotAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#SnapshotAsync"
      ]
    },
    {
      "id": "survey-orphaned-leaves",
      "in_process": {
        "interface": "ILattice",
        "method": "SurveyOrphanedLeavesAsync",
        "signature": "Task<OrphanedLeafRepairReport> SurveyOrphanedLeavesAsync(string? resumeFrom = null, CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "resumeFrom",
            "type": "string?",
            "required": false,
            "default": "null"
          },
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "OrphanedLeafRepairReport"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "not-supported",
          "condition": "The default interface implementation throws until an implementation supplies the survey."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SurveyOrphanedLeavesAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SurveyOrphanedLeavesAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#SurveyOrphanedLeavesAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#SurveyOrphanedLeavesAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.OrphanRepair.cs#SurveyOrphanedLeavesAsync"
      ]
    },
    {
      "id": "tree-exists",
      "in_process": {
        "interface": "ILattice",
        "method": "TreeExistsAsync",
        "signature": "Task<bool> TreeExistsAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "bool"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        }
      ],
      "retry": {
        "safe": "conditional",
        "policy": "The method is read-only, but only point reads document bounded internal stale-routing retries; client retry policy is not specified.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#TreeExistsAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The operation is read-only.",
        "source": "src/lattice/BPlusTree/ILattice.cs#TreeExistsAsync"
      },
      "concurrency": {
        "rule": "Read-only operation; any access gate denial is surfaced as absent or empty where documented.",
        "source": "src/lattice/BPlusTree/ILattice.cs#TreeExistsAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#TreeExistsAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.AccessGate.cs#TreeExistsAsync"
      ]
    },
    {
      "id": "undo-resize",
      "in_process": {
        "interface": "ILattice",
        "method": "UndoResizeAsync",
        "signature": "Task UndoResizeAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "authorization-denied",
          "condition": "The caller is not authorized for whole-tree LatticeOperation.TreeLifecycle on the tree."
        },
        {
          "error_id": "invalid-operation",
          "condition": "No resize exists to undo (the message names the most recent resize when it was already undone), the persisted resize state is incomplete, or the accepted unwind could not be applied, for example because the old tree has already been purged."
        },
        {
          "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": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "reserved-tree-namespace",
          "condition": "The tree id starts with the internal system tree prefix."
        }
      ],
      "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. Follow an unwind that outlasted the call with IsResizeUndoPendingAsync.",
        "source": "src/lattice/BPlusTree/Grains/TreeResizeGrain.cs#RequestUndoAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#UndoResizeAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.BulkLoad.cs#UndoResizeAsync",
        "src/lattice/BPlusTree/Grains/TreeResizeGrain.cs#RequestUndoAsync"
      ]
    },
    {
      "id": "warm-up",
      "in_process": {
        "interface": "ILattice",
        "method": "WarmUpAsync",
        "signature": "Task WarmUpAsync(CancellationToken cancellationToken = default)"
      },
      "grpc_method": null,
      "transport_scope": "in_process_only",
      "request": {
        "parameters": [
          {
            "name": "cancellationToken",
            "type": "CancellationToken",
            "required": false,
            "default": "default"
          }
        ]
      },
      "response": {
        "type": "void"
      },
      "errors": [
        {
          "error_id": "operation-canceled",
          "condition": "The cancellation token is canceled before or during the operation."
        },
        {
          "error_id": "authorization-denied",
          "condition": "The caller is not authorized to read this tree."
        }
      ],
      "retry": {
        "safe": true,
        "policy": "Retrying repeats read-authorized shard activation probes; in-flight probes are not cancelled but re-probing the same shard only warms it again.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.WarmUp.cs#WarmUpAsync"
      },
      "idempotency": {
        "idempotent": true,
        "basis": "The method writes no tree data and only pre-activates shard and root grains, so repeating it leaves tree contents and configuration unchanged.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.WarmUp.cs#WarmUpAsync"
      },
      "concurrency": {
        "rule": "WarmUpAsync snapshots routing, caps fan-out with SemaphoreSlim to MaxWarmUpParallelism, and each shard probe retries the shard root's warm-up call under the shard activation retry policy.",
        "source": "src/lattice/BPlusTree/Grains/LatticeGrain.WarmUp.cs#WarmUpAsync"
      },
      "sources": [
        "src/lattice/BPlusTree/ILattice.cs#WarmUpAsync",
        "src/lattice/BPlusTree/Grains/LatticeGrain.AccessGate.cs#WarmUpAsync"
      ]
    }
  ],
  "error_taxonomy": [
    {
      "id": "argument-exception",
      "type": "ArgumentException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "A validation argument failed.",
      "source": "src/lattice/BPlusTree/ILattice.cs#ArgumentException"
    },
    {
      "id": "argument-null",
      "type": "ArgumentNullException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "A required reference argument was null.",
      "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#ArgumentNullException"
    },
    {
      "id": "argument-out-of-range",
      "type": "ArgumentOutOfRangeException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "A numeric or TimeSpan argument is outside the accepted range.",
      "source": "src/lattice/BPlusTree/Grains/LatticeGrain.cs#ArgumentOutOfRangeException"
    },
    {
      "id": "authorization-denied",
      "type": "LatticeAuthorizationDeniedException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "The registered access gate denies the operation.",
      "source": "src/lattice/LatticeAuthorizationDeniedException.cs#LatticeAuthorizationDeniedException"
    },
    {
      "id": "crdt-shape-not-registered",
      "type": "LatticeCrdtShapeNotRegisteredException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "A CRDT mode needs a shape that is not registered.",
      "source": "src/lattice/LatticeCrdtShapeNotRegisteredException.cs#LatticeCrdtShapeNotRegisteredException"
    },
    {
      "id": "cursor-registry-pin-exhausted",
      "type": "LatticeCursorRegistryPinExhaustedException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "Opening a point-in-time cursor would push a touched saga-decision registry shard over the pin cap; a multi-shard open can leave pins on shards that accepted their part.",
      "source": "src/lattice/LatticeCursorRegistryPinExhaustedException.cs#LatticeCursorRegistryPinExhaustedException"
    },
    {
      "id": "cursor-snapshot-expired",
      "type": "LatticeCursorSnapshotExpiredException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "A point-in-time cursor snapshot pin expired before the next page.",
      "source": "src/lattice/LatticeCursorSnapshotExpiredException.cs#LatticeCursorSnapshotExpiredException"
    },
    {
      "id": "idempotency-key-mismatch",
      "type": "LatticeIdempotencyKeyMismatchException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "An operationId was reused with a different key set.",
      "source": "src/lattice/LatticeIdempotencyKeyMismatchException.cs#LatticeIdempotencyKeyMismatchException"
    },
    {
      "id": "invalid-operation",
      "type": "InvalidOperationException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "The operation is invalid for the current tree, cursor, saga, WAL, or topology state.",
      "source": "src/lattice/BPlusTree/ILattice.cs#InvalidOperationException"
    },
    {
      "id": "leaf-projection-stale",
      "type": "LeafProjectionStaleException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "A leaf projection cannot satisfy a digest or repair read because the materialized state is stale.",
      "source": "src/lattice/LeafProjectionStaleException.cs#LeafProjectionStaleException"
    },
    {
      "id": "not-supported",
      "type": "NotSupportedException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "The interface default or implementation does not support the requested operation.",
      "source": "src/lattice/BPlusTree/ILattice.cs#NotSupportedException"
    },
    {
      "id": "operation-canceled",
      "type": "OperationCanceledException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "The supplied cancellation token was canceled.",
      "source": "src/lattice/BoundedExponentialRetryPolicy.cs#OperationCanceledException"
    },
    {
      "id": "quota-exceeded",
      "type": "LatticeQuotaExceededException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "A locally-authored public write would exceed a configured tree or tenant quota cap.",
      "source": "src/lattice/LatticeQuotaExceededException.cs#LatticeQuotaExceededException"
    },
    {
      "id": "replication-mode-mismatch",
      "type": "LatticeReplicationModeMismatchException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "The write uses a replication mode incompatible with the tree mode.",
      "source": "src/lattice/LatticeReplicationModeMismatchException.cs#LatticeReplicationModeMismatchException"
    },
    {
      "id": "reserved-tree-namespace",
      "type": "LatticeReservedTreeNamespaceException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "The tree id is reserved for Lattice system trees.",
      "source": "src/lattice/LatticeReservedTreeNamespaceException.cs#LatticeReservedTreeNamespaceException"
    },
    {
      "id": "saturated",
      "type": "LatticeSaturatedException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "A tree storage or fan-out admission seam refused work because the tree is back-pressured; LatticeSaturationSource names the seam. A refused SetManyAsync batch carries UnappliedKeys, a superset of the keys that may not have landed, or null when the outcome cannot be attributed key by key (#5970).",
      "source": "src/lattice/LatticeSaturatedException.cs#LatticeSaturatedException"
    },
    {
      "id": "scan-page-stalled",
      "type": "ScanPageStalledException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "A scan page could not make progress before its stall budget.",
      "source": "src/lattice/ScanPageStalledException.cs#ScanPageStalledException"
    },
    {
      "id": "shard-activation-timeout",
      "type": "ShardActivationTimeoutException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "Shard activation did not complete before the seed timeout.",
      "source": "src/lattice/ShardActivationTimeoutException.cs#ShardActivationTimeoutException"
    },
    {
      "id": "shutting-down",
      "type": "LatticeShuttingDownException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "The silo is stopping and the write was not dispatched.",
      "source": "src/lattice/LatticeShuttingDownException.cs#LatticeShuttingDownException"
    },
    {
      "id": "snapshot-expired",
      "type": "LatticeSnapshotExpiredException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "A snapshot cursor baseline expired or could no longer be loaded.",
      "source": "src/lattice/LatticeSnapshotExpiredException.cs#LatticeSnapshotExpiredException"
    },
    {
      "id": "snapshot-replay-budget-exceeded",
      "type": "LatticeSnapshotReplayBudgetExceededException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "Opening a snapshot cursor would exceed the configured replay entry budget.",
      "source": "src/lattice/LatticeSnapshotReplayBudgetExceededException.cs#LatticeSnapshotReplayBudgetExceededException"
    },
    {
      "id": "state-write-failed",
      "type": "LatticeStateWriteFailedException",
      "grpc_status": null,
      "retryable": "conditional",
      "meaning": "A saga state write kept losing its optimistic-concurrency check after bounded re-attach; Conflict is set and the saga resumes when the same batch is re-submitted under the same operationId.",
      "source": "src/lattice/LatticeStateWriteFailedException.cs#LatticeStateWriteFailedException"
    },
    {
      "id": "tree-not-registered",
      "type": "LatticeTreeNotRegisteredException",
      "grpc_status": null,
      "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; nothing is created.",
      "source": "src/lattice/LatticeTreeNotRegisteredException.cs#LatticeTreeNotRegisteredException"
    },
    {
      "id": "tree-purge-settling",
      "type": "LatticeTreePurgeSettlingException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "A write reached a tree whose purge still holds the tree id: the purge is walking, or has recorded its completion and still owes the removal of the purged tree's registry entry. The write was not committed; the purge's keepalive re-drives its tail about once a minute, so retrying after about a minute succeeds (#5458).",
      "source": "src/lattice/LatticeTreePurgeSettlingException.cs#LatticeTreePurgeSettlingException"
    },
    {
      "id": "wal-provider-missing",
      "type": "LatticeWalProviderMissingException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "A WAL provider key in placement or move input cannot be resolved.",
      "source": "src/lattice/LatticeWalProviderMissingException.cs#LatticeWalProviderMissingException"
    },
    {
      "id": "wal-quiescing",
      "type": "LatticeWalQuiescingException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "A WAL partition is quiescing for a placement move.",
      "source": "src/lattice/LatticeWalQuiescingException.cs#LatticeWalQuiescingException"
    },
    {
      "id": "write-fenced",
      "type": "LatticeWriteFencedException",
      "grpc_status": null,
      "retryable": true,
      "meaning": "A write was fenced by a newer topology, WAL, or placement generation.",
      "source": "src/lattice/LatticeWriteFencedException.cs#LatticeWriteFencedException"
    },
    {
      "id": "write-rejected",
      "type": "LatticeWriteRejectedException",
      "grpc_status": null,
      "retryable": false,
      "meaning": "A write interceptor rejected the write.",
      "source": "src/lattice/LatticeWriteRejectedException.cs#LatticeWriteRejectedException"
    }
  ]
}
