---
title: "Deliberate abstraction gaps - Refinement note: the live-advance core to production"
url: "https://nsta1.github.io/Orleans.Lattice/spec/wal/liveadvancecorerefinement/deliberate-abstraction-gaps.html"
source: "https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/spec/wal/LiveAdvanceCoreRefinement.md?plain=1#L483-L761"
documents: "Orleans.Lattice 10.5.0 (release line 10.5)"
built: "2026-12-05"
all-pages: "https://nsta1.github.io/Orleans.Lattice/llms.txt"
---
# Deliberate abstraction gaps

Part of [Refinement note: the live-advance core to production](../LiveAdvanceCoreRefinement.md).

- **A hinted sibling's own capture and persist are not modelled (#5877; a5e2e2ef's H1-H5).**
  C checks what a split hint may claim - every durable record at or below it is in the rows
  handed to the sibling (`SiblingHintHonest`) - and that a capture claims only the read
  position over rows held (`SnapshotHonest`). It does not model the sibling as an
  activation that persists its own checkpoint, so the order production needs at a
  partition never persisted and not yet covered - a capture of the sibling's own cache
  covering the hint lands before the hinted checkpoint is persisted, a failed or declined
  capture persists -1, and every flush path takes that order - is unchecked here. H1 is
  held at the donor: the hint never exceeds the donor's applied frontier unless the cut
  proves the donor read past every bound, pinned by `BPlusLeafGrainTests.SplitHintWithoutBound`,
  `BPlusLeafGrainTests.SplitHintAboveHeads` and
  `BPlusLeafGrainTests.Split_caps_the_sibling_hint_at_the_donors_replay_frontier`, and end
  to end - the sibling's first capture claiming the hint holds every row its donor handed
  it - by
  `BPlusLeafGrainTests.A_hinted_siblings_capture_holds_every_row_its_donor_handed_it_at_coverage_of_at_least_the_hint`.
  The order is pinned by
  `BPlusLeafGrainTests.A_deactivating_hinted_sibling_captures_before_it_persists_its_hint`,
  `BPlusLeafGrainTests.A_due_flush_of_a_hinted_sibling_captures_before_it_persists_its_hint`,
  `BPlusLeafGrainTests.A_hinted_sibling_whose_capture_fails_persists_its_checkpoint_at_minus_one`,
  `BPlusLeafGrainTests.A_failing_store_is_asked_for_a_hint_capture_once_per_tick_never_once_per_flush`,
  `BPlusLeafGrainTests.A_cold_restart_after_a_failed_deactivation_capture_needs_no_repair_for_a_hinted_sibling`
  and `BPlusLeafGrainTests.A_hint_at_a_covered_partition_persists_with_no_new_capture`.
  Production symbols: `BPlusLeafGrain.SetCheckpointOffsetHintsAsync`,
  `BPlusLeafGrain.NoteHintAtUncoveredPartition`,
  `BPlusLeafGrain.CaptureUncoveredHintsBeforePersistAsync`,
  `BPlusLeafGrain.HoldBackUncoveredHints`, `BPlusLeafGrain.RestoreHeldHints`,
  `BPlusLeafGrain.IsHeldUncoveredHint`, `BPlusLeafGrain.FlushPendingCheckpointAsync`.
- **The refresh's descent is exact when it decides (#5876; a5e2e2ef's D1 rule and V1-V5).**
  C's `RefreshReaches` reads whether the batch's keys still reach the stale donor exactly.
  Production's descent resolves to the routing owner, which is the key's owner or a leaf
  that does not own it: before the link the narrowed donor still receives its moved keys
  (359c7fd5's S2 probe: no negative descent named the owner), and a parent that has not yet
  received a completed internal split's separator routes past the narrowed node. In C the
  refresh is reachable only after L's re-claim of the link's generation, so after the link,
  where a decided descent names the owner. Production keeps that exact when it decides
  without settling the whole shard: every internal node on the path answers with its
  declared bounds and a key outside them makes the descent Undecided (V1), a split
  publishes its narrowed bound with its children in one step (V2), only the root-identity
  sites still bracket the descent (V3), the leaf level never chases (V4), and the orphan
  audit uses the same descent (V5). An Undecided descent refuses the refresh, gives the cut
  no hint and lets the orphan audit find nothing. Trusting it is
  `ReadPositionHonestRefreshTrustsUndecidedDescent`, red here against `ReadPositionHonest`,
  `SnapshotHonest` and `NoTrimPastAcked`; the lagging parent is that trace's descent, so it
  needs no step of its own. V1 bounds only the internal levels, so while a split's link
  is held a narrowed donor R is still reached for its unlinked sibling S's keys, and a
  stale activation R' of R whose span predates the narrow can refresh on that positive and
  append an S key as an R write. That is safe by rule S, not by the descent: S's stamps
  carry R's donor close, the WAL shard counts every R activation but the closing one in the
  stale high (B1) and S carries the close until its arm resolves it (G4), so the bound
  reported to S covers R''s write; and the current R's span re-check refuses the key.
  Pinned by
  `WalShardGrainTests.A_stale_donor_activation_refreshing_for_a_held_links_sibling_key_is_counted_in_the_siblings_bound`
  (a5e2e2ef's S1 on #5904). Production pins it:
  `ShardRootGrainDescentVerdictTests.A_parent_lagging_a_completed_internal_split_yields_undecided_never_a_non_owner`,
  `ShardRootGrainDescentVerdictTests.A_link_batch_in_another_subtree_leaves_the_descent_decided`,
  `ShardRootGrainDescentVerdictTests.A_routing_mutation_completing_mid_descent_is_undecided`,
  `BPlusInternalGrainTests.A_split_publishes_its_narrowed_bound_with_its_children_in_one_step`,
  `ShardRootGrainOrphanAuditGapTests.An_audit_descent_through_a_parent_lagging_an_internal_split_finds_nothing`
  and `BPlusLeafGrainTests.An_F1_refresh_during_a_link_batch_does_not_route`, and the
  single-activation case, a donor that narrows while its refresh is in flight, by the
  post-refresh span re-check:
  `BPlusLeafGrainTests.A_refreshed_transfer_whose_keys_left_the_receivers_span_appends_unstamped`.
  No production symbol: C reads reachability as exact, and the descent's verdict is a shard-root guard outside the model.
- **Reachability is exact, with no transient verdict (#5872; a5e2e2ef's R1-R5).** C's
  `ProveReach` reads L's reachability exactly. Production may read a transient unreachable
  verdict, so it never latches on one: the leaf goes undecided, appends unstamped through a
  backoff - never `PreArm`, never a claim - and latches only on a second unreachable read
  or a structural witness. That only delays the latch toward the safe side, since an
  unstamped write is reported to every reader. Stamping `PreArm` while undecided would hide
  a real orphan's writes from their owner, the shape
  `ReadPositionHonestDeferredSiblingStampsUnrouted` already makes red here, so a transient
  step would repeat that trace. Production pins it:
  `BPlusLeafGrainTests.A_reachable_leaf_whose_view_reads_unreachable_once_appends_unstamped_then_is_proven`,
  `BPlusLeafGrainTests.A_leaf_unreachable_on_both_reads_across_the_backoff_latches`,
  `BPlusLeafGrainTests.A_structural_witness_latches_on_the_first_unreachable_verdict`,
  `BPlusLeafGrainTests.A_transient_unreachable_verdict_at_the_split_cut_takes_no_hint_and_does_not_latch`
  and `LeafAppendEpochFenceTests.An_undecided_activation_stamps_null_never_pre_arm`.
  Production symbols: `BPlusLeafGrain.ReadLiveAdvanceHandOffAsync`.
- **A key-moving link is one atomic step (#5866 G1, G2; a5e2e2ef's AG1).** `KeyMove` links
  L, raises the shard's routing generation and closes L's marker in one turn, and
  `LinkWitness` follows it. C therefore checks neither a witness that lands before the
  donor's close (G1) nor a sibling reachable while its own raise has failed (G2): `moved`
  in `LatchAdmitsClaim` implies a durable raise here, not in production. Production pins
  both: `ShardRootGrainSplitLinkTests.A_split_link_never_closes_its_sibling_marker_and_witnesses_its_own_link_after_the_raise`,
  `HandOffMarkerCoreDonorBoundTests.A_witness_that_lands_before_the_donors_close_resolves_the_close_written_after_it`
  and `BPlusLeafGrainTests.A_link_witnessed_before_the_donors_close_leaves_no_close_pending`
  for G1; `ShardRootGrainSplitLinkTests.A_split_link_whose_raise_fails_leaves_its_donor_unacknowledged`
  and `BPlusLeafGrainTests.A_reachable_sibling_whose_link_is_unwitnessed_stays_deferred_and_never_claims_under_the_eager_gate`
  for G2.
  Production symbols: `ShardRootGrain.WitnessSplitLinksAsync`, `HandOffMarkerCore.IsPendingDonorBound`.
- **One partition carries the close (#5866 G4; a5e2e2ef's AG2).** C has one WAL partition,
  so the carried close's per-partition resolution - an arm at one partition resolves it
  there alone while another stays carried - is unchecked: here resolution at the
  partition ends the carry. Production pins it:
  `HandOffMarkerCoreCarryTests.An_arm_at_the_witness_raises_that_partitions_head_and_resolves_it_alone`,
  `LeafAppendEpochFenceTests.A_carried_close_resolved_at_one_partition_is_dropped_from_its_stamps_only`
  and `BPlusLeafGrainTests.The_backstop_arms_a_binding_carried_partition_once_and_resolves_it_with_the_re_claim_head`.
  Production symbols: `HandOffMarkerCore.WitnessLink`.
- **The key-range table has one single-key record and no overflow (#5851 K1, K3, K5).** C
  tables one unstamped record of one key, never overflows the table, and never evicts it.
  A multi-key record (a batch, an atomic prepare) must count for every reader whose range
  overlaps any of its keys or go to the floor (K3), and an overflow max-folds into the
  floor (K1); both only raise the high a reader reads, so neither can lose a write the
  model would find. A WAL shard restart floors every high at the restart floor (K5), as
  `Restart` already does for `lastU`. Production pins them:
  `WalShardGrainTests.UnstampedMultiKeyRecordBoundsEveryReader` (K3),
  `WalShardGrainTests.UnstampedBatchWriteTabledByKey`,
  `WalShardGrainTests.UnstampedTableOverflowFoldsIntoFloor` (K1) and
  `WalShardGrainTests.UnstampedFilterRestartFloor` (K5).
  No production symbol: the key-range table is new in #5851's O2c member; this gap is about the model's single-record table.
- **A linked L never becomes unreachable (#5866 B2).** C models no unlink, fold or
  orphaning after L's link, so a leaf whose donor's bound has resolved is always reachable
  and proven. The rule that an unreachable leaf with a resolved close latches, as #5709
  requires, rather than deferring, has no red trace here: a resolved close that kept
  deferring (the ResolvedCloseStillDefers mutation) would let a leaf stamp PreArm for keys another
  leaf owns, visible only through its own scoped watermark, and C has no second owner to
  miss them. `BPlusLeafGrainTests.A_sibling_whose_own_link_is_witnessed_but_is_unreachable_latches`
  pins it in production.
  Production symbols: `HandOffMarkerCore.IsPendingDonorBound`, `LeafAppendEpochFence.OnReachabilityDeferred`, `BPlusLeafGrain.ReadLiveAdvanceHandOffAsync`.
- **The claimless advance's tracking is one entry per role (#5837).** One donor leaf, one
  key-moving close and one stale donor stand for the WAL shard's per-donor `staleHigh`
  table (top two tokens per generation, with the restart and eviction floors), and one
  orphan for every forward chain. The forwarder attribution needs a WAL-shard capability
  that honours the stamp's forwarder field; without it a pre-link forward falls back to
  unstamped (F3), which the model does not represent. The read of `staleHigh + 1` in the
  re-claim's own WAL turn is one step here.
  Production symbols: `WalShardGrain.StaleHighLocked`, `WalShardGrain.NoteLeafAuthorLocked`.
- **The forward-exclusion relief's table (#5837, X5-X8).** One tag eviction and one WAL
  shard restart stand for the top-two per-tag forward table's evictions and losses. Two
  rows are refinement obligations the model does not represent: the reader's tag comes
  only from a narrow whose persist succeeded (X7), and a WAL shard restart forgets the
  table into the start-head floor (X8), which the model checks only through `Restart`'s
  floors (`ForwardHonestForwardTableLostOnRestart`). The model found that evicting a
  leaf's foreign-high entry must fold its forwards' high, the empty token's, with its
  activations' (`ForwardHonestEvictionDropsForwardHigh`).
  Production symbols: `WalShardGrain.FoldLeafAuthorsLocked`, `WalShardGrain.ResetLeafAuthors`.
- **The eviction floor is per leaf here and in production (#5851 O2b; #6166).** C keeps L's
  own floor at exactly L's evicted high, the tightest sound value, and production now keeps
  the same value: each evicted leaf's high in a sorted array, max-merged when a leaf is
  evicted again, read by L as the maximum of its own entry, its own evicted high and the
  restart floor. A bit filter in front of the array is only a negative answer - a clear bit
  proves L was never evicted, a set bit falls through to the search - so it changes no
  value. A WAL shard restart drops every evicted high and resets to the start-head floor.
  Production previously folded evicted leaves into hashed buckets, each the maximum of the
  highs evicted into it; that refined C too but held back every leaf sharing a bucket, and
  a large tree's folds raised every bucket. A fold to the minimum of the evicted
  highs does not refine it: it is `ReadPositionHonestEvictionDropsForeignHigh` when L is not
  the minimum. Which leaf is evicted (median, LRU, or a larger table) is a cost choice the
  nondeterministic `Evict` already covers.
  Production symbols: `WalShardGrain.FoldLeafAuthorsLocked`, `WalShardGrain.MergeEvictedLocked`.
- **The forward relief's assumptions and limits (#5837; a5e2e2ef's S-b, N-a to N-d).**
  Chain hops are never excluded (S-b): F2' allows each hop's reader to exclude the records
  of the narrow its persisted span is (X1, per hop), but the model counts every chain
  record in L's `foreignHigh` (`ChainFwd`), and production does the same, at the cost of
  at most a replay past a record the reader already applied;
  `LeafLiveAdvanceCoreTests.ChainHopsAreNeverExcluded` pins it, so a later exclusion comes
  back to the model first. `EvictTag` folds every tag's forward high into the floor every
  reader counts (N-c), where production's table folds only the evicted tag's, a subset,
  so the model's floor over-approximates. `ReadPositionHonest`, `SnapshotHonest` and
  `NoTrimPastAcked` skip a donor's forward of a key L no longer owns (N-b), which is sound
  only because the sibling that owns the key applies it and pins the WAL until it does
  (condition (c) of the split's transfer); `ForwardHonest` and `SnapshotForwardHonest`
  check the forwards L does own. `StaleHighExcludesReceiverTag` holds while the WAL
  shard's per-tag table holds the forward (N-a); after a WAL shard restart the table is
  gone and `staleHigh` falls back to the start-head floor, which counts the receiver's own
  forwards too, so the exclusion is a cost relief and the fallback only over-counts. A
  reactivated reader excludes by the tag of its persisted narrow (N-d), read from durable
  state that survives the link (`LeafNodeState`); a reader with no durable tag counts
  every forward, which costs a replay and never passes a record.
  Production symbols: `WalShardGrain.StaleHighLocked`, `LeafAppendEpochFence.PersistedNarrowTag`, `LeafNodeState`.

- **The liveness property excludes a current activation that has fallen off the log.**
  `NewbornPinEventuallyUsable` is discharged by `CurrentFellOffLog`: the GC trimmed an
  entry the current activation must still replay. Production reaches that state through a
  duplicate activation. The leaf's WAL pin is one per-leaf row merged monotonic-max
  (`WalMaterialiserPinGrain`), so the duplicate's capture raises it past the current
  activation's checkpoint and the GC trims past it. Production's response is the
  existing #3477 path: the replay throws `LeafProjectionStaleException`, the warm rescue
  (`BPlusLeafGrain.TryRescueWarmStaleLeafAsync`) declines, and the partition is latched
  stale (`BPlusLeafGrain.LatchProjectionStaleDriveAsync`). The latch
  (`BPlusLeafGrain.IsPartitionStaleLatched`) refuses checkpoint hints and the live advance
  until deactivation, and the reactivation rehydrates from the newer snapshot. No
  progress is owed meanwhile. The path is driven end to end, with the real WAL store, pin
  grain, snapshot storage and GC, by
  `BPlusLeafGrainTests.A_duplicate_activations_pin_trims_the_current_activation_off_the_log_and_it_latches_stale`
  (the latch, the refused hint and the refused live advance) and
  `BPlusLeafGrainTests.A_reactivation_after_the_duplicate_trim_rehydrates_the_newer_snapshot_and_loses_no_key`
  (every key of both activations served after the rehydrate). Disabling the latch turns
  both red, and that red proof ran in CI: run 41693299334 failed all four
  parameterised cases of those two tests. The latch's own detectors are
  `BPlusLeafGrainTests.A_stale_latched_partition_never_live_advances`,
  `BPlusLeafGrainTests.A_checkpoint_hint_does_not_advance_a_stale_latched_partition` and
  `BPlusLeafGrainTests.A_latched_stale_leaf_still_faults_a_direct_drive_without_replaying`;
  rehydrating from a newer snapshot is pinned by
  `BPlusLeafGrainTests.Activation_rehydrates_cache_from_snapshot_when_offset_exceeds_checkpoint`
  and `LeafSnapshotRehydrateIntegrationTests.Snapshot_capture_persists_blob_and_rehydrate_serves_keys_after_deactivation`.
  Production symbols: `WalMaterialiserPinGrain`, `LeafProjectionStaleException`, `BPlusLeafGrain.TryRescueWarmStaleLeafAsync`, `BPlusLeafGrain.LatchProjectionStaleDriveAsync`, `BPlusLeafGrain.IsPartitionStaleLatched`.
- **CI does not check a purge's unclaimed survivor with both a hand-off window and a 10.2.0 silo.**
  When the purge finds the born activation unclaimed, it may claim afterwards as the
  re-created incarnation's. That slice with every other environment of `Recreate` was
  checked locally and is clean at 8,913,193 distinct states (232 seconds), but it is over
  the 5M-state case budget, and cannot be cut further by
  scenario: splitting it by whether the window opens, or the silo appends, before or
  after the purge, or by whether the duplicate exists at the purge, leaves each half at
  6.5M to 7.5M, because those reachable states coincide whatever the order of the
  steps. It is checked in two halves instead: `RecreateSurvivor` (4,638,713 states) gives
  the survivor the hand-off window without the silo, and `RecreateSurvivorMixed`
  (1,622,161) gives it the silo's unstamped append without the window. What the
  survivor adds to the purge - its claim after it, its own appends, and the claim head,
  close heads and reported unstamped offsets it must read before it arms - meets each
  of those environments in one of them. Only an interleaving needing a foreign record
  and the silo's append at once, around the survivor's claim, is left to the local check;
  the claimed purge (`Recreate`) checks that interleaving in CI for every other activation.
  No production symbol: a model-budget scoping of which environments one configuration combines, not a production mechanism.
- **Production holds the advance in more cases than `Armed`.** The model arms on the
  design's six conditions. Production also holds the advance while a saga prepare is
  pending, while another replay or a warm rescue is in flight, while the partition is
  latched stale, while the leaf may share keys with another live leaf (no shard index, a
  rangeless leaf with siblings, a suspected orphan), while the storage provider is not
  known to enforce ETags, and while one advance is already deciding. Each only holds the
  advance, so the model over-approximates production here.
  Production symbols: `LeafLiveAdvanceCore.IsQuiescent`, `BPlusLeafGrain.IsLiveAdvanceOverlapExcluded`, `BPlusLeafGrain.IsLiveAdvanceQuiescent`, `GrainStorageFencingCheck`.
- **The marker read is atomic with the advance.** Production reads the leaf's marker and
  its shard root's view fresh, after snapshotting its own appends, and then stamps the
  target; a hand-off that opens between the read and the stamp allocates only above every
  own append the snapshot holds. That holds because the snapshot
  (`BPlusLeafGrain.SnapshotLiveAdvanceCandidates`) is taken synchronously before the
  marker read is awaited, every target is capped at the snapshot's own high offset, and the
  arming view (`LeafAppendEpochFence.TryGetArmingView`) is read after the marker, so only
  fresher. The model reads the marker in the step that advances, so it cannot express that
  order. The detector
  `BPlusLeafGrainTests.A_hand_off_opening_during_the_marker_read_cannot_carry_the_advance_past_its_foreign_record`
  (#5768) pins it: a hand-off opens while
  the marker read is in flight, allocates a foreign record, and an own append lands above
  it, and the advance must stay below that record. Taking the snapshot after the read turns
  it red. The design's `FrozenView`, a superseded activation that keeps the marker
  state it last saw, is not carried: production reads
  fresh on every tick, and a superseded activation never arms at all, because
  `LeafAppendEpochFence.TryGetArmingView` answers false once it is stale. The model's
  `Armed` still lets a stale but claimed activation arm, a safe over-approximation.
  Production symbols: `BPlusLeafGrain.TryAdvanceLiveCheckpointAsync`, `BPlusLeafGrain.ReadLiveAdvanceHandOffAsync`, `ShardRootGrain.GetLiveAdvanceViewAsync`, `BPlusLeafGrain.SnapshotLiveAdvanceCandidates`, `LeafAppendEpochFence.TryGetArmingView`.
- **Refusals that allocate nothing.** A definite refusal - a self-fenced append, a stale
  generation, a clock-floor refusal - leaves no own record, and production releases its
  tracker count. Here an own append is always allocated, so the release is not modelled;
  a refusal released wrongly would be an apply the tracker never saw.
  Production symbols: `BPlusLeafGrain.DrainRefusedUnallocatedAppends`, `LeafAppendEpochFence.TakeRefusedUnallocated`.
- **One partition, one leaf, two activations.** Production advances each partition over
  its own appends with its own claim head, close heads and watermark; the model has one.
  Other leaves of the partition appear only as authors of entries L does not own, which
  L's replay skips, and are not modelled. Each environment step happens at most once, and
  the variants do not combine.
  Production symbols: `BPlusLeafGrain._liveOwnHigh`.
- **Re-claims.** Each activation claims once. Production re-claims after a WAL shard
  restart unloads its entry, after a bump, and after its own hand-off close, each moving
  the claim head up and disarming the activation until it replays to it. The model keeps
  the first claim head across a restart, which arms more often, so the watermark's reset
  is load-bearing here (`ReadPositionHonestRestartForgetsUnstamped`).
  Production symbols: `LeafAppendEpochFence.OnUnloaded`, `LeafAppendEpochFence.FenceSplitAsync`.
- **The duplicate's own snapshot and the purge's trim.** The re-created incarnation's
  activation starts from the shared snapshot the purged one left, and the purge trims no
  entry here; production clears the purged tree's snapshot and trims its WAL. Both only
  remove entries the model keeps for the re-created incarnation to read.
  Production symbols: `LeafSnapshotStorageGrain.MergeMonotone`, `LatticeWalGc.TrimShardAsync`.
- **The unreachable leaf's tick re-check.** A leaf whose tick finds it unreachable stops
  stamping for the activation (#5709); the model covers its appends as own unstamped appends
  (`OwnAllocUnstamped`) and does not model reachability.
  Production symbols: `LeafAppendEpochFence.StopStampingUnreachable`.
- **The lazy arm's tracking and partitions are abstracted (#5833).** The WAL shard keeps
  the top two distinct activations of a leaf by high offset, keyed by a per-activation
  token; the model reads `foreignHigh` off the authors of every offset since the shard
  last forgot, which is the value the top two return. One partition stands for each the
  leaf arms at: a batched arm across partitions is a production cost decision, and a
  partition the batch misses is an arm without a claim there
  (`ReadPositionHonestArmWithoutClaim`). The arm's epoch claim is E's; the core models its
  outcome. One stale donor write and one later receiver bound the key-moving environment.
  Production symbols: `WalShardGrain.NoteLeafAuthorLocked`, `WalShardGrain.ForeignHighLocked`, `LeafAppendEpochFence.ArmAsync`, `BPlusLeafGrain.ArmForLiveAdvanceAsync`.

Previous: [Property classification (issue #2321)](property-classification-issue-2321.md). Contents: [Refinement note: the live-advance core to production](../LiveAdvanceCoreRefinement.md).
