Variable mapping

This page is part of 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 variable-mapping.md, and llms.txt lists every page.

Part of Refinement note: the live-advance core to production.

Spec variable Protocol role Code counterpart
next, author The WAL shard's allocator, and the author of each offset WalShardGrain._nextOffset, assigned by WalOffsetAllocationCore.Assign under the shard's state lock. Only entries L owns are modelled; an author is whoever appended an entry L's replay applies.
inflight, durable, acked Allocated and not yet durable; durable; acknowledged to the writer The shard's in-flight flush chain (WalShardGrain.StartFlush), the entries the partition's IWalStorageProvider holds, and appends whose WalShardGrain.AppendAsync or WalShardGrain.AppendStampedAsync completed. A foreign entry counts as acknowledged once handed off to L.
floor The GC trim floor The prefix LatticeWalGc.TrimShardAsync trims, bounded by the leaf's pin at its snapshot's coverage (WalDurability's GcTrim).
up L's running activations Activations of BPlusLeafGrain.
cache Each activation's projection BPlusLeafGrain's entry cache (LeafEntryCache), as the set of owned offsets it holds.
rp Each activation's read position BPlusLeafGrain.GetCurrentCheckpointForPartition; the live advance moves it through BPlusLeafGrain.StampCheckpointHintAsync.
mine The applied-prefix tracker BPlusLeafGrain._liveOwnHigh, the highest own offset applied per partition, recorded by BPlusLeafGrain.MarkLiveAppendApplied. The in-flight own appends are BPlusLeafGrain._liveAppendsUnapplied, counted before every append by BPlusLeafGrain.NoteLiveAppendIssued.
snapCov, snapRows The shared per-leaf snapshot LeafSnapshotBlob.SnapshotOffsetsByPartition and its rows, kept by ILeafSnapshotStorageGrain.SaveAsync.
cur, claimed, claimHead, stale E's guarantees as environment state: the current activation, each claim raised, its head, and the activations that never claim or append stamped again LeafAppendEpochFence.TryGetArmingView returns the claim head under the current epoch; a superseded activation is LeafAppendEpochFence._stale. The epochs themselves are E's (AppendEpochRefinement.md).
dupUsed, restarted, oldUsed, spUsed, windows Environment budgets Modelling devices.
mInit, hoOpen, hoClosedAt H's marker as environment state: initialised, open, and the maximum of the heads every close and the first initialisation recorded LeafHandOffState.Initialised and the shard marker's flag (ShardHandOffState.Initialised), read with HandOffMarkerCore.IsHeldOpen and HandOffMarkerCore.RequiredHead through BPlusLeafGrain.ReadLiveAdvanceHandOffAsync and ShardRootGrain.GetLiveAdvanceViewAsync (LeafLiveAdvanceView).
lastU The partition's unstamped watermark WalShardGrain._unstampedWatermark, raised under the state lock when WalShardGrain.RaisesUnstampedWatermark holds and returned in every stamped append's response.
uSpan, spanRecs, widened (#5851 K1-K6; WithKeyFilter.) The highest unstamped offset keyed in a span outside L's range and those records, the partition's key-range table; whether L's range has absorbed the span. ReportU is the high a response reports: the in-range high while L's range is unwidened; once it has absorbed the span, the widened range's high, which here is the global one The partition's key-range unstamped table, maintained in its append turn and read with the reader's current range in the same turn (#5851's O2c member).
seenU The highest unstamped offset reported to each activation LeafAppendEpochFence.ReportedUnstamped, raised by LeafAppendEpochFence.OnStampedAppended and, for an own unstamped append, LeafAppendEpochFence.OnUnstampedAppended.
recreated, reinit The purge, and the re-created incarnation's first initialisation Environment state for R and H: the tree purge, and ShardRootGrain.FenceRecreatedIncarnationAsync.
phase, hint B's bulk switch, and the leaf's birth hint ShardRootGrain.CaptureBulkBirthHeadsAsync, persisted with ShardRootGrain.WriteBulkBirthHintAsync. A bulk-born leaf is initialised without SiblingInitialization.WalHeadsAtBirth, so it seeds no birth pin; the hint reaches it after the relocation, through ShardRootGrain.FinishBulkSwitchAsync calling BPlusLeafGrain.SetCheckpointOffsetHintsAsync. For a bulk append the applied hint is capped per partition at the old leaf's replay frontier (ShardRootGrain.CapAtReadFrontier, #5752); that only lowers the read position, so it still satisfies BulkHintBound and maps to Create's hint - 1 in head terms. A bulk load caps its hint the same way, per partition at the lowest replay frontier of the leaves of the root it replaced, and applies none when it replaced no root or a replaced leaf reports no frontier (ShardRootGrain.RetireReplacedRootAsync, BPlusLeafGrain.CopyRowsForBulkLoadAsync, #5766).
oldRejected Ghost for OldNeverRejected Modelling device.
preArm The offsets appended under the PreArm class (#5833) WalAppendStamp.PreArm, admitted by WalShardGrain.AdmitStampLocked with no entry check and no row.
seenP The leaf-scoped watermark reported to each activation: its foreignHigh The ForeignHigh the WAL shard folds into each stamped response's watermark (WalShardGrain.ForeignHighLocked), and the arming view it returns (LeafAppendEpochFence.TryGetArmingView).
startHead, evStart, evFloor What the WAL shard's per-leaf tracking has lost: its start head, the last eviction of L's entry, and the eviction floor WalShardGrain.ResetLeafAuthors on activation (the recovered head) and WalShardGrain.FoldLeafAuthorsLocked (the eviction floor, bounding memory at MaxLeafAuthors).
gD, gL The shard root's durable routing generation, and the generation loaded at the partition ShardHandOffState.RoutingGeneration, raised by the split or reclaim close; the WAL shard's loaded generation entry, raised only by a claim (WalShardGrain.AdmitGenerationLocked).
pend, pendGen A deferred close head on L's marker at the partition, and the generation it re-claims HandOffMarkerCore.CloseDeferred, read by HandOffMarkerCore.TryGetPendingDeferred.
moved, otherMoved, dUsed Environment budgets: one key-moving close into L, one into another receiver, one stale donor write Modelling devices.
reclaims, strayReclaims Ghosts for ReclaimCostBound Modelling devices.
sHi, seenS The WAL shard's staleHigh for a pending key-moving close: the highest offset of the donor leaf from any token but the closing one, routed or epoch-only, under every generation while the close is pending: the one the close admitted, or a later one another split's link raised to before this split's link (OtherLinkRaise), never only those at or below the close's admitted generation (cGen; #5866 B1); and the value reported to each activation (#5837, D2) WalShardGrain.StaleHighLocked, kept beside the per-leaf tracking and reported on each response of the receiver while its deferred close is pending (LeafAppendEpochFence.TryGetPreArmView).
cGen The generation the donor's close admitted its writes under, recorded with its pending close The generation a WalPendingClose records, the closing activation's routing generation. Only ReadPositionHonestStaleHighFiltersByAdmittedGeneration reads it: staleHigh must not be filtered by it (#5866 B1).
ft Each activation's fixed free-advance target LeafLiveAdvanceCore.FreeTarget, the highest own applied offset, fixed before the marker view is read.
sh, sibHint, sibRows A split's captured heads, the sibling's hint and the rows handed to it BPlusLeafGrain.CaptureSplitCutAsync, one WAL-shard turn per partition returning the heads with the donor's bounds; the hint the sibling is seeded with (SiblingInitialization.WalHeadsAtBirth).
tRecs The split transfer's records under the per-leaf class BPlusLeafGrain.SplitTransferRoutingFor, appended by the receiver's BPlusLeafGrain.MergeEntriesAsync.
dNarrowed, oblig, sDone, dKnown, dResumed, lRestart A split-born L's donor: its narrow and link obligation, its stragglers, the moved-key writes its closing activation knows, a resume after the heads and a restart after the close LeafNodeState.UnlinkedSplitSiblingId, persisted with the narrow; the straggler sweep of BPlusLeafGrain.CompleteSplitAsync; SplitInFlight for a resume.
lat, eagerG, repair, tried, birthAct The #5709 reachability latch on an unlinked split-born L: its decision, the gate's flip to eager, orphan repair on its range, and whether the running activation is the one its birth created LeafAppendEpochFence's reachability proof (BPlusLeafGrain.ProveStampReachabilityCoreAsync, LeafAppendEpochFence.StopStampingUnreachable); the birth proof in BPlusLeafGrain.InitializeSiblingAsync.
nar, narWho, npend, dur, durWho, fObl, fTag, fBy, snapWho, fwdUsed The forward-exclusion relief (#5837): each activation's narrow in memory and whose it is, its pending persist, L's durable narrow and its obligation, each forward's narrow tag and the narrow that moved its key, and the span the snapshot reflects LeafNodeState's persisted span with UnlinkedSplitSiblingId; the narrow tag on WalAppendStamp.ForwarderTag; the reader's persisted tag on each stamped call (LeafAppendEpochFence.PersistedNarrowTag).
capHint The hint the last split's cap fallback handed its sibling (#5851 O2c); -2 none None: proof bookkeeping for the cap's reachability witness.
svTaken, svOk, svHead The split's marker view (V3): taken, whether it read L's marker initialised and closed, and the close head it read The marker read BPlusLeafGrain.CompleteSplitAsync makes after BPlusLeafGrain.CaptureSplitCutAsync, concurrently with the drain of the donor's own appends.
chainUsed A forward chain through L's stale activation has been made (F2') WalForwardChain, the bounded list of (leaf, tag) forwarders the stamp carries.
fInUsed, fInRecs, sfUsed The donor's pre-link forward into L, its offsets, and a stale D''s forward of L's key into another orphan The forward tag on WalAppendStamp.ForwarderTag, read against the reader's split tag by WalShardGrain's per-donor staleHigh.
oWin, oHops An orphan sibling's marker and the forwards made into it The orphan's LeafHandOffState; BPlusLeafGrain.TryResolveSpanForwardTarget.