In this article
Hold the ordinary-session guard while creating another tenant’s first session, then verify pinned and snapshot-missing roots retain the required checks.
Qwen Code v0.27.4, released on November 15 at 07:04:40 UTC, includes a Managed Agent CSI-guard correction. An ordinary session visible in the caller’s snapshot no longer acquires the former nonunique-index gap lock. Pinned sessions and roots outside that snapshot still require current checks. The release addresses cross-session blocking while preserving the guard’s fail-closed cases; it is not a general removal of transactional locking.
An unrelated insert exposes the original coupling
In an owned disposable MySQL fixture, keep the guard transaction open for tenant A’s ordinary session and create tenant B’s first session. Inspect database lock waits rather than deciding from wall-clock delay alone. The reported mechanism was a nonmatching locking read on a nonunique pin index, potentially covering a broad gap. A slow machine can delay an insert without that lock, so record the actual waiting resource when diagnosing the old behavior.
Pinned roots remain deliberately protected
Repeat with a known pinned root and a concurrent writer. The guard should still detect the pin and retain the required primary-key protection. This positive protection control matters as much as the faster unrelated insert: eliminating every read or lock could make the first test pass while permitting a forbidden legacy mutation. Use distinctive synthetic session identities and compare both the refusal and the writer’s observed locking behavior.
Snapshot absence requires a current read
Create an older transaction snapshot, then introduce a root that snapshot cannot yet see. Exercise the guard through the supported path and inspect its current-read behavior. The PR explicitly rejects relying only on a consistent read because that would miss this creation race. A missing root remains fail closed. Keep this case separate from an ordinary visible root so the optimization’s condition is tested rather than generalized beyond its valid snapshot evidence.
Lock order still constrains safe simplification
The implementation explains why locking every root first would invert an existing tenant-placement order. Preserve the project’s lock-contract checks alongside the cross-tenant fixture. This is a delivered concurrency repair, not a new throughput benchmark. A useful migration record identifies the guarded write path, snapshot visibility, pin state and actual lock evidence, showing that independent sessions progress without weakening the mutation boundary or claiming every Managed Agent transaction is now contention-free.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.