Files
Hermes_rocket.chat_Plugin/plugin/archivar
Bernd (Hermes) e1d68ec00a P-039 + P-040: Bugfixes Presence-Engine + DM-Routing
P-039 (Pulse-Intervall + Drift-Korrektur):
- PULSE_INTERVAL_S: 3.0 -> 5.0 (429-Storms mit 2+ Agenten)
- _drift_correction: nur delegate_subagent via pgrep resetten,
  chat_profile + background_term (Hook-gesetzt) bleiben unveraendert
- _count_real_subagents -> _count_delegated_subagents umbenannt
- Reconciliation-Schutz: skip wenn letzte Counter-Mutation < 5s her
  (_last_counter_change in __init__ + _apply_counter_delta + _on_reconcile)

P-040 (Move-Request in DM ohne origin==target Check):
- router.py DM-Branch: origin==target Check VOR is_100_percent_match
- router.py: origin_room_id=None -> origin_room_id=origin_room_id
  (Origin-Priorisierung aktivieren)
- adapter_integration.py _send_move_request: defensiver origin==target
  Check am Anfang, return False ohne Button

Tests: 10/10 passed
- test_p039_pulse_interval_5s.py (3 tests)
- test_p039_drift_keeps_chat_profile.py (3 tests)
- test_p040_dm_move_request_origin_target.py (2 tests)
- test_p040_move_request_skips_self.py (2 tests)

REVERSIBLE-VIA-GIT
2026-08-07 22:39:55 +02:00
..