Skip to main content
← Back to list
01Issue
FeatureShippedSwamp CLIPublic
AssigneesNone

Relationships

↔ sibling #4793

#4814 Process-wide module state in the v3 datastore forces tests to isolate actors in Workers

Opened by stack72 · 11/16/2026· Shipped 11/17/2026

Found while fixing swamp-club#4793. Integration tests start Workers mostly to get a separate copy of process-wide module state in src: the writer-lock held map (v3_writer_lock.ts), the [REDACTED-SECRET-1] maps (v3_repo_context.ts), the own-lock gate, the workflow-run checkpoint interval, and the Litestream replicator singleton. All of these are keyed by datastore path or global, so two actors in one isolate join each other's hold or close each other's handles; the own-lock gate would even let a test pass without proving anything. Scoping this state to an owner or context object would let serve plus clients and multi-node team tests run in one isolate. Design work for locking and persistence code: needs a ddd pass.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 11 MOREPR_LINKED+ 1 MORESESSION_SUMMARIZED

Shipped

11/17/2026, 8:23:24 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 linked sibling of #479311/16/2026, 7:42:18 PM

Sign in to post a ripple.