Table of Contents

Enum StorageIntegrityIssueKind

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Class of consistency violation surfaced by RunStorageIntegrityCheck(). Every value names an invariant that must hold across a healthy engine — a non-zero issue list is a hard durability / structural bug, not a warning.

public enum StorageIntegrityIssueKind : byte

Fields

ChainDirectoryMismatch = 2

Typhon.Engine.Internals.LogicalSegment<TStore>'s forward header chain (via LogicalSegmentNextRawDataPBID) reaches a different page count than the persisted Page Directory enumerates. Forward-chain canon is on each page header; Page Directory canon is on the root page's raw-data section. If they disagree, one of the two writes lost durability during a Grow.

ChunkSegmentCapacity = 3

A Typhon.Engine.Internals.ChunkBasedSegment<TStore>'s allocated count disagrees with the bits set on its pages, the segment holding still for the count.

ClusterVisibilitySummaryUnsound = 4

A cluster's in-memory MVCC visibility summary claims MORE visibility than the entities it holds justify — its ClusterMaxBorn is below an entity's actual BornTSN, or its ClusterMaxDied is below a DiedTSN an entity carries. The cluster-granularity gate the SoA scan uses to skip its per-entity EntityMap probe would then pass, and the scan would emit a phantom — an entity committed after the reader's snapshot, or a tombstone. Always a maintenance bug at a site that associates an entity with a cluster (spawn commit, WAL replay, either reopen rebuild, spatial cluster migration) and failed to fold the entity's TSNs into the summary.

PopcountOrphan = 0

Occupancy bitmap has a bit set for a file page that no segment claims and is not a reserved root/reserve slot. Sign of a lost write — pages allocated to a segment but the segment's persisted page-list (root-page Page Directory + extension map pages) didn't capture them durably. The on-disk bitmap survived; the segment's directory append did not.

PopcountPhantom = 1

A segment's Pages list references a file page whose occupancy bit is clear — the segment believes it owns a page that is actually free. Catastrophic; means a free could double-allocate that page.

TextChunkOrphan = 6

A text chunk is allocated and no live row or revision names it (#1094, TXT-01): space held until the next crash open's sweep. A leak, never a loss — unless a transaction still holds it, which is why the audit is meaningful only with no transaction in flight.

TextHandleDangling = 5

A live row or a revision names a String1024 text chunk the text segment holds free (#1094, TXT-01): the text is lost, and the next allocation hands the chunk to another entity, which then shares it. Always a lifecycle bug — a free while a value still named the chunk.