2 Commits

Author SHA1 Message Date
Bernd (Hermes) ec7c6144d8 P0+P1 Fixes: ARCHIVAR_ENABLE_LLM, Dead-Code, should_stay_in_room Diff, Reconnect-Onboarding, FAISS-Rebuild, stay_tracker+onboarding Persistenz
P0-1: install.sh schreibt ARCHIVAR_ENABLE_LLM=true in rocketchat.env bei MULTIROOM=true
P0-2: Dead-Code adapter.py:1359-1435 entfernt (Silent-Copy-Pfad im v6-Flow unerreichbar)
P0-3: should_stay_in_room() gibt jetzt 'origin_first'/'sticky'/None statt True/False/None
P1-1: Reconnect-Onboarding prüft jetzt auf neue Räume statt immer zu skippen
P1-2: _set_catch_all() baut FAISS-Index nach Catch-All-Wechsel neu
P1-3: stay_tracker in ArchivarState persistiert (archivar_state.json)
P1-4: onboarding_state in ArchivarState persistiert (archivar_state.json)
2026-07-12 17:13:42 +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