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.
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.