DashboardopencodeSessionExecution activeClaims boundary …

SessionExecution activeClaims boundary races

Category: gotcha
Confidence: 1.00
ID: 01a0af00-1d1e-76d6-9a10-a852696a6881
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 0410hkwvS1ACdy6D6
Created: 2026-09-17 09:42:00
Updated: 2026-09-17 10:53:35

Content

Trap: registering activeClaims only after acquisition, or treating every registered claim as durable until finalizer cleanup, looks consistent but exposes both commit-to-registration and durable-clear-to-unregistration races. Fix: pre-register behind an acquisition latch, retain registration through drain finalizers, and reconcile SessionExecutionClaim.Lost during pre-interrupt transition as already settled when successful execution already deleted the claim; interruption must neither strand an owner nor surface HTTP 500.

Move to: