From 529f1ac0aa57b7dd4d42a6d8c832d4c47bc4d8a5 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 2 Sep 2026 15:46:46 -0700 Subject: [PATCH] refactor(turn): drop section-banner comments in turn_facade_lease --- agent/turn_facade_lease.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/agent/turn_facade_lease.py b/agent/turn_facade_lease.py index 9309ad6f93..05f15314cd 100644 --- a/agent/turn_facade_lease.py +++ b/agent/turn_facade_lease.py @@ -42,8 +42,6 @@ class DurableTurnLease: def _current_session_id(self) -> str: return getattr(self.agent, "session_id", None) or self.session_id - # ── thread construction ────────────────────────────────────────────────────── - def build_threads(self) -> None: """Create (not start) the refresher thread and, when configured, the liveness watchdog. @@ -76,8 +74,6 @@ class DurableTurnLease: deactivate_turn=self.deactivate_after_liveness_abort, ).make_thread() - # ── lifecycle ──────────────────────────────────────────────────────────────── - def start(self) -> None: with self._lock: self.turn_active = True @@ -113,8 +109,6 @@ class DurableTurnLease: with self._lock: return self.turn_active - # ── interrupts ─────────────────────────────────────────────────────────────── - def _interrupt_turn(self, message: str) -> None: # Lease-loss interrupts fire UNCONDITIONALLY (no generation claim): a lost lease means this # process no longer owns the session. Only the watchdog's stalls can be spuriously stale. @@ -203,8 +197,6 @@ class DurableTurnLease: with redirect_lock: _clear_if_owned() - # ── refresher thread body ──────────────────────────────────────────────────── - def refresh_loop(self) -> None: """Renew the lease every ``refresh_interval``; a miss or error interrupts the turn.