Skip to main content

Module session_gate

Module session_gate 

Source
Expand description

Limit concurrent visible (PTY) harness sessions (plan.md Phase 5).

Cap comes from env RINNE_HARNESS_STAGE_MAX (set from [harness_stage].max_sessions).

Structs§

VisibleSlot
RAII guard: holding one slot for a visible harness Stage session.

Functions§

try_acquire_visible
Try to reserve a visible Stage slot. None means the cap is full — caller should fall back to headless and narrate.