DashboardopencodeAlways enforce concurrency and recovery…

Always enforce concurrency and recovery invariants with regression tests

Category: preference
Confidence: 0.80
ID: 01a0af11-9736-7586-b928-9dba8d252534
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 1
Source session: 0410hkwvS1ACdy6D6
Created: 2026-09-17 09:15:25
Updated: 2026-09-17 11:12:40

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 2h ago

Content

Treat session recovery, promotion, cancellation, and retry boundaries as strict “never” invariants. Reject or quarantine work when ownership has changed, a claim has expired or been superseded, scanner validation fails, continuation input is quarantined, or an exact retry conflicts. Never let these cases recover, promote as ordinary queue/steer work, arm durable wake intent, or mutate context ownership. Add targeted race and replay regression tests that verify durable database rows, event counts, promotion state, recovery errors, and wake counts—not only immediate return values. Confirm invalid work remains inert across projection replay and later recovery scans while unrelated ordinary work can still proceed.

Move to: