Review resolution
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 review-resolution.md, and llms.txt lists every page.Part of Live checkpoint advance: fenced redesign.
After acceptance: #5704's review S2 (#5709), and member 3's #5702 and #5706
| Finding | Resolution |
|---|---|
| #5704 approval N1: losing reachability between the claim-time proof and the tick | Section 4: reclaim retires the entry under the epoch floor before unlinking, and a split's unreachable sibling is under the split's open marker, so the tick guards only a defect. |
| #5709: a reachable leaf's live advance can pass an overlapping orphan's appends | Section 4, "An unreachable leaf never stamps": orphan repair never folds rows, so the rule is at the source. A leaf proves reachability by descent before its first claim; an unreachable one appends unstamped (reported), so every leaf sharing the partition replays past its records. A sibling born under an open marker keeps its eager claim, and a tick re-check stops stamping. The model's counterexample is ReadPositionHonestUnstampedNotReported. The descent check is named as the orphan signal, subsuming "scan chain flagged". |
| #5702: a run shares a hint; deferred, batched closes | Section 3: a chunk's hint may be any head read before its first leaf is born, and a run reads heads only at its start. Completed append tokens close in batches by one fence and one marker write. Hand-off table updated. |
| #5706: a resumed division cannot drain in-flight commits | Section 2: a resumed division applies no read position; the sibling replays from its own start. |
After acceptance: #5697's review, and #5716
| Finding | Resolution |
|---|---|
| S1: the first initialisation claims only its own and the fence's generations; the WAL-side floor is load-bearing, not defence in depth | Section 2, "The WAL-side floor is load-bearing". Modelled (walFloorF, per-initiator r2Floor, a second shard root s2 under WithSecondInitiator, straddlers SAdmit/SAlloc/SFail), with mutation RoutingWalIgnoresFloor (15 states, CrossShard). After a new-build purge the init fence's claim is implied by the floor; after a 10.2.0 purge's catch-up it is load-bearing, so RoutingInitWithoutClaim now runs under LegacyPurge (16 states). |
| S2: a purge finished on 10.2.0 leaves an initialised marker the re-created incarnation reuses | Section 2, "A purge that finishes on 10.2.0": the re-seed catch-up retires a marker of another incarnation under its own initiator's floor (option a, per-initiator floors), keeps its opens and closes, and seeds through the init fence. Modelled with WithLegacyPurge (LegacyPurgeTreeRows, CatchUp), mutations RoutingAdoptsPredatingMarker (15) and CatchUpTreeWide (7, against the new LiveGenerationAboveFloor). The re-seed on 10.2.0 and the fence state are the stated residue. |
| #5716: a duplicate activation's catch-up retires the first's live marker | The marker carries the re-seed incarnation and the catch-up retires only another incarnation's. CatchUpSkip, fMarkNew, fSeeded; mutation CatchUpRetiresLiveMarker (8 states). |
N1: FloorAfterDeletes equals RecreatedAtOne |
With the WAL floor modelled they now break different properties: losing the floor admits the straddler (ReadPositionHonest), and starting at 1 leaves the live generation at its floor (LiveGenerationAboveFloorRoutingRecreatedAtOne, renamed). The purge's floor also feeds the WAL's in-memory raise, so the mutant loses both. |
| N2: a row absent at the retirement's read is skipped | Section 2, step 2: why no row created after the read is the purged incarnation's. |
After acceptance: #5703's review, S1 (#5705)
| Finding | Resolution |
|---|---|
| S1: a straddling write's seam retry re-creates the purged marker above the floor | Section 2, "Purging a tree's fence rows", corrects two claims. The WAL floor refuses only the straddler's old generation. And a purged incarnation's marker write does not conflict: UpdateAsync re-creates an absent row. New rule: a write admitted at or below the routing floor is never re-stamped, and surfaces the deleted-tree outcome. Production (#5703) applies it in NextRoutingRetryAsync, plus a seen-then-absent guard on marker writes. Model: StraddleRetry, with mutation StraddlerRaiseRecreatesMarker (16 states). Recreate is clean at 6,944,389. |
After acceptance: per-tree fence rows at purge (#5668)
| Finding | Resolution |
|---|---|
| #5668: the per-tree fence rows are never deleted | Section 2, "Purging a tree's fence rows": the floor is max-merged into _lattice_tree-routing-floor before any delete, then the rows are retired, and a re-created incarnation starts at the floor plus one. Modelling it surfaced two further rules: the deleted marker reads uninitialised, and the first initialisation after a purge claims its seeded generation at every partition before reading initialised, because in the model an absent generation entry admits any stamp. Production also keeps a WAL-side generation floor; #5697's review showed it is load-bearing, and it is now modelled (next section). Recreate and MarkInit model all of it, with four mutations (RoutingRecreatedAtOne, RoutingFloorAfterDeletes, RoutingInitWithoutClaim, RoutingPurgeKeepsMarkerInit) and the witness WitnessRecreatedStraddleFenced; Recreate is clean at 6,748,568 (6,944,389 after #5705). |
After acceptance: member 2's review (#5644), S2
| Finding | Resolution |
|---|---|
| S2 close heads bound only appends stamped before the bump | Section 2, "What the close heads must bound": three guards, each load-bearing in the model. Stamp at admission (StampAtAppend), re-claim every partition claimed in the activation (new CloseHeadUnderstated), and no unfenced close while a stamped append may be in flight (DrainWithoutFence). The span re-check and receiver-own transfer argument is stated, and why it fails when the initiator's forward never happens. Production departs on all three at #5644's head, so the fix is filed as #5664, a sub-issue of #5605, which blocks member 4. |
| #5664 (a) mechanism | Section 2, "Stamped at admission": member 2 carries an admission mark (close count plus one) and refuses at dispatch any write whose mark predates a close. Equivalent for StampAtAppend, with fewer spurious retries. Mark 0 is reserved for uncaptured paths, so the fence is resolved at admission, not lazily at the first append, which would leave a write admitted before the activation's first append unmarked (found by member 2, fixed in #5644). The tx-terminal backstop awaited its forwards between its span check and its local appends, so a moved local key could append under the raised epoch; it now captures its mark before the span check (census row). |
After acceptance: member 3's review (#5646)
| Finding | Resolution |
|---|---|
| B2 the re-delivery rule drops a refresh | Section 3, "Re-delivery": a run is skipped only when every key is held with an identical value and metadata; any other run is relocated and merged last-writer-wins. With it, change 4's "only the origin's pre-replay reads change" holds: a refresh reaches replicas and views with its later stamp, as in 10.2.0. No state or wire change. The model has no re-delivery step, so the rule is pinned by the bulk member's widened detector, not a mutation. |
| #5654 narrow then link fails open | Section 3, "Narrow and link in one persist": the old leaf's bound and its NextSibling are persisted together; SetNextSiblingAsync stays as an idempotent re-assertion. |
After acceptance: member 1's review (S-a)
| Finding | Resolution |
|---|---|
| S-a the note names a removed exception | Sections 1 and 5, the wire-format bullets and member 1's list now describe production: the shard reports WalAppendFenceOutcome, a supersession is the existing LeafRetiredException with two trailing members (alias unchanged), the one additive change to an existing serialized type, and a stamped batch is rejected whole at its first failing entry. |
Re-review of revision 7
| Finding | Resolution |
|---|---|
S1 ClaimAdoptsNoCas red |
Moved to mutations/ (16 states); step 2 states that AlreadyDurable rests on the row CAS (one holder per epoch within an incarnation) and on the row floor (no recurrence across incarnations). The redundancy table drops the row. |
| N1 clear ordering | "The purge straddle" and "Why the row, not only the entry" cover a duplicate's bump landing before the clear's conditional delete: the delete conflicts and the row is kept, so no value recurs. A three-step Recreate is a promotion-member item. |
| N2 #5633 head | Production, for member 1 (red-proof commit to revert). |
| TreeWalk count | 22,966,529, the count for this model's OtherIntentClose. |
#5641 and the reviewer's partial findings on revision 6
| Finding | Resolution |
|---|---|
#5641 AlreadyDurable with recurring epochs |
Section 1, "Retiring entries" and "Why the row, not only the entry": retirement raises the floor to the higher of the entry and the epoch row, which the clear passes in. ClaimWrite and EntryRefuses admit AlreadyDurable as production does; Recreate raises the floor to Max(fence, rowEpoch). Mutation FloorFromEntryOnly (17 states). Step 2 states AlreadyDurable; section 4 states that a 10.2.0 retirement keeps the row. |
| Rule 3's own case unreachable | OtherIntentClose (WithTreeWalk); WitnessTreeWalkRestampedOwnIntent (7 states). The note and the GRestamp comment now call hoOpen a safe over-approximation that includes re-stamps under a newer intent covering L. |
ClaimConflict not flagged |
ClaimConflict sets wrongRefusal when the row is unmoved; mutation ConflictWithoutMove (4 states). |
Recreate with Ghosts |
The Recreate configuration runs with Ghosts on: clean at 4,859,576. |
| Mutation count | Corrected: 33 mutations, 5 redundancy checks (revision 8: 34 and 4, ClaimAdoptsNoCas moved). EntryRefusalStops is now a redundancy row, because #5641 closes the straddle. |
| Note-table row (#5633 review) | Behaviour change 11: a cold leaf's first write waits for the claim; and the cost section counts retirement and a tree purge's N x P retirement calls. |
Re-review of revision 5
| Finding | Resolution |
|---|---|
| B1 re-stamp under any open intent | Section 2, rule 3: a rejected walk re-stamps only while its own intent, named by id, is open; otherwise it appends unstamped. The model's hoOpen guard encodes that exactly (comment corrected). Mutation RestampUnderAnyIntent (15 states). |
| S1 refusal rule and the row compare | Section 1, "Any refusal bumps while the row holds": any refusal bumps while the activation's ETag holds, as production does; the purge straddle is named in "Retiring entries". ClaimBump widened to Refused(a) /\ RowHolds(a), bumping to the higher of entry, floor and row, plus one. The ETag stand-in is (rowInc, epoch), rowInc raised by Recreate. Recreate clean at 5,641,927. Revision 5's rule is mutation EntryRefusalStops (9 states). The value compare is a redundancy row: no property separates it in this instance. |
S2 CurrentNeverFenced definitional |
Replaced by the behavioural OnlySupersededRefused; FloorReject removed. WalLiveAdvanceOtherRetire.cfg runs with Ghosts on so the witness-gated StaleAppend runs: clean at 13,817,702. FloorAtAppend (9 states) and the new FloorInAppendGuards (8 states) both fail. |
| N1 step 1 prose | Step 1 describes ClaimRowAsync: row plus one; the floor is learnt through a refusal and a bump. |
| N2 re-claim after a bump | Section 1, "One epoch per activation": production re-claims each partition under the new epoch before stamping it, and the partition is disarmed until it replays to the new head; OtherPartitionBump is a safe over-approximation. The cost is in N3. |
Re-review of revision 4
| Finding | Resolution |
|---|---|
| B1 re-stamp not atomic with the close | Section 2, "A walk outliving its intent": the intent is marked closed, durably, in the turn that begins the close, before its first re-claim; the fence grain answers the open check and the generation from that one state, is non-reentrant, and its open check is neither [AlwaysInterleave] nor [ReadOnly]; no shard root caches either answer. The model gains GRestamp and GUnstamped; TreeWalk is clean at 4,250,341 states and the two-window TreeWalkConcurrent is clean at 23,951,016. The split close is mutation RestampDuringClose (16 states). |
| S1 deadline from a cancellation token | Step 1 takes the SagaDecisionDeadline form; "The deadline affects liveness only" states that an early close is safe and that a long paged drain runs its later pages unstamped. |
| S2 per-page intent check | Step 3: the stamped method trusts the generation it is given; only a rejection's seam retry asks the fence grain. Change 6 states it. |
| S3 cost of unstamped walks | Section 2 states the tail-replay cost and the repocontext case; change 7 adds unstamped reports by source. |
N1 MergeEntriesAsync line |
Corrected to BPlusLeafGrain.cs:3703. |
| N2 redundancy class at promotion | Member 6 (promotion) gives the catalogue a redundancy class, or keeps the files out of the gate's glob. |
| Q1-Q4 | Per-call fences stay the default; the re-stamp rule is B1; the deadline is S1; replication apply and the shadow forward stay unstamped (S3). |
| #5635 (from member 1), and the reviewer's interim note | Section 1: the floor is checked at the claim's entry write and raise only, AppendAdmits is the entry check. (1) The condition that makes that sound, retirement removing the WAL shard's loaded entry under _stateGate after the batch drain, is stated, with mutation RecreateKeepsLoadedEntry (9 states). (2) RetireOther and CurrentNeverFenced, broken by CurrentNeverFencedFloorAtAppend (8 states, #5635 itself). (3) StaleEpochNeverAppends is narrowed to L's own retirements (lRetired). (4) A floor-only refusal bumps and re-claims (ClaimBump, WitnessClaimBumped), up to MaxClaimRounds then unstamped. (5) One epoch across partitions: OtherPartitionBump (WithSecondPartition), clean at 3,039,953. OtherRetire is clean at 46,444,519. The two floor redundancy rows are retired: the raise check is now required (IgnoresRetiredFloor). Revision 6 replaces CurrentNeverFenced with OnlySupersededRefused and widens ClaimBump (re-review of revision 5, S1, S2). |
| Coordinator additions | #5634: the per-partition epoch directory row and sweep, as member 5, before the bucket reaches main (section 1). The ordering found by member 1: the coordinator-terminal class (member 2) lands before member 4 arms any leaf. |
Re-review of revision 3
| Finding | Resolution |
|---|---|
| B1 per-shard close with an abandoned walk | Section 2, "One generation for every walk": every shard's walk is stamped with the tree's range-delete generation, so one re-claim per partition fences them all; no two-phase close. Modelled by WithTreeWalk (another shard's walk g), clean at 3,915,069 states with the duplicate. The per-shard close is mutation RangeDeletePerShardClose. |
| B2 walks stamped with no tree fence | Section 2, "A walk with no open intent is appended unstamped": a shard root stamps a walk only through the new stamped method naming an open intent. Replication apply, shadow forwards, gate-spanning fan-outs and 10.2.0 callers use the existing method and stay unstamped, by design. Mutation RangeDeleteWithoutIntent. |
| S1 generation rejections re-stamped at the leaf | Section 5: a routing-generation rejection is always retried from the shard root, through ThrowIfRejectedForKey and the existing stale-routing retry; only a leaf-epoch rejection is retried at the leaf. |
| S2 terminal class unchecked | Section 2: the WAL shard accepts the class only for TxCommit and TxAbort; anything else is admitted unstamped and reported. The promoted module adds one prepare and its terminal. |
| S3 intent deadline and reminder owner | Section 2: the intent records the call's deadline; TreeRangeDeleteFenceGrain owns the per-tree reminder and closes every intent past its deadline. |
| S4 stepped range deletes | Section 2, "Cost per range delete call": per step, with markers closed between steps; the four stepped callers are named. Change 6 restated. |
| N1 redundancy files | Committed in redundancy/ with EXPECT: clean. |
| N2 reminder storage | Change 9. |
N3 MarkInit stronger than production |
Stated in the NoMarkerInit redundancy row. |
| Q1, Q2 | Q1: the per-tree generation with per-shard range-scoped markers, as answered. Q2: gap entry, member 2 detector, the Op check, and a prepare-terminal pair in the promoted module. |
| Change 4 (coordinator decision after revision 3) | Last-writer-wins by HLC stamp, the later-stamped write winning: what 10.2.0 converges to on every reader (section 3, with file and line; revision 8 corrects revision 4's reading that bulk entries were versioned below every real write, found by member 3). A compatible bug fix; no authorisation. Property ContestedKeyAgrees, mutation StrandedValueKept, witness ContestedKeyResolvedToPoint. A stable "bulk value wins" is rejected, with reasons. |
Re-review of revision 2
| Finding | Resolution |
|---|---|
| B1 range delete fenced per shard | Section 2, "Range delete: fenced at the tree": a durable intent, a range-scoped marker opened on every shard root before any shard appends, closed by fence only after every walk has finished or been abandoned, re-driven by a per-tree reminder. The cost (every overlapping leaf of the tree disarmed for the delete) is stated. The model's foreign author stands for every shard's walk. |
| B2 hand-off in flight across the gate | Section 2, "Hand-offs in flight across the gate": resume opens the marker; absence never means closed, a positive initialised state is required. Modelled by WithLegacyHandOff (LegacyWrite, OpenGate, Resume, LegacyComplete, MarkInit); the window opens with no marker before the gate and continues after it. Clean, 20,828,314 states. Mutation ResumeWithoutMarker (17 states); rule 2 is a redundancy row. |
| B3 claim entry write not monotone | Section 1: the claim is three steps, the entry write is a conditional max-merge refused against the higher of the loaded entry, the durable entry and the floor. The model splits Claim into ClaimRow, ClaimWrite, ClaimRaise. Mutation ClaimEntryOverwrite (12 states). Splitting the claim also exposed a retired-floor window, now closed (IgnoresRetiredFloor, 8 states). |
B4 rejections escaping ShardActivationRetry |
Section 5: retried at the seam that raises them, until the operation's existing deadline; a table of every caller of the leaf write surface, its exposure and its retry. Saga prepares retry rather than nack. Changes 1 and 2 restated. |
| S1 routing generation not durable | A slot of the partition's _lattice_wal-routing-generations row (#5987), with the leaf entry's semantics. The model keeps fFence across Restart. Mutation GenerationNotDurable (14 states). |
| S2 gate flips | Own unstamped appends self-report; an explicit claim guard in Armed. WithGateFlip configuration, clean (7,609,129). Mutation NoSelfReport (13 states); the claim guard is a redundancy row. |
| S3 stamp contract | Unstamped leaf methods append unstamped. AppendBatchStampedAsync named, with per-entry stamps checked under _stateGate and a per-entry outcome. |
| S4 racing the gate | Pinned by a mixed-version test in member 1; re-issued unstamped only on the definite "method unknown" failure; anything else follows today's retry semantics. |
| S5 #5610 who wins | Last-writer-wins by HLC stamp, the later-stamped write winning, as 10.2.0 converges on every reader (section 3, with file and line; revisions 4 to 7 read the bulk stamp wrongly as below every real write, corrected in revision 8). A compatible bug fix that removes an origin-versus-replica divergence; no authorisation. |
| S6 coordinator terminals | The terminal stamp class, excluded from the watermark, justified by the prepare clamp and _recentlyTerminal; not modelled (no sagas), so a gap entry and a member 2 detector. |
| S7 bulk hint across a crash | Persisted in _lattice_shard-handoff by operation id; the resume reuses it. |
| S8 configurations | Eight configurations, including MixedRestart, GateFlip and LegacyHandOff; the split claim and the durable generation are in the base model. The reviewer's larger combinations are a promotion-member CI requirement. |
| N1 orphaned rows | Retirement runs regardless of the gate; a sweep removes orphaned rows. |
| N2 abandoned flushes | Section 1, "Abandoned flushes (#4621)". |
| N3 floor cost | Section 1, "Cost". |
| Q1 census start | The census table in section 2. |
| Q2 bounded wait | Optional, a latency optimisation only. |
| Q3 change 3 | Withdrawn; the seam retry runs to the existing deadline. |
First review
| Finding | Resolution |
|---|---|
| B1 drains | Section 2: the close is a fence (a re-claim of the initiator's epoch or routing generation), stamped at admission, on every append path. Mutations: DrainWithoutFence, DrainPointOnly, StampAtAppend. |
| B2 epoch floor | Section 1, "Retiring entries": a monotone per-partition floor row, raised before an entry is deleted, checked at every claim step and append (revision 5: at the claim steps only, #5635). Mutations: RecreateDropsFloor, IgnoresRetiredFloor. |
| S1 claim head and tracker | The claim reads _nextOffset in the lock section that assigns offsets; arming requires every own append applied. Mutations: ClaimReadableHead, SnapshotHonestNoOwnTracker. |
| S2 CAS | A strict conditional write on a row only claims write. A redundancy row in revisions 4 to 6; load-bearing again since revision 7's AlreadyDurable (mutation ClaimAdoptsNoCas, 16 states). |
| S3 guard mutations | NoClaimHeadReplay and NoOpenCheck; PERTURBS fields name actions. |
| S4 overlap | Section 4's fail-safe list: slot-less, rangeless-with-siblings and suspected-orphan leaves. |
| S5 fold vs reclaim | Separate rows in the hand-off table. |
| S6 #5610 | Fixed by relocation in the bulk member. Mutation: BulkAppendDropsExistingRows. |
| S7 storage, cost, moves | Reserved-type rows, lazy loading, costs quantified; restarts modelled. |
| S8 rollout | The manifest gate, not ratcheted; unstamped appends admitted and reported. |
| S9 impact rows | AtomicCommit, TurnOccupancy, SplitGateCycles, WalMove rows. |
| N1-N5 | FrozenView; the README; conflicts are claims; the hint is needed by every arming; the duplicate's live advance and a trim after a live advance are witnesses. |
| Q1-Q3 | The floor; the shard-level marker read fresh; range deletes fenced, not clipped. |