FAKT ist Dokumentation, keine Kommunikation — nie in Chat-Räume routen

Vier harte Änderungen:
1. config.py: ARCHIVAR_FAKT_ROOM existiert nicht mehr. FAKT wird
   niemals in ROOM_MAPPING aufgenommen — Env-Variable obsolet.
2. router.py: FAKT-Entscheidungen werden VOR der Subscription-
   Validierung als is_unrouteable markiert. Kein if/else, kein
   Ermessensspielraum.
3. adapter_integration.py: classify_and_route() legt FAKT automatisch
   im DocumentationStore ab (existiert bereits).
4. Env-Variable ARCHIVAR_FAKT_ROOM aus systemd env.conf entfernt.

Resultat: Nur FRAGE und ALARM werden jemals in Chat-Räume geroutet.
FAKT-Nachrichten wie 'CPU-Last bei 92%' sind reine Dokumentation —
sie landen als Markdown unter data/archivar_docs/fakt/
This commit is contained in:
Hermes Agent
2026-06-03 22:11:25 +02:00
parent 886e566e77
commit ccce90fdb0
2 changed files with 21 additions and 4 deletions
+13
View File
@@ -215,6 +215,19 @@ class MessageRouter:
project=project,
)
# ── FAKT = Dokumentation, niemals Kommunikation ────────────────
# Fakten werden ausschließlich im DocumentationStore abgelegt.
# Kein Routing, keine Chat-Raum-Weiterleitung — unabhängig von
# konfigurierten Räumen oder Subscription-Status.
if decision.category == "FAKT":
decision.is_unrouteable = True
decision.unrouteable_reason = (
"FAKT messages are documentation, not communication — "
"stored in doc_store, never forwarded to chat rooms"
)
logger.info("FAKT → doc_store: %.80s...", text)
return decision
# ── Subscription-Validierung ──────────────────────────────────
self._check_unrouteable(decision)
return decision