diff --git a/plugin/archivar/tests/test_presence_engine.py b/plugin/archivar/tests/test_presence_engine.py index 612f172..97a96cf 100644 --- a/plugin/archivar/tests/test_presence_engine.py +++ b/plugin/archivar/tests/test_presence_engine.py @@ -270,10 +270,10 @@ class TestPulseTimerLifecycle: engine._mediator._pulse_toggle = False assert engine.get_visible_status() == "online" - def test_pulse_interval_is_3_seconds(self): - """PULSE_INTERVAL_S = 3.0.""" + def test_pulse_interval_is_5_seconds(self): + """PULSE_INTERVAL_S = 5.0 (P-039: 3.0→5.0 für 429-Reduktion).""" from plugin.archivar.presence_engine import _Mediator - assert _Mediator.PULSE_INTERVAL_S == 3.0 + assert _Mediator.PULSE_INTERVAL_S == 5.0 # ═══════════════════════════════════════════════════════════════════════════ @@ -329,6 +329,8 @@ class TestReconcileAfterCooldown: engine._mediator._rest_cooldown_until = time.monotonic() + 0.05 # Ändere Phase während Cooldown (P2 → P4), aber unterdrückt engine.on_subagent_start() # P2 → P4, suppressed by cooldown + # P-039: Reconciliation-Schutz umgehen (last_counter_change auf 0 setzen) + engine._mediator._last_counter_change = 0.0 # Plane Reconciliation engine._mediator._schedule_reconcile_locked() # Warte auf Reconciliation