pub fn check_agent_capture_thread(
reserved_thread: &str,
current_lane: Option<&str>,
) -> AgentCaptureThreadCheckExpand description
Pure thread-ownership check for session-guarded capture.
When current_lane is None (detached), capture is allowed — matching the
historical CLI: only an attached mismatched lane fails closed.