DashboardopencodeSessionContextEpoch.advance fencing

SessionContextEpoch.advance fencing

Category: gotcha
Confidence: 1.00
ID: 01a0a627-8813-7462-9018-95919dd0a059
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 0410hkwvS1ACdy6D6
Created: 2026-09-15 17:40:03
Updated: 2026-09-15 17:40:03

Content

Trap: renewing SessionExecutionClaim and then updating SessionContextEpochTable.snapshot looks fenced because ownership was checked immediately beforehand, but takeover can occur between statements and let a stale owner mutate durable context. Fix: perform renewal and snapshot mutation inside one immediate SessionExecutionClaim.transaction(...); test takeover rejection and prove a failed snapshot update rolls back renewal.

Move to: