band-aider-pub/band_aider/loop/stabilzation_gate.py
2026-07-16 18:38:58 -07:00

29 lines
747 B
Python

# SPDX-FileCopyrightText: 2026 Art Sea LLC
#
# SPDX-License-Identifier: AGPL-3.0-only
from __future__ import annotations
from dataclasses import dataclass
from band_aider.loop.loop_gate import LoopGate
@dataclass
class StabilizationGate(LoopGate):
"""StabilizationGate delegates stabilization control to its configured checks."""
def should_continue(self) -> bool:
"""Return whether stabilization should continue."""
return self.should_continue_check()
def may_enter(self) -> bool:
"""Return whether stabilization may enter."""
return self.may_enter_check()
def should_retry(self) -> bool:
"""Return whether stabilization should retry."""
return self.should_retry_check()