Commit Graph

3 Commits

Author SHA1 Message Date
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 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