Table of Contents

Class StorageIntegrityReport

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Whole-engine integrity audit produced by RunStorageIntegrityCheck(). IsHealthy is the only assertion callers should care about — every individual issue is reported with enough context to localise the cause without re-running the audit.

public sealed class StorageIntegrityReport
Inheritance
StorageIntegrityReport
Inherited Members

Remarks

The audit reads only in-memory structures (occupancy bitmap, segment registry, page headers via the page cache). It is safe to call at any time and incurs no data-page I/O beyond touching the segment's chain headers.

Constructors

StorageIntegrityReport()

public StorageIntegrityReport()

Properties

IsHealthy

true when Issues is empty.

public bool IsHealthy { get; }

Property Value

bool

Issues

Every issue found in this audit pass, in discovery order. Empty when the engine is healthy.

public IReadOnlyList<StorageIntegrityIssue> Issues { get; init; }

Property Value

IReadOnlyList<StorageIntegrityIssue>

OccupancyBitsSet

Total set bits in the occupancy bitmap when the audit ran. Useful for sizing diagnostics.

public int OccupancyBitsSet { get; init; }

Property Value

int

OrphanPageCount

Count of file pages whose occupancy bit is set but no segment claims them. 0 in a healthy engine.

public int OrphanPageCount { get; init; }

Property Value

int

PhantomPageCount

Count of file pages a segment claims to own but whose occupancy bit is clear. 0 in a healthy engine.

public int PhantomPageCount { get; init; }

Property Value

int

SegmentClaimedPages

Sum of every segment's Pages.Length over the registered-segments registry.

public int SegmentClaimedPages { get; init; }

Property Value

int