Commit Graph

163 Commits

Author SHA1 Message Date
Hermes Agent 0a7702475f docs: Archivar-Lernsystem Nutzer-Anleitung — Move-Request + Clarify verständlich erklärt 2026-06-13 10:05:19 +02:00
Hermes Agent 4bb1ccbc82 feat(archivar): Lernsystem-Verdrahtung — Move-Request + Clarify lernen Keyword-Gewichte
- RoutingDecision um matched_keywords-Feld erweitert (router.py)
- _extract_routing_keywords-Stub entfernt, Keywords aus Decision durchreichen (adapter_integration.py)
- _routed_messages nach classify_and_route() befüllen (adapter.py)
- move_req-Dict um message_id erweitert (adapter.py)
- Move-Request-Handler: handle_feedback_response mit confirm/stay/never aufrufen (adapter.py)
- handle_clarification_response: update_keyword_weight für ambige Keywords lernen (adapter_integration.py)
- Clarify-Frage-Text: "Ich möchte mir das für die Zukunft richtig merken..." (config.py)

Feedback-Mapping: 1️⃣ Rüber=confirm, 2️⃣ Hier=stay, 3️⃣ Nein=never, 📝/💬=stay, 📋=confirm
2026-06-13 09:50:54 +02:00
Hermes Agent f27de836dc chore(archivar): Test an Single-Room-Regel angepasst, room-map.json auf v2 aktualisiert, Model-Check-Architecture-Skizze 2026-06-13 05:55:33 +02:00
Hermes Agent 2b53537638 fix(adapter): stay_in_room vom Router respektieren
Bug: Der Router setzte stay_in_room=True (excluded_rooms, Meta-Fragen,
Keyword-Match auf Ursprungsraum), aber der Adapter ignorierte das Flag.
Er prüfte nur target_room != room_id → routete trotzdem.

Symptom: 'Die RC Beschreibung klingt toll' aus #Rocketchat-Plugin
löste Move-Request aus, obwohl:
- excluded_rooms → stay_in_room=True
- 'RC' matcht keywords_100 'rc' → Ziel = Ursprungsraum

Fix: Eine Zeile in der Routing-Bedingung:
  and not getattr(decision, 'stay_in_room', False)

Jetzt respektiert der Adapter, wenn der Router sagt 'bleib hier'.
2026-06-12 20:43:45 +02:00
Hermes Agent 6b97ccfad9 feat(archivar): Selbstlernendes Keyword-Gewicht-System (Teil 2)
- KeywordWeightEntry + ManualOverride Dataclasses in archivar_state.py
- Lernalgorithmus: confirm (+0.1), stay (-0.05), never (0.0+sticky)
- Promotion: 3 confirmations + weight ≥0.85 → keywords_100
- Degradation + zeitbasierte Abwertung (Decay: 30d -10%, 90d -30%)
- Cold-Start: Bootstrap Tag 1-7 (LR=0.2), Tag 8+ (LR=0.1)
- Gewichtetes Scoring in find_room_by_keywords()
- Feedback-Schleife in adapter_integration.py nach Move-Request-Auflösung
- 54 Tests grün (inkl. 8 neue für gewichtetes Scoring)
2026-06-12 19:57:46 +02:00
Hermes Agent 9177c99088 docs(archivar): Vertiefte Architekturskizze — selbstlernendes Keyword-Gewicht-System (Teil 2)
- Präziser Lernalgorithmus mit gedämpfter Lernrate (0.1)
- Drei Feedback-Typen: ✅Ja (+0.1), 📍Hier (-0.05), 📌Generell (0.0+Sticky)
- Promotion-Schwelle: 3 Bestätigungen + Gewicht ≥0.85
- Degradation + zeitbasierte Abwertung (Decay)
- JSON-Schema für keyword_weights in archivar_state.json
- Cold-Start: Bootstrap-Strategie (Tag 1-7: 0.2, danach 0.1)
- Manuelle Overrides mit Vorrang
2026-06-12 19:31:46 +02:00
Hermes Agent 017dc2b69c feat(archivar): Zweistufiges Keyword-Evidenz-System — 100% + context 2026-06-12 19:30:27 +02:00
Hermes Agent 53dd436a86 feat(archivar): Origin-Priorität im Keyword-Matcher + Architekturskizzen
- room_map.py: find_room_by_keywords() prüft zuerst Ursprungsraum (Origin-First)
- router.py: reicht origin_room_id an Keyword-Matcher durch
- docs/keyword-matcher-origin-priority.md: Architekturskizze (Rainer)
- docs/move-request-button-ux.md: Architekturskizze Button-UX (Rainer)
- docs/keyword-evidence-system.md: Architekturskizze Evidenz-System (Rainer)
2026-06-12 19:25:36 +02:00
Hermes Agent 281c2af9dd fix(room-map): RC-Plugin-Keywords von 5 auf 13 erweitert
Problem: Keyword-Matcher (min_score=2) fand keine Matches für
Nachrichten wie 'Projekt-Sync RC-Plugin' oder 'Gateway-Ausfall'.
Nur 'rc' matchte → Score 1 < Threshold 2 → Catch-All.

Neue Keywords: plugin, gateway, adapter, deployment, install.sh,
button, sync, hermes — decken jetzt alle typischen Plugin-Themen ab.

Score-Beispiele nach Fix:
- 'Projekt-Sync RC-Plugin abgeschlossen' → rc(1) + sync(1) + plugin(1) = 3 ✅
- 'Gateway-Ausfall Analyse' → gateway(1) + rc(0) = 1 ⚠️ (braucht 'plugin' im Text)
- 'install.sh Deployment-Pfad' → install.sh(1) + deployment(1) = 2 ✅
2026-06-12 18:11:43 +02:00
Hermes Agent 7e6e9fb15d fix(adapter): Move-Request Button-UX — erklärender Text vor Buttons 2026-06-12 17:52:37 +02:00
Hermes Agent 53ffcf9b4d fix(install.sh): Verifikation prüft gateway_state.json statt Journal-Grep
Problem: Journal-Grep suchte nur nach 'rocketchat.*connected' —
wenn Telegram die einzige Plattform war (Discovery-Bug), galt
die Verifikation trotzdem als erfolgreich.

Fix: python3 liest gateway_state.json und prüft BEIDE Plattformen:
rocketchat=connected UND telegram=connected. Erst dann gilt
der Gateway-Start als erfolgreich.

Robuster als Journal-Grep: state.json ist die Ground Truth,
nicht Log-Zeilen die fehlen können.
2026-06-12 17:30:23 +02:00
Hermes Agent 213831757a fix(install.sh): State-Cleanup vor Gateway-Restart in allen drei Pfaden
Problem: systemctl restart hing in 'deactivating' (Gateway-Drain bis 60s).
Der neue Prozess startete nie — deployter Code war nicht aktiv.

Fix in allen drei Restart-Pfaden (--update-only, --update, Erstinstallation):
1. State-Cleanup: gateway_state.json + .lock + .tmp löschen
   → verhindert Discovery-Bug (Platform-Verlust nach SIGTERM)
   → verhindert Auto-Resume-Crash-Loop
2. reset-failed: systemd-Failure-Counter zurücksetzen
3. stop + wait (bis 60s): Gateway sauber stoppen vor Neustart
4. start: Gateway frisch starten (statt restart)

Verify-Timeout von 15s auf 60s erhöht (Gateway braucht länger nach Cleanup).
Verify-Pattern erweitert: 'rocketchat.*connected' + '✓ rocketchat connected'
2026-06-12 08:33:21 +02:00
Hermes Agent 6eda62b94c docs: README + Community-Post komplett überarbeitet
README.md (13026 bytes):
- Archivar v3 dokumentiert (3-stage classifier, User-Flow C, Button-Garantie)
- Move-Request mit nativen Buttons (✅Ja/📍Hier/📌Generell)
- Auto-Onboarding, FAKT→Obsidian, Sticky Rooms
- Deployment-Pfad-Klärung (~/.hermes/... vs /usr/local/lib/...)
- Troubleshooting um 5 neue Einträge erweitert (Discovery Bug, __pycache__,
  install.sh path mismatch, Button-Text-Fallback, ENOTFOUND https)
- Button-Garantie als eigenes Feature hervorgehoben

COMMUNITY_POST.md (6857 bytes) — NEU:
- Use-Case-getriebener Community-Beitrag (DevOps, Personal Assistant, PM)
- Button-Garantie als Alleinstellungsmerkmal
- FAQ-Sektion (SaaS, Multi-User, Permissions, Gateway-Restarts)
- Quick-Start mit install.sh
2026-06-12 08:30:32 +02:00
Hermes Agent 6348578678 fix(adapter): Move-Request auf native Action-Buttons umgestellt
- Move-Request sendet jetzt native RC Buttons (✅Ja, 📍Hier, 📌Generell)
  statt nummerierter Textoptionen — Button-Garantie eingehalten
- Response-Handler erkennt MOVE_REQ:room_id::choice Payloads
- Fallback auf Textoptionen bei Button-Send-Fehler
- Altes numerisches Format (1/2/3) weiterhin unterstützt
2026-06-12 07:29:26 +02:00
Hermes Agent a261c771fc fix(archivar): wire button_send_callback — Archivar now sends native RC buttons
ArchivarMessageHandler was initialized without button_send_callback,
so every clarification request fell back to text-only ('Antworte mit
einer Zahl: 1 = Ja...'). Added _send_archivar_buttons() method that
translates Archivar button format into native Rocket.Chat Action-Buttons
with msg_in_chat_window=True. Also marks room in _rooms_with_pending_questions
so the response stays in the same room.
2026-06-12 07:24:57 +02:00
Hermes Agent c23127c9c5 fix(archivar): sync __init__.py barrel imports + test_router.py to v3 class names
- __init__.py: MessageClassifier→IntentClassifier, MessageRouter→BidirectionalRouter, CONFIDENCE_THRESHOLD→CONFIDENCE_THRESHOLDS, added ROOM_MAP_PATH, ARCHIVAR_STATE_PATH, ArchivarState
- config.py: added missing ROOM_MAP_PATH constant (imported by router.py)
- test_router.py: updated imports + BidirectionalRouter(state=ArchivarState()) constructor

Root cause: Miguel's v3 refactoring renamed classes but didn't update the barrel file. Gateway failed with 'No adapter available for rocketchat' because archivar/__init__.py imported non-existent names.
2026-06-11 22:25:35 +02:00
Hermes Agent 58749914fc feat(archivar): Add Q-Gate Code-Review for Archivar v3 implementation 2026-06-11 21:49:35 +02:00
Hermes Agent dba856ffab feat(archivar): Implement Button-Garantie und ArchivarState-Integration für Archivar v3 2026-06-11 21:44:38 +02:00
Hermes Agent b11c2c9fe7 feat(archivar): Implement bidirektionales Routing für Archivar v3 2026-06-11 21:42:26 +02:00
Hermes Agent 87f95b818f feat(archivar): Implement Persistenz-Layer (archivar_state.py) für Archivar v3 2026-06-11 21:40:44 +02:00
Hermes Agent 5e8e9c9a9c feat(archivar): Implement Intent-Erkenner und Confidence-Framework für Archivar v3 2026-06-11 21:40:21 +02:00
Hermes Agent 92bdb396a9 feat(archivar): Update config.py für Archivar v3 - Neue CATEGORY_TEXTS, Intent-Typen und Konfiguration 2026-06-11 21:39:21 +02:00
Hermes Agent 50e7639aec Add Archivar v3 architecture sketch - Complete architecture reset with new intent-based classification, bidirectional routing, confidence framework, persistence layer, and button guarantee 2026-06-11 21:37:16 +02:00
Hermes Agent 43ef3e6a91 fix(adapter): Button-Detection False-Positive — :: in Text matched Normalsprache
'::' in text (Zeile 571) klassifizierte JEDE Nachricht mit :: als
BUTTON_CLICK — z.B. Andreas' ':: Ich brauche den Wetterbericht'.
Der Agent sah die Nachricht nie → keine Antwort trotz grünem Status.

Fix: text.split('::', 1)[0].strip() != '' — erkennt nur echte
Button-Payloads (wo vor :: tatsächlich Inhalt steht wie CLARIFY:id).
':: Nachricht' → split[0] ist leer → kein Button → MessageType.TEXT.

Root Cause: Ein 3-Zeilen-ODER-Detector, der drei Payload-Formate
in einer Variable vermischt. Fragil weil Substring-Match.
2026-06-09 21:56:46 +02:00
Hermes Agent e7e6b66ba2 fix(adapter): CLARIFY-Trennzeichen-Bug — :: vs : zwischen clarify_id und choice
_build_custom_buttons() sendet Payloads mit :: (Doppel-Doppelpunkt),
aber _process_incoming() splittete mit text.split(':', 2) → choice=':1'
→ ':1'.isdigit()=False → Clarify nie resolved → Gateway Timeout.

Fix: Zweistufiger Split — erst '::' prüfen (neues Format),
dann ':' als Fallback (Other-Button). Beide Formate werden erkannt:
- CLARIFY:id::1 (numerischer Button)
- CLARIFY:id:other (Other-Button)

Architektur: Rainer | Implementierung: Miguel | QG: Rainer F1-F5 bestanden
2026-06-09 21:32:07 +02:00
Hermes Agent b21a8bec19 feat(archivar): zweistufige Keyword-Optimierung mit min_score=2
- find_room_by_keywords() mit min_score Parameter (default=2)
  Nur wenn best_score >= min_score → Raum returned, sonst None
  → Router fällt zu Embedding/LLM-Klassifikator durch
- verhindert Fehlrouting bei einzelnen Keyword-Treffern (plugin, etc.)

Architektur: Rainer | Implementierung: Miguel | QG: Rainer F1-F5 bestanden
2026-06-09 21:13:27 +02:00
Hermes Agent 2fe574cf71 feat(rc-adapter): native clarify buttons via REST attachments
Render clarify prompts with Rocket.Chat action buttons instead of
fallback text lists ('Reply with the number'). Full flow:

send_clarify():
- choices non-empty: builds RC buttons via _build_custom_buttons(),
  one per choice + '✏️ Other' button
- clarify_id encoded as CLARIFY:{id}:{idx} or CLARIFY:{id}:other
- stores clarify_id→session_key in _clarify_state
- fallback to super().send_clarify() on empty choices or REST failure

_process_incoming():
- intercepts DDP messages starting with 'CLARIFY:'
- 'other' token → mark_awaiting_text() for text capture
- numeric token → resolve_gateway_clarify() with choice text
- returns immediately (no agent routing) for button clicks

__init__:
- adds self._clarify_state dict for session key mapping
2026-06-09 20:55:18 +02:00
Hermes Agent 09c327b5a1 fix(archivar): integrate '::' into bypass branch, not Archivar call
The uncommitted diff from 06.06. had a bug: '::' (button response
marker) was placed in the wrong elif branch, routing it through the
Archivar instead of bypassing it.

Fixed: '::' detection moved into the top-level bypass condition alongside
is_button_response and _rooms_with_pending_questions. The dead
'elif room_type == d and is_auftrag' guard removed (redundant — DM
orders never reach this branch). Last elif promoted to else.
2026-06-09 16:13:14 +02:00
Hermes Agent 0f8dc06f15 fix(archivar): echte Rocket.Chat Action-Buttons statt numerischer Optionen
Der Adapter kann schon lange Buttons (send() parst [[BUTTONS:custom]] seit
Monaten). Move-Requests nutzten trotzdem nur numerische Text-Optionen.

Jetzt: _build_custom_buttons() direkt im Move-Request-Flow. Rocket.Chat
Action-Buttons [Ja, rüberkopieren] [Hier bleiben] [Generell hier bleiben]
— klickbar, keine Zahlen, kein Kontext-Verlust.
2026-06-08 19:06:35 +02:00
Hermes Agent ffb7cafff6 fix(archivar): Move-Request NICHT returnen — Originaltext an Agent durchreichen
Kritischer Bug: Nach 'Hier bleiben'/'Generell hier bleiben' wurde return
aufgerufen → der Original-Auftragstext ging verloren, nur '3' erreichte
den Agenten → Agent antwortete verwirrt.

Jetzt: Originaltext aus move_req['text'] wiederherstellen, skip_archivar=True
setzen, als normale Nachricht durchreichen. Der Agent verarbeitet den Auftrag
normal weiter — der User hat nur das Routing entschieden.
2026-06-08 16:05:55 +02:00
Hermes Agent 62c996c4da fix(archivar): Move-Request vor Archivar, room-basiert, numerische Antworten
Drei kritische Bugs behoben:
1. Move-Request-Prüfung VOR Archivar-Klassifikation — '3' wurde vorher als
   thematische Frage ins Catch-All kopiert, jetzt wird die Antwort erkannt
2. _pending_move_requests von msg_id auf room_id umgestellt — jede Antwort
   mit neuer msg_id schlug vorher fehl
3. Numerische Antworten (1/2/3) werden jetzt direkt erkannt, nicht nur
   Text-Matches ('rüberkopieren'/'hier bleiben'/'generell')
2026-06-08 15:53:51 +02:00
Hermes Agent f47ffc93f4 fix(archivar): Raum-Name-Fallback + nummerierte Optionen statt Buttons
- Bug 1: 'Zielraum' als Platzhalter → jetzt 3-Stufen-Fallback (matched_room_name → room_info → room_map → ID-Fragment)
- Bug 2: Native Buttons existieren nicht im Adapter → nummerierte Text-Optionen (1/2/3)
2026-06-08 14:32:31 +02:00
Hermes Agent e7ed81c189 fix: send() method structure — restore button-parsing + REST-post code that fell out of method body
The send() method in adapter.py had a structural defect where the
button-parsing, template-handling, and rest.post_message code (98 lines)
was at module level instead of inside the send() method body.

send() ended after room-resolution without a return statement, causing
it to return None. _send_with_retry() in base.py then crashed with
AttributeError: 'NoneType' object has no attribute 'success'.

This made every Rocket.Chat response silently fail — the agent
processed messages but could never deliver replies.

Fix: moved the orphaned code block back into the send() method body
where it belongs, after the room-resolution logic and before
_find_fallback_room_for_user.
2026-06-08 11:33:59 +02:00
Hermes Agent 83a5d262c7 fix: User-Map-Fallback + LLM-Prompt-Fix
- User-Map: Fallback aus DM-Namen-Parsing + REST-API-Abfrage wenn usernames-Feld fehlt (Rainer)
- LLM: max_tokens 10→5, Prompt verschärft auf Ein-Wort-Antwort (Raum-Name oder CATCH_ALL)
- Keine Erklärungen, keine Sätze — der Validator akzeptiert jetzt alle Antworten
- Vault-Doku: Rocket.Chat Plugin.md aktualisiert (User-Flow C, Bugfixes)
2026-06-08 07:40:04 +02:00
Hermes Agent af56280ebc fix(archivar): User-Flow C — Antwort bleibt im Ursprungsraum, Nachricht wird kopiert
DM-Aufträge werden nie geroutet. Bei thematischen Fragen: Silent Copy.
Bei Aufträgen: Buttons [Ja, rüberkopieren] [Hier bleiben] [Generell hier bleiben].

Architektur-Skizze: docs/archivar-user-flow-c.md
2026-06-08 06:44:40 +02:00
Hermes Agent 5e9c4ece77 fix(adapter): button clicks bypass Archivar routing
Button responses (`is_button_response`) are ALWAYS direct replies to an agent
question and carry a `question_id::choice` payload. Routing them through the
Archivar risked landing a one-character "A" in the catch-all room where the
agent would see it without the original question context.

Now button clicks skip `classify_and_route()` entirely and stay in whatever
room they originated from.
2026-06-06 20:43:36 +02:00
Hermes Agent ad852c1642 fix(archivar): doc_store writes to fact_store_path from room_map
DocumentationStore() now uses RoomMap.fact_store_path instead of the
hardcoded ~/.hermes/.../archivar_docs default. One-line change — the
doc_store is initialized after _load_room_map() so room_map is available.

This allows per-deployment configuration: in production, fact_store_path
points to /data/Wissensdatenbank/0100 Inbox so FAKT messages land in the
Obsidian vault's inbox for StartObsidian integration.
2026-06-06 20:32:13 +02:00
Hermes Agent 7140da3154 feat(onboarding): catch-all change via numeric answer, generic example
- Trigger now catches 'Name = Thema', '#Name', 'Raum:', digits, skip words
- After onboarding: numbered room list with Catch-All marker
- User can change Catch-All by replying with room number
- 'überspringen'/'skip' keeps current Catch-All
- Example text is generic (not project-specific): 'Projektraum = Entwicklung, ...'
2026-06-06 20:03:04 +02:00
Hermes Agent 72e8c8cb90 fix(onboarding): generic example, numbered rooms, catch-all change prompt
- Example text: 'Projektraum = Entwicklung, Code-Reviews, ...' (not project-specific)
- Onboarding prompt: numbered list (1. Raum, 2. Raum, ...)
- After completion: shows all rooms with Catch-All marker, asks if change wanted
2026-06-06 20:01:02 +02:00
Hermes Agent ddc69167c1 fix(onboarding): remove # from display to prevent RC link rendering
- Onboarding message shows room names WITHOUT # (RC auto-links them)
- Parser accepts both 'Name' and '#Name' (case-insensitive match)
- Pattern: #? makes hash optional, matching against lstrip(#)
2026-06-06 19:58:31 +02:00
Hermes Agent 7d454f62b6 fix(onboarding): parse #Name = Thema format, auto-derive keywords, fix newlines
- Parser accepts '#Name = Thema' (no 'Raum:' prefix needed)
- _derive_keywords() extracts keywords from room name + theme
- Onboarding message uses real newlines (join list, not \n literals)
- Shows actual missing room names with '=' prompt, plus example
2026-06-06 19:51:34 +02:00
Hermes Agent 8591933d8d feat(archivar): auto-onboarding — room-map completeness check after gateway start
Implements the RC-Skill's promised room-map completeness check after
Adapter.connect(). Previously the adapter subscribed to rooms but never
verified they were all present in room-map.json. New rooms were
subscribed but invisible to the Archivar router.

Scope (~450 lines, 4 files):

- adapter_integration.py: check_room_map_completeness() compares
  subscribed rooms (filtered to c/p types) against RoomMap.
  Single-Room-Regel: 1 relevant room → auto catch_all, no interview.
  onboarding_active flag in _stats prevents re-triggering.

- room_map.py: add_or_update_room() for safe in-memory mutations,
  reload() for disk-to-memory sync without gateway restart,
  static save() for atomic file writes.

- adapter.py: connect() calls check after Archivar init, triggers
  _start_onboarding() if rooms missing. _process_incoming() intercepts
  'Raum: #Name = Thema' responses during active onboarding.

- test_auto_onboarding.py: 4 unit tests covering single-room
  auto-assign, multi-room detection, DM filtering, and already-
  complete map (no action).

Deployed to production: adapter.py + archivar/*.py copied to
Auslieferungspfad. Gateway restarted — no onboarding triggered
(map already complete).
2026-06-06 19:31:46 +02:00
Hermes Agent 63e0616d7a docs(architektur): auto-onboarding skizze — single-room regel ergänzt 2026-06-06 19:18:58 +02:00
Hermes Agent 3f480d5423 chore: add __pycache__/ to gitignore 2026-06-06 19:15:39 +02:00
Hermes Agent 4d35669174 fix: prevent room-map.json overwrite + is_unrouteable handler
ROOT CAUSE: install.sh --update-only blindly deployed room-map.json
from the repo (containing 'GENERAL' as catch_all) to the production
/home/bernd/.hermes/data/ directory, overwriting the machine-specific map.

FIXES (3 changes):

1. REMOVED room-map.json from repo + added to .gitignore
   This file is machine-specific data, not source code.

2. REMOVED room-map.json deploy from install.sh (both paths):
   - Normal install block (section 3.5)
   - --update-only emergency deploy (section 3.5)
   Replaced with comment: 'MACHINE-SPECIFIC — created by RC-Skill onboarding'

3. FIX adapter.py: is_unrouteable guard on ContextVar routing
   Before: ContextVar set to target_room even when unrouteable
   Result: 'Ich antworte im Zielraum.' note appeared, but Hermes
   couldn't deliver to unsubscribed room — answer lost silently.
   After: Forward block checks not getattr(decision, 'is_unrouteable', False)
   If unrouteable → stays in origin room, answers there normally.

PRODUCTION: Correct room-map.json deployed with 4 project rooms
+ DM catch_all on .101. Excluded rooms: multi-agent DM, testbot DM.
2026-06-06 18:53:11 +02:00
Hermes Agent 024a173c8d Fix Archivar forward note bug: Use rest.post_message() instead of self.send() to ensure note appears in origin room 2026-06-06 09:11:41 +02:00
Hermes Agent e3f9ee31f4 feat(archivar): Route-Antwort in Zielraum + Notiz im Ursprungsraum 2026-06-06 08:42:11 +02:00
Hermes Agent 1fca310228 feat(archivar): use handle_and_forward() in _process_incoming
Ersetzt classify_and_route() durch handle_and_forward().
Nachrichten werden jetzt klassifiziert UND automatisch in den
Zielraum kopiert, wenn target_room != origin_room.

send_callback ist bereits im ArchivarMessageHandler-Konstruktor
gesetzt (adapter.py:416).
2026-06-06 06:33:26 +02:00
Hermes Agent c98228ef6f fix(archivar): pass origin_room_id to classify_and_route()
Ohne diesen Parameter kann der Router:
- Multi-Agent-Raum nicht ausschließen (Schritt 0)
- Herkunft nicht in LLM-Room-Lookup einbeziehen
- Keine korrekte Catch-All-Validierung durchführen

Adapter hat room_id in _process_incoming() bereits verfügbar.
2026-06-06 06:30:20 +02:00
Hermes Agent 1afa822e6f Task 5: Neuen test_router.py mit 2 Integrationstests erstellt 2026-06-06 06:14:58 +02:00