Skip to content

Commit a28796d

Browse files
committed
Document single-primary active-turn nesting limit
Concurrent multi-observer setups overwrite the process-wide turn parent used by permission.wait and subagent spans.
1 parent 618ab7b commit a28796d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/perf/active-turn.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
/**
22
* Process-wide open-turn id for nesting permission.wait / subagent outside the
3-
* reactor observer. Single-primary assumption: one run-sink observer owns the
4-
* slot. `clear()` and observer `reset()`/`closeTurn` null it.
3+
* reactor observer.
4+
*
5+
* Single-primary assumption: one run-sink observer owns the slot. A second
6+
* concurrent observer overwrites the parent used by gate/task spans — not
7+
* supported. `clear()`, observer `reset()`, and `closeTurn` null the slot.
58
*/
69

710
let activeTurnId: string | null = null;

0 commit comments

Comments
 (0)