Table of Contents

Manifests and descriptors

This page documents Orleans.Lattice.Backup 10.5.0, in the documentation for Orleans.Lattice 10.5.0 (release line 10.5), built 2026-12-05. It is also published as markdown, with every table and list, at manifests-and-descriptors.md, and llms.txt lists every page.

Part of Orleans.Lattice.Backup API reference.

BackupManifest

The self-describing record of one backup.

  • Constructor: BackupManifest(string id, string name, DateTimeOffset createdAtUtc, BackupKind kind, BackupScopeSelector scope, BackupConsistencyCut consistencyCut, BackupTopologySnapshot topology, string structuralDigest, IReadOnlyList<BackupKeyDescriptor> keyDescriptors, IReadOnlyList<BackupContentDescriptor> contentDescriptors, IReadOnlyList<BackupOriginProvenance> provenance, string? baseBackupId = null, BackupCompressionDictionaryRef? compressionDictionary = null, string? capturingClusterId = null). Validates that id is non-empty and free of the reserved unit-separator (U+001F); that structuralDigest is non-empty; that an Incremental backup carries a non-empty baseBackupId and a Full backup carries none; and null-checks the reference-type members.
  • Properties: string Id, string Name, DateTimeOffset CreatedAtUtc, BackupKind Kind, BackupScopeSelector Scope, BackupConsistencyCut ConsistencyCut, BackupTopologySnapshot Topology, string StructuralDigest, IReadOnlyList<BackupKeyDescriptor> KeyDescriptors, IReadOnlyList<BackupContentDescriptor> ContentDescriptors, IReadOnlyList<BackupOriginProvenance> Provenance, string? BaseBackupId, BackupCompressionDictionaryRef? CompressionDictionary, string? SetId, string? SetName, DateTimeOffset? SetCreatedAtUtc, string? CapturingClusterId, DateTimeOffset? LastCapturedAtUtc. SetId, SetName, and SetCreatedAtUtc are non-null only on a backup captured as a member of a multi-tree set: every member of one set shares the same values, so a catalog consumer can group the per-tree members into a single logical entry from a first-class fact rather than inferring it from the backup name, and the catalog index orders the members to one shared position. They are stamped when the set is captured, and a member's catalog row is first registered by that stamp; because re-registering a backup id replaces every field except the capture times (see ILatticeBackupCatalogStore.RegisterAsync), a later capture that reproduces a member's bytes - a standalone capture of the unchanged tree, or its capture into another set - re-registers that member with the later capture's set fields. A member of a set that fails, or of a discarded cross-tree attempt, is registered with them null. A single-tree set leaves them null, so it lists as an ordinary backup. CapturingClusterId names the cluster that authored the capture (distinct from the per-entry origins in Provenance); it is stamped on every capture, an incremental inherits its base's value so a whole chain shares one stamp, and null marks a manifest captured before the stamp existed (read as the local cluster). LastCapturedAtUtc is when the backup was last captured, or null while it has been captured only once: a capture that reproduces a backup's bytes republishes it, keeping its first CreatedAtUtc, and records itself here. Retention ranks a backup by the later of the two, so a backup a capture has just returned is never pruned as old; a manifest written before the field existed ranks by CreatedAtUtc.

BackupConsistencyCut

The causal cut a backup was taken as of.

  • Constructor: BackupConsistencyCut(long walSequence, long hlcTimestamp, IReadOnlyDictionary<string, long>? perOriginFrontier = null, IReadOnlyDictionary<int, long>? walPartitionOffsets = null, IReadOnlyList<Guid>? undecidedSagaIds = null). Throws ArgumentOutOfRangeException when walSequence or hlcTimestamp is negative.
  • Properties: long WalSequence, long HlcTimestamp, IReadOnlyDictionary<string, long>? PerOriginFrontier, IReadOnlyDictionary<int, long>? WalPartitionOffsets (the per-partition resume offsets an incremental layers on), IReadOnlyList<Guid>? UndecidedSagaIds (the atomic writes the capture held pre-saga because they were undecided at its decision gate; null for a manifest captured before the field existed). HlcTimestamp is the wall-clock component of the highest hybrid-logical-clock stamp the capture read - over the captured entries for a full backup, over the drained delta for an incremental (never below its base's) - and 0 only when the capture (with its whole chain) read nothing, or for a full backup captured by a build that predates this frontier. It is also the frontier an incremental pins the WAL at while it drains forward from its base.
  • What a capture records besides HlcTimestamp: a full capture sets WalSequence to the highest next-to-assign WAL offset across the shards and partitions its snapshot covered, and WalPartitionOffsets to the per-partition WAL heads read just before the snapshot opened. An incremental sets WalPartitionOffsets to the per-partition frontier its drain reached - held back to the first record of any atomic write it left out because the write was still undecided, so the next incremental reads that write again - and WalSequence to the highest of those offsets. Both kinds set UndecidedSagaIds: a full capture to the atomic writes pending and undecided in its snapshot, an incremental to those of its base's that are still undecided, so the next incremental looks each one up (#4589). PerOriginFrontier is null when the captured entries name no origin.

BackupTopologySnapshot

  • Constructor: BackupTopologySnapshot(int shardCount, int virtualShardCount, IReadOnlyList<string> shardRootDigests). Throws ArgumentOutOfRangeException when shardCount or virtualShardCount is not positive, ArgumentNullException when shardRootDigests is null.
  • Properties: int ShardCount, int VirtualShardCount, IReadOnlyList<string> ShardRootDigests.
  • What a capture records: all three come from the tree's routing map at the capture. ShardCount is the number of physical shards the map names, VirtualShardCount is the map's slot count (4096 unless the tree was created with a declared virtual shard count), and ShardRootDigests holds one digest per physical shard in ascending shard-index order - the digest of the captured range on that shard, or nodigest-{index} when the tree does not maintain projection digests. The indices need not be contiguous: a shard consolidation that folds a shard away leaves a gap.

BackupKeyDescriptor

Per-key shape and merge mode.

  • Constructor: BackupKeyDescriptor(string key, BackupKeyMergeMode mergeMode, string? originId = null). Throws ArgumentException when key is null/empty.
  • Properties: string Key, BackupKeyMergeMode MergeMode, string? OriginId.

BackupContentDescriptor

Describes one stored artifact.

  • Constructor: BackupContentDescriptor(string artifactId, string contentHash, long byteLength, int chunkCount, BackupScopeSelector scope). Throws ArgumentException (artifactId or contentHash null/empty), ArgumentOutOfRangeException (byteLength or chunkCount negative), ArgumentNullException (scope null).
  • Properties: string ArtifactId, string ContentHash, long ByteLength, int ChunkCount, BackupScopeSelector Scope.

BackupOriginProvenance

Per-origin high-water mark.

  • Constructor: BackupOriginProvenance(string originId, long highWaterSequence). Throws ArgumentException (originId null/empty), ArgumentOutOfRangeException (highWaterSequence negative).
  • Properties: string OriginId, long HighWaterSequence.

BackupCompressionDictionaryRef

Reference to the compression dictionary a backup's artifacts were encoded against.

  • Constructor: BackupCompressionDictionaryRef(string dictionaryId, string digest). Throws ArgumentException when either is null/empty.
  • Properties: string DictionaryId, string Digest.

BackupSetManifest

The record grouping a backup set's members.

  • Constructor: BackupSetManifest(string? setId, string name, DateTimeOffset createdAtUtc, bool crossTreeConsistent, BackupSetFence? fence, IReadOnlyList<string> memberBackupIds). Throws ArgumentException (setId empty, name null/empty, memberBackupIds empty), ArgumentNullException (memberBackupIds null). A null setId is the absence of an id and is accepted; an empty one is a malformed id and is rejected.
  • Properties: string? SetId, string Name, DateTimeOffset CreatedAtUtc, bool CrossTreeConsistent, BackupSetFence? Fence, IReadOnlyList<string> MemberBackupIds.
  • SetId is non-null only for a set spanning two or more trees. Membership is durable only as the per-member BackupManifest.SetId stamp, and a single-member set is deliberately left unstamped, so it reports no id rather than one that matches no catalog row. A non-null SetId here therefore equals the SetId stamped on every member's catalogued manifest when the set was captured.

BackupSetFence

The selected cross-tree causal fence of a cross-tree-consistent set.

  • Constructor: BackupSetFence(long hlcTimestamp, int drainedInFlightCount, double drainWaitMilliseconds, int attempts). Throws ArgumentOutOfRangeException when hlcTimestamp, drainedInFlightCount, or drainWaitMilliseconds is negative, or attempts is not positive.
  • Properties: long HlcTimestamp (the wall-clock tick count at which the fence was selected), int DrainedInFlightCount, double DrainWaitMilliseconds, int Attempts.