Property 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 property-mapping.md, and llms.txt lists every page.

Part of Refinement note: WAL durability lifecycle to production.

Spec property Code-level property it abstracts Detector
AckedWriteDurable An acknowledged write survives a crash of its owner: the owner's durable snapshot and the readable WAL rebuild it. Yes: WalDurabilityLifecycleCoyoteTests.The_lifecycle_loses_no_acknowledged_write_under_crash_anywhere_recovery, which drives LeafDurablePinCore, WalGcTrimCore, WalShippingWatermark, WalOffsetAllocationCore and WalFallOffCore under crash-anywhere interleavings; its [AckedWriteDurable] assertion is what reports WalDurabilityLifecycleCoyoteTests.Removing_one_fix_is_caught_by_the_assertion_it_protects with an append acknowledged before its flush lands (AckBeforeFlush).
TrimCoveredBySnapshot The GC never trims an acknowledged write its owner's durable snapshot does not hold (#4017's invariant). Yes: LeafDurablePinCoreTests.A_covered_partition_is_entitled_to_the_lower_of_its_persisted_checkpoint_and_coverage, BPlusLeafGrainTests.Capture_during_a_cold_rebuild_never_claims_coverage_its_rows_lack and WalDurabilityLifecycleCoyoteTests.The_lifecycle_loses_no_acknowledged_write_under_crash_anywhere_recovery, whose model resolves the pin through LeafDurablePinCore and trims through WalGcTrimCore.
ReadPositionHonest A leaf never serves a projection whose read position has passed an acknowledged write it owns and does not hold. Its one carve-out is a write a purge deleted (deleted): the leaf's own purge marker is the commit point, so recovery re-creating that leaf empty is the contract, not a loss, and a leaf the purge never reached keeps every write (issue #4700). Yes: PurgeRecoveryIntegrationTests.A_leaf_the_purge_never_reached_is_not_re_created_empty_by_recovery (a leaf the purge never reached keeps every write: red when the purge's mark is shard-wide), VanishedLeafRowIntegrationTests.Vanished_leaf_row and TreeDeletionIntegrationTests.RecoverTree_does_not_re_create_a_rowless_leaf_no_purge_cleared (a rowless leaf on a shard that has not begun a purge fails closed), BPlusLeafGrainTests.ProjectionCheckpointOffset_advances_past_the_last_scanned_entry_not_the_last_applied_one, BPlusLeafGrainTests.Cold_rebuild_over_a_lost_prefix_throws_and_never_captures, BPlusLeafGrainTests.Failed_snapshot_load_over_a_trimmed_wal_prefix_fails_the_replay_instead_of_coming_up_from_the_suffix and BPlusLeafGrainTests.A_cold_rebuild_that_faults_part_way_is_retried_cold_not_resumed_warm; at the model level WalDurabilityLifecycleCoyoteTests.Removing_one_fix_is_caught_by_the_assertion_it_protects with a cold start that resumes at the persisted checkpoint over an empty projection (ColdStartResumesFromCheckpoint), reported by [ReadPositionHonest].
ClearRecorded Every leaf a purge cleared keeps its own marker until recovery re-creates it, so recovery can always name it; a clear without the marker, or a marker dropped first, leaves a leaf failing closed for ever. Yes: BPlusLeafGrainTests.Purge_clear_marks_the_row_record_before_the_row_is_cleared_and_keeps_it and LeafRowRecordGrainTests.MarkPurgeClearedAsync_that_fails_to_write_leaves_the_record_unmarked (no clear without the mark), PurgeRecoveryIntegrationTests.Every_leaf_a_purge_cleared_is_re_created_even_beyond_one_recovery_pass (a walk truncated at its node budget strands no leaf: red on the shard-wide flag), PurgeRecoveryIntegrationTests.A_leaf_whose_purge_clear_was_interrupted_part_way_is_re_created_by_recovery (a refused re-create strands no leaf) and BPlusLeafGrainTests.Recovery_whose_first_row_write_fails_keeps_the_purge_mark_and_a_retry_re_creates_the_leaf (the mark is reset only after the row is durable).
ShippingNeverSkips No reader is shown an offset above a still-unfilled prefix hole. Yes: WalShippingWatermarkCoyoteTests.Watermark_never_ships_an_offset_above_a_prefix_hole and WalShippingWatermarkTests.The_first_in_flight_offset_is_never_exposable_and_the_one_below_it_is. Also WalDurabilityLifecycleCoyoteTests.The_lifecycle_loses_no_acknowledged_write_under_crash_anywhere_recovery: its reader asks the watermark about exactly the first in-flight offset, so a watermark that exposes that offset (an off-by-one) is reported by [ShippingNeverSkips]. WalShippingWatermarkCoyoteTests lands a flush atomically and cannot see that boundary; the boundary unit test pins it directly.
LogPrefixApplied No entry ever becomes readable below a reader's position: every readable entry a leaf owns at or below its read position is in its projection, acknowledged or not, so an abandoned append that lands late lands only above every reader (issue #4621). Yes: WalShardGrainTests.ReadAsync_never_exposes_an_offset_above_an_abandoned_flush_that_can_still_land, WalShardGrainTests.A_reactivated_shard_is_held_below_its_predecessors_abandoned_flush_until_it_settles and WalShardGrainTests.A_head_a_reader_resumes_from_never_passes_an_offset_a_recovered_allocator_can_reissue.
OffsetContiguity No acknowledged offset is reissued; every assigned offset is below the allocator. Yes: WalOffsetContiguityCoyoteTests.Atomic_assign_keeps_every_offset_unique_and_dense and WalOffsetAllocationCoreTests.A_recovered_allocator_resumes_one_past_the_highest_stored_offset.
AckedOccupies An acknowledged write keeps its offset while it is stored: no late-landing abandoned call or reissue displaces it (issue #5799). Two layers keep it: the allocator never re-seeds beneath a visible call in motion, and the store's rows are create-only; cross-silo, the TAIL commit fence. It goes red only when both fail (AckedOccupiesRewindWithoutCreateOnly); each alone keeps it (see the redundancy checks), which is #5799's damage assessment: the rewind alone overwrote no row. Yes: WalShardGrainTests.Two_activations_issuing_the_same_offset_never_displace_the_acknowledged_write, AzureTableWalStorageProviderOverlapIntegrationTests.A_late_manifest_row_from_an_abandoned_submit_never_displaces_an_acknowledged_batch and AzureTableWalStorageProviderOverlapIntegrationTests.A_second_writer_reissuing_an_acknowledged_batchs_offsets_is_refused_and_changes_no_row.
AllocatorAboveOrphans The allocator never hands out an offset at or below an abandoned call still in motion that the shard's activation can see (issue #5799). A predecessor's call on another silo is invisible to it; there AckedOccupies and OffsetWrittenOnce rest on the TAIL commit fence. Yes: WalShardGrainTests.A_resync_never_reissues_an_offset_beneath_a_successor_flush_still_in_motion, WalShardGrainTests.A_reactivated_shard_never_reissues_an_offset_beneath_its_predecessors_abandoned_flush and WalShardGrainTests.A_window_that_settles_during_the_tail_read_is_still_skipped.
OffsetWrittenOnce No offset is written twice: two batches with different start offsets never both hold one (issue #5810). Today's provider without the fence broke it (OffsetWrittenOnceStaleWriterUnfenced): a predecessor's late batch on another silo landed over a successor's acknowledged batch, and every read then yielded the shared offsets twice. Yes: AzureTableWalStorageProviderOverlapIntegrationTests.A_stale_writers_later_batch_never_lands_over_a_successors_acknowledged_batch.
GuardCoversFence While an instance's view of TAIL is current and no re-seed is pending, its allocator is above TAIL, so every offset it claims is above everything committed when it last read TAIL. The model's form of WalShardCommitFence's invariant: a known fence with a bounded guard has bound >= ftail (WalShardCommitFence.Fill, WalShardCommitFence.TryClaimAboveWritten). Yes: WalShardCommitFenceTests.A_fill_raises_a_bounded_guard_to_the_observed_tail and WalShardCommitFenceTests.A_bound_read_older_than_the_held_etag_is_raised_to_the_fenced_tail.
RecoveryNeverFallsOffLog No leaf latches LeafProjectionStaleException under the protocol's own operation. Yes: WalFallOffCoreTests.The_first_needed_offset_is_the_one_after_the_checkpoint, LeafDurablePinCoreTests.The_never_written_release_is_bounded_by_snapshot_coverage_issue_4456, BPlusLeafGrainTests.Never_written_leaf_holding_a_snapshot_releases_no_further_than_its_coverage and BPlusLeafGrainTests.Never_written_leaf_is_not_latched_stale_by_a_cold_capture_below_its_published_release, the end-to-end form of issue #4523's two-fault composition, which the TwoFaults variant checks in the model; and WalDurabilityLifecycleCoyoteTests.A_never_written_leaf_is_never_latched_stale_under_crash_anywhere_recovery, which drives LeafDurablePinCore, WalGcTrimCore and WalFallOffCore with one leaf owning nothing.
PersistedBeliefHonest state.State's checkpoint is what storage holds, or the anchor the activation deliberately started from; a failed persist is rolled back (#4017). Yes: BPlusLeafGrainTests.Failed_checkpoint_persist_publishes_no_durable_pin_past_the_last_durably_written_checkpoint asserts the rolled-back checkpoint directly.
ReleaseBackedBySnapshot Every trim entitlement the pin store has published is backed by the leaf's durable snapshot coverage, which only grows. The root-cause form of RecoveryNeverFallsOffLog's two-fault violation, reachable with no fault. Yes: LeafDurablePinCoreTests.A_covered_partition_is_entitled_to_the_lower_of_its_persisted_checkpoint_and_coverage (a data-bearing leaf), LeafDurablePinCoreTests.The_never_written_release_is_bounded_by_snapshot_coverage_issue_4456 (a never-written leaf holding a snapshot) and LeafDurablePinCoreTests.The_never_written_release_needs_durable_snapshot_coverage_issue_4523 (a never-written leaf holding none); end to end, WalDurabilityLifecycleCoyoteTests.The_lifecycle_loses_no_acknowledged_write_under_crash_anywhere_recovery, whose model asserts it after every step.
SnapshotCoverageMonotonic Durable snapshot coverage never regresses (LeafSnapshotStorageGrain.MergeMonotone). Yes: LeafSnapshotStorageGrainTests.SaveAsync_still_merges_a_regressing_capture_that_carries_every_stored_key.
PublishedPinWithinPersistedBelief A newly published pin never exceeds the persisted checkpoint (#3476). Yes: LeafDurablePinCoreTests.A_pending_checkpoint_never_reaches_the_pin_issue_3476 and BPlusLeafGrainTests.Batched_pin_flush_over_an_unpersisted_advance_publishes_no_pin_past_the_persisted_checkpoint.
TailMonotone The TAIL row never regresses (issue #5810). Without the fence, a stale writer's blind UpsertReplace of its own high-water mark regressed it (TailMonotoneStaleWriterBlindUpsert). Yes: AzureTableWalStorageProviderOverlapIntegrationTests.A_regressed_tail_never_lets_a_recovered_writer_reissue_committed_offsets.
RecoverNeverInsideCommitted A re-seeded allocator never hands out an offset a committed batch holds (issue #5810). Recovery reads TAIL alone, so a regressed TAIL escalated to a reissue inside committed data (RecoverNeverInsideCommittedUnfencedBlindTailUnstamped). Two layers keep it, like AckedOccupies: the TAIL commit fence with its monotone write, and the recovery re-stamp. Each alone keeps it (see the redundancy checks); the mutation removes both. Yes: AzureTableWalStorageProviderOverlapIntegrationTests.A_regressed_tail_never_lets_a_recovered_writer_reissue_committed_offsets.
EveryAckedWriteMaterialised Every acknowledged write is eventually held by its owner's projection. Yes: LeafReplayStartPolicyTests.An_absent_snapshot_over_an_empty_cache_replays_cold and the bounded-progress assertion of WalDurabilityLifecycleCoyoteTests.The_lifecycle_loses_no_acknowledged_write_under_crash_anywhere_recovery, which reports WalDurabilityLifecycleCoyoteTests.Removing_one_fix_is_caught_by_the_assertion_it_protects with a replay that stops at the persisted checkpoint (ReplayStopsAtPersistedCheckpoint).
ReclamationEventuallyAdvances Once every write is in and the pins can release, everything appended is reclaimed from storage and no append or abandoned call is left outstanding. Stated over storage rather than the tail: a settled hole at the end of the bounded instance holds the tail below the stream's end only because the model has no later write (issue #4621). Yes: BPlusLeafGrainTests.Failed_checkpoint_persist_retains_the_pending_advance_for_the_next_flush (a failed persist does not strand the advance) and BPlusLeafGrainTests.ProjectionCheckpointOffset_advances_over_entries_the_leaf_skips (a leaf that owns nothing still advances); at the model level WalDurabilityLifecycleCoyoteTests.Removing_the_read_position_over_foreign_entries_is_caught_by_the_reclamation_assertion (issue #2270, reported by [ReclamationEventuallyAdvances]).