FIX 1: numpy/faiss-cpu pip install in venv nach Plugin-Deployment
in allen drei Pfaden (perform_update, perform_update_only,
main interactive). Archivar braucht diese Packages für
FAISS Phase-1 RoomIndex — ohne sie crasht der Import.
FIX 2: Zirkelimport adapter.py ↔ archivar/adapter_integration.py
gebrochen. _room_context/_room_context_lock werden jetzt
lazy innerhalb handle_feedback_response() importiert.
FIX 3: Minimale room-map.json (version=1, rooms={}) wird als
Template bereitgestellt und bei Clean-Install ins
Datenverzeichnis kopiert. RC-Skill-Onboarding erstellt
die vollständige, maschinen-spezifische Version.
FIX 4: Archivar-Symlink liegt bereits korrekt im HERMES_DIR
(Commit 5c8026c). Keine Änderung nötig.
Gateway startete nach Reboot nicht automatisch, weil install.sh nur
stop+start ausführte, aber den Service nie enabled hat.
Fix: systemctl --user enable hermes-gateway in perform_update(),
perform_update_only() und main script — jeweils nach reset-failed,
vor stop. enable ist idempotent, daher bei jedem Durchlauf sicher.
Root Cause: hermes gateway install installiert die Unit, aber ob es
sie enabled ist unklar. Explizites enable stellt Autostart sicher.
Review: Rainer (Session 20260620_155910_6559a0)
Patch: Don (Session 20260620_155930_3dce08)
Guard 1 — Syntax-Check VOR Deployment:
python3 -m py_compile für alle .py-Dateien im plugin/-Ordner.
Bei SyntaxError → Abbruch mit Meldung.
Guard 2 — Vollständigkeits-Check NACH Deployment:
diff zwischen plugin/-Ordner und Zielpfad.
Fehlende Dateien → Abbruch mit Liste.
Guard 3 — Pycache-Löschung NACH Deployment:
find -name '__pycache__' -delete + find -name '*.pyc' -delete.
Verhindert Stale-Bytecode-Falle.
Alle 3 Guards in deploy_plugin_files() integriert.
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.
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.
This fixes the issue where cp and mkdir in the while loop were running in a subshell
due to pipe usage, preventing proper error propagation with 'set -euo pipefail'.
Using process substitution ensures the while loop runs in the main process.
Root cause: 'ollama-cloud' is a built-in Hermes provider. Putting it under
custom_providers with api_key_env broke key resolution. Built-in providers
use their own env-var conventions (OLLAMA_API_KEY, not HERMES_API_KEY).
Changes:
- template: model.provider=ollama-cloud, base_url=ollama.com/v1 (no custom_providers)
- template: gateway.platforms.rocketchat.home_channel with PLACEHOLDER vars
- install.sh: sed-replace placeholders with actual RC_URL/RC_HOME_CHANNEL
- template: .env now uses OLLAMA_API_KEY (what ollama-cloud actually reads)
- Bug #11 (export prefix in rocketchat.env) still needs push
EnvironmentFile in systemd drop-ins parses KEY=VALUE only.
'export' prefix caused systemd to silently ignore all vars,
leaving the Gateway with 'No messaging platforms enabled'.
Bug found during .45 test run #2.
Fixes#9 (custom_providers missing — fresh installs had no config.yaml/.env,
so gateway had no provider to connect to) and #10 (systemd unit had no
EnvironmentFile, so gateway couldn't read rocketchat.env/.env → crash-loop).
Templates provisioned on first install only (no overwrites):
- templates/config.yaml: minimal working config with ollama-cloud provider
- templates/.env: API key placeholder
- templates/hermes-gateway-env.conf: systemd drop-in wiring rocketchat.env + .env
The local initialization RC_URL="" on line 318 was destroying
environment variables before the non-interactive block (line 330+)
could read them via ${RC_URL:-${ROCKETCHAT_BASE_URL:-}}.
Fix: use ${RC_URL:-} to preserve values already set in the environment.