---
title: "Property classification (issue #2321) - Refinement note: the live-advance core to production"
url: "https://nsta1.github.io/Orleans.Lattice/spec/wal/liveadvancecorerefinement/property-classification-issue-2321.html"
source: "https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/spec/wal/LiveAdvanceCoreRefinement.md?plain=1#L249-L449"
documents: "Orleans.Lattice 10.5.0 (release line 10.5)"
built: "2026-12-05"
all-pages: "https://nsta1.github.io/Orleans.Lattice/llms.txt"
---
# Property classification (issue #2321)

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

`TypeOK` and the four invariants are state safety, reached and checked on the base and
re-checked in each variant. `NewbornPinEventuallyUsable` is liveness, checked on the base
and re-checked in `Bulk`, whose bulk-born leaf is a newborn too, and in `KeyMove`,
`PreArmBulk` and five claimless-advance variants; the other variants leave it out
(below). `SplitEventuallyLinked` is liveness too, checked on the base (where no split-born
leaf exists, so it holds trivially) and in `FreeSplitLink`, `FreeEpochOnly` and
`FreeForwardIn`. The base carries the duplicate, one hand-off window and a
10.2.0 silo's append; each variant adds one environment (a restart, own unstamped appends,
the purge, a bulk birth), because the combinations are larger than the CI budget allows
for one case. The design model's combined configurations stay as local evidence in the
design note.

**Structural, not loss, properties.** `UnlinkedNeverClaims` is structural: it states
that no unlinked activation takes an epoch, not that a write is lost. The loss it guards
against, a claimed orphan's epoch-only writes invisible to the eventual owner (#5841), is
outside this module. Its mutations are therefore structural detectors, not loss
detectors. `UnlinkedNeverClaimsProvenSiblingClaimsPreLink` (#5866 B2) is the clearest
case: the base was clean, `ReadPositionHonest` included, while C still admitted that
claim. Checked against every other invariant, its mutant is clean in the latch shape
(1,424,887 states). With another split's link raise it also violates the cost property
`ReclaimCostBound`: the pre-link claim resolves the donor's bound on that raise, so the
link's deferred head costs a second re-claim. With `ReclaimCostBound` dropped as well it
is clean on `ReadPositionHonest` and every loss property (6,619,845 states). It is a
structural and cost detector, never a loss detector. The same holds for
`UnlinkedNeverClaimsDeferredSiblingClaims` (#5851 D5).

**The lazy arm (#5833).** `WithPreArm` turns it on. A leaf claims at a partition only
when it arms there. Its appends before that are `PreArm` (`PreArmAlloc`), and the arm
replays to `foreignHigh` (`seenP`) rather than to the claim head. `foreignHigh` is the
highest offset any other activation of L allocated, stamped or `PreArm`, never below what
the WAL shard's memory lost (`startHead - 1`, the eviction floor). Key-moving closes defer
their fence to the receiver's arm (`WithKeyMove`).

The base, `KeyMove`, `PreArmRestart`, `PreArmBulk`, `PreArmRecreate` and `PreArmGateFlip`
check the lazy arm; the other six configurations check today's eager arm
(`WithPreArm = FALSE`, the path the gate keeps until every silo carries the capability).
Mutations that test an eager-only assumption are bound to it for the same reason.

**The claimless advance (#5837).** `WithFreeAdvance`, under the lazy arm, adds
`FreeTarget` and `FreeCommit`: the advance needs no claim, only the bounds the responses
to the leaf's own appends report. `WithSplitHint` adds the split's hint, `WithSplitBirth`
a split-born receiver with its live donor, `WithDonorRestart` the donor's restarts,
`WithLatch` the reachability latch on the unlinked receiver and `WithBirthProof` its
birth proof, and `WithOrphanForward` a stale duplicate's forward into an orphan.
`WithFwdExclusion` adds the relief that lets a donor exclude its own forwards once its
narrow is durable: `ReadPositionHonest`, `SnapshotHonest` and `NoTrimPastAcked` then skip
only the forwards of keys L no longer owns, which `ForwardHonest` and
`SnapshotForwardHonest` state. `WithDuplicate` and `WithEvict` exist to slice. Twenty-four variants check it, each within the
case budget:

| Variant | Adds | States |
|---------|------|--------|
| `Free` | the advance on the base, safety only | 4,680,662 |
| `FreeKeyMove` | a pending key-moving close; liveness with no claim fair | 2,386,428 |
| `FreeSplitHint` | the split's hint | 3,562,343 |
| `FreeSplitBirth` | a split-born receiver and a duplicate, no link; liveness | 2,146,154 |
| `FreeSplitLink` | the link and both donor restarts, no duplicate; liveness and `SplitEventuallyLinked` | 428,890 |
| `FreeLatch` | the latch, the gate flip, orphan repair and the birth proof | 892,259 |
| `FreeOrphan` | the orphan's forward and re-forward | 707,726 |
| `FreeRestart` | a WAL shard restart and an eviction | 3,855,129 |
| `FreeRestartKeyMove` | a deferred close pending across a WAL shard restart | 477,300 |
| `FreeRecreate` | the purge, claimed slice | 1,715,417 |
| `FreeRecreateSurvivor` | the purge, unclaimed slice | 4,908,025 |
| `FreeBulk` | a bulk birth | 3,309,965 |
| `FreeGateFlip` | own unstamped appends | 1,904,304 |
| `FreeFwdExclusion` | the forward-exclusion relief: two divergent narrows, a forward before or after the persist | 4,217,142 |
| `FreeTagEvict` | the relief's WAL-side table: a tag's eviction (X6) and a WAL shard restart (X8) | 821,800 |
| `FreeReforward` | a forward chain at depths 2, 3 and 4 against k = 3 (F2') | 1,795,034 |
| `FreeChainEvict` | the chain with an eviction (`WithEvictAlone`: no WAL shard restart), without the orphan's own forward: the fold of the chain's records (S-a) | 1,993,821 |
| `FreeOrphanEvict` | an orphan's forward with an eviction and no WAL shard restart: the fold of the orphan's forward (S-a). With `FreeChainEvict` it replaces one variant combining both with a restart, which measured 46,514,214 states; the chain with a restart alone measured 12,065,410, and the restart's own floors are checked in `FreeRestart` | 3,045,174 |
| `FreeForwardIn` | the donor's pre-link forward into L and a stale D''s into another orphan (the `staleHigh` tag exclusion); liveness and `SplitEventuallyLinked` | 1,032,584 |
| `FreeEpochOnly` | a stale duplicate's epoch-only write before the link, in the donor's `staleHigh`; liveness and `SplitEventuallyLinked` | 712,124 |
| `FreeSplitView` | the split's view read concurrently with the drain (V3), with a hand-off window, and the split's cap fallback when the hint guard fails (#5851 O2c) | 1,159,405 |
| `FreeOtherLinkRaise` | another split's link raising the shard root's generation between the donor's close and L's link, and L's link witness, under the latch and without the birth proof (#5866 B1, B2) | 1,056,232 |
| `FreeKeyFilter` | the key-range-filtered unstamped high: an unstamped write keyed in a span outside L's range, and L's range absorbing the span (#5851 K1-K6) | 8,791 |
| `FreeReportFetch` | an idle leaf's report fetch and free advance to the head, with a key-moving close and its stale donor (#5851 R4) | 24,397 |

Under the claimless advance an activation learns its bounds only from the responses to
its own appends, which carry `foreignHigh` and the shared watermark together, so either
restart floor alone suffices: `ReadPositionHonestPreArmWatermarkNotReset` and
`ReadPositionHonestRestartForgetsUnstamped` are clean under it, and
`ReadPositionHonestFreeAdvanceRestartForgetsBothFloors` is red. With no claim there may be
no current activation, so `CurrentFellOffLog` excuses any running one, as production's
per-activation #3477 latch does; `SoleActivationNeverFallsOff` bounds that to duplicates.

The lazy arm makes two of the eager arm's guards redundant for `ReadPositionHonest`, and
their mutations stay clean under `WithPreArm` (they are red under `WithPreArm = FALSE`):
- `ReadPositionHonestAssumeSupersededAllocates`: `foreignHigh` counts a superseded
  activation's stamped appends, so E's "a superseded activation never allocates" is no
  longer what keeps them read.
- `ReadPositionHonestRestartForgetsUnstamped`: `foreignHigh`'s restart floor covers the
  offsets the shared watermark's reset covers.

The liveness property is unchanged in form. Under the lazy arm a claim's fairness is
conditioned on `ArmTrigger(a)`: an own durable append that no shared snapshot covers, so
the leaf's pin holds the floor. No safety property reads `ArmTrigger`, so every invariant
holds for any trigger, including one that fires on every tick. Production arms on two
signals, each of which implies `ArmTrigger(a)` at the partitions it arms:

- **The starved tick.** On the coverage-lag tick, `BPlusLeafGrain.TryAdvanceLiveCheckpointAsync`
  finds the leaf holding live data with no proven checkpoint on any partition
  (`BPlusLeafGrain.IsStarvedOfDurableCheckpoint`), and calls
  `BPlusLeafGrain.ArmForLiveAdvanceAsync`.
- **The GC drive.** The WAL GC's floor-holder report names the leaf's pin as holding a
  partition's floor and drives the leaf (`IBPlusLeafGrain.DriveStarvedCheckpointAsync`, whose
  drive calls `BPlusLeafGrain.TryAdvanceLiveCheckpointAsync` before it replays). The same
  drive runs from the coverage-lag timer for a leaf starved of a durable checkpoint.

Either signal arms only the partitions where the leaf has an own append above its
checkpoint, which is `ArmTrigger(a)` at that partition, and only while `handOff.Clear`
holds, which is C's `~pend` and its no-open-window guard. An arm restricted to some
partitions satisfies the arm guard at each partition it arms, and a leaf not armed at a
partition keeps appending `PreArm` there. The fairness the liveness property needs is that
one signal recurs while `ArmTrigger(a)` holds, and the GC drive recurs on every pass while
the pin holds the floor. Firing more often than `ArmTrigger` costs only claims, never
safety: one epoch row per activation, and the generation re-claims `ReclaimCostBound`
limits to one per (raise, partition).
`NewbornPinEventuallyUsableDeferredHeadRefusedBelowLoaded` shows C5 is needed for liveness.

Building the lazy arm found that a bulk-born leaf's pre-switch records above its birth
read position were covered only by the claim-head replay: under the lazy arm they rest on
the switch's close head, now B's guarantee `SwitchCloseCoversPriorAllocations`.

**The purge, in three slices.** Since the environment admits a never-claimed activation
that outlives the purge, the purge alone (9,028,464 states) is over the 5M-state case
budget. Two constants select the purge's shape, decided at the step itself, so the slices
split the purged behaviours exactly: `WithClaimedPurge` for a purge that finds `a1`
claimed (with only the duplicate, if any, unclaimed), `WithUnclaimedSurvivor` for one
that finds `a1` unclaimed. The base and the other variants allow both.
- `Recreate` checks the claimed purge with the full environment: 3,693,715 states.
- `RecreateSurvivor` checks the unclaimed survivor without the 10.2.0 silo: 4,638,713.
- `RecreateSurvivorMixed` checks it with the silo and no hand-off window: 1,622,161.
- **Bounded out of CI:** the unclaimed survivor with both a hand-off window and the silo.
  It was checked locally and is clean at 8,913,193 distinct states (232 seconds), which is
  over the 5M-state case budget; the gap register below records it.

Measured with tla2tools v1.7.4 on two workers, the three slices take 2 minutes, 3
minutes and 1 minute.

**The liveness property** (member 6b) is the design note's: under weak fairness of the
claim, replay, apply and live-advance steps, an armed activation's newborn pin eventually
becomes usable without a replay from `-1`. It is checked as `<>[]`: eventually, always,
the shared snapshot covers every durable own append. The base cfg's specification is
`LiveSpec`, `Spec` with one condition, `WF_vars(Progress)`:
- `Progress` is the disjunction of the leaf's own steps (`Claim`, `Land`, `LiveAdvance`,
  `Capture`), the environment steps that end a hold (`Close`, `Create`, `MarkInit`), and
  a replay **only while a bound the arming list names lies above the read position**
  (`ReplayNeeded`: the claim head, the close heads, a reported unstamped offset).
  This is a **deliberate under-approximation**, not a statement about production:
  production's starvation drive also replays from the checkpoint to the head, over the
  leaf's own appends. The property assumes no replay beyond the arming bounds, so it
  shows that the live advance alone makes the pin usable; the starvation drive is a
  further fallback it does not rely on. It is what keeps the property non-vacuous: with
  replay fair unconditionally, `NewbornPinEventuallyUsableAdvanceNeverFires` comes out
  clean (778,329 states, checked by the independent review). Weakening a fairness
  assumption only strengthens a liveness claim, so the restriction is sound.
- One condition over the disjunction forces the same quiescent end as one per step,
  and costs TLC one temporal branch instead of eleven. **Precondition:** every step but
  `Stutter` can be taken only finitely often in every configuration (`next` is bounded;
  each one-shot environment step fires once; `ForeignOpen` is bounded by `MaxWindows`;
  `Land` and `HandOff` consume their offsets; `rp`, `snapCov` and `floor` only rise,
  within bounds). A configuration with an unbounded step would need one condition per
  step.
- **Exclusion:** the property is discharged once the current activation has fallen off
  the log (`CurrentFellOffLog`: the GC trimmed an entry it must still replay). The state
  is reachable in production: the leaf's WAL pin is one per-leaf row merged
  monotonic-max, so a duplicate activation's capture can raise it past the current
  activation's checkpoint and let the GC trim past it. Production's response is the
  existing #3477 path: the partition latches stale and refuses hints and the live
  advance, and deactivation clears it, the reactivation rehydrating from the newer
  snapshot. The gap register below records the exclusion and the detectors that pin
  that path. Without the exclusion TLC reports exactly this behaviour; with the GC
  additionally bounded by every running activation's read position, the property holds
  without it (550,843 states, checked by the independent review).
- **Cost, measured** (tla2tools v1.7.4, two workers, liveness included): an earlier
  revision of the base found 778,329 distinct states to depth 25 in 1 minute 27 seconds
  (the current base's count is the manifest's, 2,021,047), and `Bulk` 1,114,185 to
  depth 25 in 2 minutes 38 seconds (re-measured with TLC 2.19). Stated as three
  leads-to formulas the base took 4 minutes, and with
  one fairness condition per step as well, 11.
- **Bounded out:** `Restart` holds the property too, but takes 7 minutes 18 seconds
  locally, too close to the 20-minute case budget on a CI runner, so it checks safety
  only. `GateFlip` and `Recreate` are outside the property's premise, a leaf born while
  the gate is open: `GateFlip`'s own appends are made under a closed gate view, and
  `Recreate` ends the newborn's incarnation.
- Its two experiments each break progress and go red in about five seconds:
  `NewbornPinEventuallyUsableAdvanceNeverFires` (the live advance never enabled, as
  before #5572) and `NewbornPinEventuallyUsableArmingNeverEnabled` (the claim-head
  conjunct asks for a read the driven replay never reaches).

Every experiment is an anchored perturbation. Seven edit the `Armed` predicate rather
than an action, so they name no perturbed action: `NewbornPinEventuallyUsableArmingNeverEnabled`,
`ReadPositionHonestNoClaimHeadReplay`,
`SnapshotHonestNoOwnTracker`, `ReadPositionHonestUnstampedNotReported`,
`ReadPositionHonestNoMarkerInit`, `ReadPositionHonestArmsUnderOpenMarker` and
`ReadPositionHonestArmsBelowCloseHead`. `NoTrimPastAckedLiveAdvance5578` edits both the
predicate and `OwnAlloc`. A clean coverage run (`-coverage`) of the base and each variant
confirms every action the configuration enables is taken, `LiveAdvance` included.

Previous: [Property mapping](property-mapping.md). Next: [Deliberate abstraction gaps](deliberate-abstraction-gaps.md). Contents: [Refinement note: the live-advance core to production](../LiveAdvanceCoreRefinement.md).
