Files
qwen-code/packages
jinyeandClaude Opus 5.5 caa67b2cf4 perf(managed-agent): take turn admission off the tenant lock (#16223)
Turn submit no longer takes the tenant placement guard. Its Session row
lock already orders it against lifecycle begin, and requireOpen's
locking reads of the storage's alias (fence) and directory rows order
it against migration fence installation and physical fencing.

Migration prepare locks that fence row in migrationSource but could
check idleness on a REPEATABLE READ snapshot taken before the lock. It
now reads committed work on a separate autocommit connection after the
lock, so a Turn admitted before it is seen and a later one is refused
by the fence.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-03 10:11:58 -08:00
..