refactor(P-078): Remove Step 3 (on_review_fork_close) — Core-Unabhaengigkeit Ziel #14. Steps 1+2 bleiben (Golden Source + pgrep Telemetrie)

This commit is contained in:
Bernd (Hermes)
2026-08-18 20:02:04 +02:00
parent 0d9f483d51
commit 88d895f6ab
3 changed files with 2 additions and 63 deletions
-16
View File
@@ -1872,22 +1872,6 @@ class PresenceEngine:
"""
self._apply_counter_delta("chat_profile", -1)
def on_review_fork_close(self, **kwargs) -> None:
"""Hook: on_review_fork_close → chat_profile -= 1 (idempotent).
STEP 3 (Hook-Symmetrie): Der Review-Fork (background_review.py) feuert
on_session_start (chat_profile += 1) via run_conversation, aber
on_session_finalize feuert NICHT — weil der Fork _end_session_on_close=False
setzt (er teilt die session_id des Parents und darf die Session nicht
finalisieren). Ohne diesen Hook bleibt chat_profile nach jedem Review
dauerhaft +1 → GREEN_PULSE im Leerlauf.
Dieser Hook wird vom Core im finally-Block des Review-Threads gefeuert
und stellt die Symmetrie her. Idempotent: _apply_counter_delta klemmt
bei 0 (P-032), ein doppelter Aufruf ist harmlos.
"""
self._apply_counter_delta("chat_profile", -1)
def on_session_reset(self, **kwargs) -> None:
"""Hook: on_session_reset → alle Counter auf 0 (P-032 Fix).