Files
Hermes_rocket.chat_Plugin/STATUS.md
T
Bernd (Hermes) f0f353747d fix(F93,F100): Adaptive Timeout mit Router verdrahtet — Cap 45s
_llm_room_lookup() nutzte statisch LLM_ROOM_LOOKUP_TIMEOUT (15s) als
asyncio.wait_for-Timeout. Das äußere statische Timeout schlug immer vor dem
inneren adaptiven Timeout (adaptive_timeout.current_timeout(), bis 59.3s) zu.

Fix: timeout = max(LLM_ROOM_LOOKUP_TIMEOUT,
                   min(adaptive_timeout.current_timeout(), ADAPTIVE_MAX_WAIT_FOR))

- ADAPTIVE_MAX_WAIT_FOR (45s, env ARCHIVAR_ADAPTIVE_MAX_WAIT_FOR) als Cap.
- LLM_ROOM_LOOKUP_TIMEOUT bleibt als Floor (Failsafe).
- Failsafe beim ersten Start (keine Kalibrierung): current_timeout() = 30s.
- 4 neue Tests (Floor/Cap/Failsafe/Mitte).

Rainer-Freigabe 15.09.: Vorher-Stand gesichert, Cap 45s, Nachher-Stand 24h
post-Deploy durch Bernd.

@implements: [F-93, F-100]
2026-09-15 20:27:36 +02:00

282 lines
26 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Projekt-STATUS — Hermes Rocket.Chat Plugin
> **Stand:** 15. September 2026 — `F93+F100` Adaptive-Timeout-Verdrahtung im Router: `_llm_room_lookup()` nutzt `timeout = max(LLM_ROOM_LOOKUP_TIMEOUT, min(adaptive_timeout.current_timeout(), ADAPTIVE_MAX_WAIT_FOR))` statt statisch 15s. Bug: äußeres statisches 15s-Timeout schlug immer vor dem inneren adaptiven Timeout (bis 59.3s) zu. Rainer-Freigabe 15.09. (3 Bedingungen: Vorher-Stand gesichert, Cap 45s, Nachher-Stand 24h post-Deploy durch Bernd). Neue Konstante `ADAPTIVE_MAX_WAIT_FOR` (env `ARCHIVAR_ADAPTIVE_MAX_WAIT_FOR`, Default 45.0). 4 neue Tests. **Gepusht auf origin/main.**
> **Letzter fachlicher Commit:** `ebd057e` — fix(F423): ::getcontext versionstoleranter Agent-Lookup — v0.19.0-Fallback
> **Gitea-Remote:** ✅ Synchron — `ebd057e` + `0d9275d` + `6e8854d` + `b61e19d` + `05531f1` gepusht auf origin/main.
> **Deployment:** ⚠️ .101 deployed bei `230edb9` (Pre-I2) — Butler-Kurator (`fe9ee21`+`fd983b6`+`7d18c4c`) + Stopword-Blocklist (`6cbea1b`) + F169 Reset-Endpoint (`44b2ada`) + F172 Pacing (`05531f1`) + F423 ::getcontext (`6e8854d`+`ebd057e`) noch nicht auf .101 deployt. Deployment via `install.sh --update-only --no-restart` (P-115). Gateway-Restart per Preflight-Briefing (P-111).
> **Uncommitted:** STATUS.md (dieses Update)
> **Deployment-Pfad:** `~/.hermes/plugins/platforms/rocketchat/`
> **Dev-Repo-Pfad:** `~/projekte/Hermes_rocket.chat_Plugin/plugin/`
---
## Deployment-Status (.101)
| Datei | Git MD5 (HEAD `677fdec`) | Deployed MD5 | Status |
|---|---|---|---|
| `adapter.py` | `ab1f0c30...` | `ab1f0c30...` | ✅ identisch |
| `__init__.py` | `f305e376...` | `f305e376...` | ✅ identisch |
| `rc_tools.py` | `1fd47d1d...` | `1fd47d1d...` | ✅ identisch |
| `conftest.py` | `9753e447...` | `9753e447...` | ✅ identisch |
| `crash_forensics.py` | `42cafee3...` | `42cafee3...` | ✅ identisch |
> Alle Plugin-Core-Dateien auf .101 entsprechen HEAD `677fdec`. `677fdec` ändert nur docs (`archivar/Analysen/`), keine Plugin-Core-Dateien. `30681e1` ändert nur `install.sh`. `adapter.py` wurde seit `0a436d4` (P-108) mehrfach geändert (12 Commits, u.a. P-108b `f382c8c`, P-112 `06a349b`, P-113 `207669d`, Butler V2/V3) und ist auf .101 aktuell deployt.
---
## Aktuelle Commits (Chronologisch, neueste zuerst — seit 11.08.)
| Commit | Beschreibung | Datum |
|---|---|---|
| `ebd057e` | fix(F423): ::getcontext versionstoleranter Agent-Lookup — v0.19.0-Fallback — _resolve_resident_agent() nutzt v0.21.0+ runner._resident_agent_for, v0.19.0 Fallback auf _running_agents + _agent_cache. Behebt 'Keine aktive Session' auf .45. 2 Dateien +126/-4, 4 neue Tests, @implements [F-423] | 08.09. |
| `0d9275d` | docs: STATUS.md — F172 Pacing + F169 Reset + F423 ::getcontext nachgetragen | 07.09. |
| `6e8854d` | feat(F423): ::getcontext Inline-Command — Context-Auslastung anzeigen — liest Token-Daten via GatewayRunner (session_input_tokens, context_length, max_tokens, threshold_tokens/percent), graceful degradation, registriert in ::hilfe, 7 Unit-Tests, @implements [F-423] | 07.09. |
| `b61e19d` | docs: STATUS.md — F169 Reset + F172 Pacing + F98-I2 Commits nachgetragen | 05.09. |
| `05531f1` | feat(F172): Human-Tempo-Pacing im Laborassistent-Harness — pacing.py (think/read/click/idle), Jitter ±20%, ENV/CLI-Config, F169-Reset vor Test-Start, Quota-Schutz, 22 Unit-Tests, @implements [F-172] | 05.09. |
| `44b2ada` | feat(F169): Reset-Endpoint für adaptiven LLM-Timeout (Voraussetzung F172 Pacing) — adaptive_timeout.py reset_timeout + in-flight-Zähler, classifier begin_call/end_call, adapter ::reset-timeout, rc_tools Tool, 10 A1c-Tests, 6 Dateien +344/-5 | 05.09. |
| `b957a35` | docs: STATUS.md — Butler-Kurator 5-stufige Pipeline (fe9ee21+fd983b6+7d18c4c) dokumentiert | 03.09. |
| `07b22f9` | fix(presence): Status-Text nur bei Aenderung senden (Text-Cache, 429-Risiko) — Andreas-Fund: 24 REST-Calls/min bei unveraendertem Text. Trennung Indikator/Text, 7 Tests, 195 Presence gruen, 2 Dateien +346/-9 | 02.09. |
| `766aa7e` | feat(F98-I2): UX-Buendel B8-B11 — ask_with_help + [H]-Hilfe + J/N-Konsistenz. 4 Commits (+318/-38, 40 Tests gruen). QG Rainer APPROVED (nach M1-Nachzug). | 02.09. |
| `3aa1c5a` | fix(F98-I2): Cascade-Reparatur B17 — FAISS 0-Raeume graceful skip | 02.09. |
| `a375895` | fix(F98-I2): State-Konsistenz B16 + Cascade B15 | 02.09. |
| `209daf8` | fix(F98-I2): Gateway-Konsolidierung B20/B12/B18/B21 | 02.09. |
| `76e1b32` | feat(F97): Kanban-Worker-Presence — Hook-Anbindung + Counter-Erweiterung, 3 Dateien +309/-5, 234-Z.-Test, 1967 passed | 02.09. |
| `00aecfa` | feat(archivar): Telemetrie um STAY/UNSICHER/TIMEOUT-Unterscheidung erweitern — 6 neue Zähler (llm_stay_sicher, llm_unsicher, llm_timeout, cloud_call_stay, cloud_call_route, no_llm_needed), 304-Z.-Test, 1950 passed | 02.09. |
| `21b1fd4` | feat(archivar): LLM_ROOM_PROMPT um UNSICHER erweitern + Red-Flag-Logik anpassen — STAY/UNSICHER-Unterscheidung im Prompt, 325-Z.-Test, 6 Dateien +466/-57 | 02.09. |
| `9798a3e` | feat(F100): Self-Check Stufe 4b (Router-E2E) + Runtime-Watchdog — 9 Dateien +902/-9, 241+131-Z.-Tests, watchdog_alert.py neu | 02.09. |
| `6edf167` | feat(F98-I3): B22 Aktivitätsindikator + B23 dynamische LLM-Auswahl — install.sh +271/-13, 266-Z.-Test | 02.09. |
| `230edb9` | feat(F98): compute_cascade Decision-Matrix — 7 Fixes (P-173, P-177–P-182) — zentrale Cascade-Architektur (PROVIDER × MULTIROOM → OLLAMA/MODEL_PULL/FAISS), 18 Tests, 91 passed | 01.09. |
| `daa1d05` | fix(F93): QG Round-1 — 3 Push-Blocker behoben (F6a Parse-Fehler→success=False, F6b Dead-Code self._timeout entfernt, F4 negative-n-Sanitizer) | 01.09. |
| `656fe38` | docs: STATUS.md — F93 Adaptiver LLM-Timeout dokumentiert (8b106f5) | 31.08. |
| `8b106f5` | feat(F93): Adaptiver LLM-Timeout — selbstkalibrierend (Welford + Toleranzband, ersetzt starre 30s; 24 A1c-Tests) | 31.08. |
| `6066ef6` | feat(F-119): MAIL_DETAIL-Button-Handler + Thread-Reply (tmid) — Proton-Mail-Ergebnis-Karte | 31.08. |
| `19d2301` | merge: Fix C (::reasoning Wire-Wert + Probe-Warnung, P-168) nach main | 31.08. |
| `cc41c46` | fix(reasoning): ::reasoning status zeigt Wire-Wert + Probe-Warnung (Fix C, P-168; adapter.py + Tests, Branch fix/reasoning-glm53-none-mapping) | 31.08. |
| `b8f4628` | fix(presence): WV-002 REST-Exception-Logging verfeinern (_rest_set_status; +319/−18, 218-Z.-Test) (QG Rainer APPROVED) | 31.08. |
| `3d7482a` | docs: STATUS.md — Verifikations-Heartbeat 30.08. (P-164-Rollover quittiert) + Docs-Commits 0f8dc6d/562cf11/5a6de60 ergänzt, 29.08.-Reihenfolge korrigiert | 30.08. |
| `5a6de60` | docs: STATUS.md — Status-Text-Fix (6def904) + F97-Design-Doku (12b73d3) dokumentiert | 29.08. |
| `12b73d3` | docs: F97 Design-Analyse Kanban-Worker-Presence (Rainer, 40 KB — Basis für F97-Implementierung nach Andreas-Freigabe) | 29.08. |
| `6def904` | fix(presence): GREEN-Phasen sagen 'Hauptagent verfuegbar' statt 'beschaeftigt' (Andreas-Fund 16:14, Rainer-QG APPROVED, 6 Unit-Tests) | 29.08. |
| `562cf11` | docs: STATUS.md — install.sh-Härtungen dokumentiert (P-146/1aa028b-Kopf, 7a8d0c5+1aa028b-Tabelle) | 29.08. |
| `1aa028b` | fix(install): P-147 HOME-Absicherung — Agent-Kontext-Guard (guard_home() warnt weich vor Fehl-Deploy ins Profil-Home, P-119-Klasse) | 29.08. |
| `0f8dc6d` | docs: STATUS.md — Raum-Routing-Fix dokumentiert (P-108c 3ad0c55 + P-143 7a8d0c5) | 29.08. |
| `3ad0c55` | fix(P-108c): Send-Pfad-Härtung — Antwort-Ziel MUSS Origin-Raum sein (P-145) | 29.08. |
| `7a8d0c5` | fix(install): P-143 Toolset-Registrierung nach platform_toolsets.rocketchat statt legacy top-level toolsets | 29.08. |
| `9746f34` | docs: STATUS.md inhaltlich wiederhergestellt aus 275f067, ergänzt um 22 Commits (26.08.-27.08., inkl. 30681e1+677fdec) | 28.08. |
| `677fdec` | docs: Rainer-Architekturanalysen hinzugefügt (Butler-Lernkonzept V1+V2, P-108 Szenario B) | 27.08. |
| `30681e1` | fix(install): P-116 Stale-Check um Timestamp ergänzt | 27.08. |
| `90bad7d` | feat(hilfe): Subcommands für multiroom/busy/allowalways/setfakt/curate ergänzen | 26.08. |
| `89ca4d5` | fix(hilfe): vollständigen Hilfetext über zwei Teile ausgeben statt kürzen | 26.08. |
| `f74d206` | fix(hilfe): HTTP 400 — Hilfe-Seite überschreitet Payload-Limit | 26.08. |
| `7bcab47` | fix(install): ensure_toolset() YAML-Struktur nicht brechen — platform_toolsets-Check | 26.08. |
| `fe05cef` | fix(version): commit-hash aktualisiert auf 6dcd2f9 | 26.08. |
| `6dcd2f9` | fix(hilfe): Butler mode Subcommands + Routing-Modus-Hinweis ergänzen | 26.08. |
| `00359f7` | chore: Version auf v10.3 setzen (Butler V3 — Silent Collector + :: keywords review) | 26.08. |
| `8c4029e` | feat(V3): :: butler mode Kommando + Config (Commit 5) | 26.08. |
| `ca5b723` | feat(V3): :: keywords status Subcommand (Commit 4) | 26.08. |
| `45b2ddd` | feat(V3): :: keywords review Kommando (Commit 3) | 26.08. |
| `96dd1bc` | feat(V3): Silent Collection Mode — butler_learning_mode (Commit 2) | 26.08. |
| `03a50c0` | feat(V3): Silent Collector State — pending_keywords + collect_keyword (Commit 1) | 26.08. |
| `e023471` | chore: Version auf v10.2 setzen (Butler-Lernkonzept V2) | 26.08. |
| `793351b` | fix(archivar): room_name_to_topic aus Lern-Pfad entfernt + Audit-Skript (V2) | 26.08. |
| `dd59a18` | feat(archivar): User-Keyword-Override-Handler + Validierung + F5.3-Override (V2) | 26.08. |
| `ba47bb7` | feat(archivar): ask_routing_learning_choice — 4 Buttons + Keyword-Transparenz (V2) | 26.08. |
| `d37b8c2` | feat(archivar): extract_thematic_keyword() — Schicht 4 Keyword-Extraktion (Butler-Lernkonzept V2) | 26.08. |
| `207669d` | fix(archivar): Early-Return für Bot-Eigene Nachrichten — kein Archivar/Lernen für eigene Antworten (P-113) | 26.08. |
| `06a349b` | fix(archivar): Blocklist gegen Raumnamen als gelernte Keywords + F5.3 Cap (P-112) | 26.08. |
| `f382c8c` | fix(archivar): keywords_100 match_keyword → match_keyword_exact in room_map.py (P-108b) | 26.08. |
| `1f76e43` | fix(install): P-160 Guard — deploy_plugin() prüft def register in __init__.py | 25.08. |
| `78c71dc` | docs: P-108 test_v8_4_3.py Doc-String korrigiert — altes Fall-through-Verhalten aktualisiert | 25.08. |
| `0a436d4` | fix(archivar): P-108 Sticky-Scope bleibt im Ursprungsraum bei themenarmer Folge-Nachricht | 25.08. |
| `5302846` | docs: STATUS.md aktualisiert — Stand 24.08. 20:05, Commit 56bd33c, alle Commits gepusht | 25.08. |
| `56bd33c` | fix(presence): P-096 Viola-Auflage — SEED-Stale-Reset für orphaned early_seed-Task | 24.08. |
| `c3c6d35` | feat(presence): P-096 SEED — Schachuhr H=1 sofort bei Nachrichteneingang | 24.08. |
| `c5653bd` | feat(presence): P-096 Staffelstab — Zwei-Person-States-Modell (H, S, MODAL) | 24.08. |
| `ad431b5` | fix(presence): P-106 Phasen-Übergänge senden trotz 429-Cooldown (force=True) | 24.08. |
| `f2754c7` | fix(archivar): Butler-Lern-Rückfrage triggert nicht mehr auf Self-Messages | 24.08. |
| `e621a9c` | fix(archivar): Red-Flag-Timeout HARD durchsetzen statt nachträglich feststellen | 24.08. |
| `521e0e5` | fix(repair): Timeout-Zuverlässigkeit für install.sh --repair | 24.08. |
| `c348061` | fix(presence): P-103 Folge-Bug — force=True Status-Send nach Clarify-Replay | 24.08. |
| `c44e19d` | docs: Abschnitt 1 restrukturiert — Hauptziel menschenähnliche Kommunikation zuerst, logische Kette Hauptziel -> Bedeutung -> Architektur | 24.08. |
| `35eddd6` | fix(presence): P-103 Clarify-Modal Status-Reset blockiert durch 429-Cooldown | 24.08. |
| `3379bb0` | docs: Status-Indikator korrigiert — Reihenfolge grün/rot/gelb, ⬛ für pulsierend | 24.08. |
| `fea25f4` | docs: Funktionsbeschreibung v10.1 — Doku gegen Code korrigiert (4 Buttons, Themenring, Widerspruch-Flow, vollständige Befehlsliste) | 24.08. |
| `a53d7d3` | docs: install --repair Doku, v9.0 Funktionsbeschreibung, test timeouts 120s, STATUS.md update, Rainer Bug-Review | 24.08. |
| `d5aec93` | feat(archivar): Stufe 5 Commit 3 — Red-Flag Auto-Promotion + Learning-by-Use | 23.08. |
| `1a053c6` | feat(archivar): Stufe 5 Commit 2 — ask_routing_learning_choice() + Butler-Handler | 23.08. |
| `4906ee3` | feat(archivar): Stufe 5 Commit 1 — record_routing_decision() + scope-Parameter | 23.08. |
| `059673b` | feat(archivar): Stufe 4 Red Flag Detection + Bernd Activation | 23.08. |
| `5170180` | feat(F92): Self-Check check_components() im Plugin — 6-stufige Background-Diagnose | 23.08. |
| `626ebf3` | feat(install): Stufe 7 Plugin-Symlink-Repair in --repair (P-002 Prävention) | 23.08. |
| `cb9fd1c` | fix(clarify): P-102 Button-Parsing Off-by-one + Feature 53 Plain-Digit + Defense-in-Depth | 23.08. |
| `e8852fc` | docs: ::reasoning Schalter in Inline-Befehle-Doku ergänzt (inkl. none für lokale Inference) | 23.08. |
| `0840c13` | fix(archivar): LLM-Modell via ARCHIVAR_LLM_MODEL konfigurierbar (Default qwen2.5:7b lokal) | 22.08. |
| `0c66775` | fix(presence): P-094 main_agent aus GC-Reset entfernen, P-095 DDP_TIMEOUT_S 3.0→1.0 | 22.08. |
| `cead11d` | fix(presence): P-093 chat_profile stale GC-Reset mit 60s-Timeout | 22.08. |
| `b6f532a` | fix(presence): P-090+P-091 429 spiral — backoff N=3 successes + adaptive pulse interval | 22.08. |
| `bc4e180` | P-085: Diagnose-Log in _drift_correction einbauen (Vorbereitung) | 20.08. |
| `faae77b` | feat(Phase3/C): Fallback Move-Request statt Auto-Route bei unzugänglichem Zielraum | 20.08. |
| `94b29ba` | feat(Phase2/A): Runtime-Guard User-Mitgliedschafts-Check | 20.08. |
| `a51a9bb` | feat(Phase1/B): user_visible Flag — Auto-Route User-Zugriff-Schutz | 20.08. |
| `6f430dc` | feat(V10.1): PLUGIN_VERSION-Konstante + Versionsanzeige in ::status | 20.08. |
| `b05010f` | test(live_rc): test_09 Auto-Route-Widerspruch-Flow (4 Szenarien) | 20.08. |
| `a887d48` | fix(HOTFIX-3): Originalnachricht nach Widerspruch-Clarify an Agenten dispatchen | 20.08. |
| `bbb3667` | fix(HOTFIX-2): _recent_auto_routes vor Archivar-Handler-Block initialisieren | 20.08. |
| `86f4eb6` | fix(HOTFIX): Widerspruch-Clarify nur nach tatsächlicher Auto-Route | 20.08. |
| `67ef518` | fix(QG-VETO): P1-Blocker Negation + WIDERSPRUCH-Allow-Liste + State-Clear | 20.08. |
| `43a02c7` | feat(P1): Auto-Route-Widerspruch-Flow — detect_routing_contradiction + Clarify | 20.08. |
| `92455d7` | fix(P-079b): Cache-Skip auch für normalen Puls (GREEN_PULSE/RED_PULSE) | 19.08. |
| `ed6f1d5` | feat: ::compress Inline-Command | 19.08. |
| `7d36dd1` | test: Triagie pre-existing Failures (1 entfernt, 10 xfail, 1 fixed) | 19.08. |
| `5ecb2dc` | fix(STETS-GELB): Message-Cache-Reset bei Phasen-Übergang + Heartbeat bei STATIC-Phasen | 19.08. |
| `9ea8541` | fix(P-063): STETS-GELB — 3 Fixes (P-063-Verschiebung, setPresence, Heartbeat) | 19.08. |
| `0e30720` | feat: ::reasoning Inline-Command | 19.08. |
| `6ed7116` | fix(P-079): Modal-Puls Cache-Skip — rot fest statt pulsierend | 18.08. |
| `f7cbe7d` | fix(P-075): crash_forensics.py an reales gateway_state.json-Schema anpassen | 15.08. |
| `8af0c03` | fix(P-074c): gateway_state.json updated_at ist ISO-String, nicht Unix-Float | 15.08. |
| `0700f40` | fix(P-074): Crash-Forensik Pfad-Mismatch + SIGKILL-Klassifikation | 15.08. |
| `0deb3a5` | fix(P-073): crash_forensics-Import im Gateway-Kontext — expliziter sys.path-Eintrag | 15.08. |
| `8dc62f1` | fix(P-072): Crash-Forensik Race-Condition — start_time-Vergleich bei PID-Match | 14.08. |
| `bb91300` | fix(crash_forensics): P0-Schema-Fixes + P1-Takeover-Fix + Integrationstest | 14.08. |
| `438d4bc` | plugin: Post-Crash-Forensik + skip_background_review-Integration | 14.08. |
| `10c52cd` | fix(P-067): send_clarify aktiviert Clarify-Modal-Puls | 13.08. |
| `9018683` | fix(P-066-followup): send_clarify nutzt button_builder-Pipeline | 13.08. |
| `2ffb7cb` | fix(P-066): Clarify-Buttons gerendert + deutsche Labels | 13.08. |
| `0ac5031` | tune(P2): adaptive pause factor ×3 → ×6 | 13.08. |
| `4ad0cf5` | feat(B7): Natürliche Sprache als Hilfetrigger | 13.08. |
| `5363405` | fix(P-064+P-065): Hook-Registrierung in connect() + Onboarding ACTIVE-Guard | 13.08. |
| `3471d8e` | fix(P-063): RC-Status-Reset nach Gateway-Neustart + Drift-Korrektur | 13.08. |
| `3fa3b59` | fix: stay_tracker nur bei stay_here (Option 2) | 13.08. |
| `db06190` | fix(P-061): restliche V8.6-Zombie-Referenzen entfernt | 13.08. |
| `379140d` | fix(P-060-followup): V8.6 PresenceEngine Methodenaufrufe entfernt | 13.08. |
| `71ade40` | fix(P-060): ungeschützte _pulse_controller-Referenzen entfernt | 12.08. |
| `da08382` | fix: P-057 Folgefix + P-058 DM-Ausschluss-Korrektion | 12.08. |
| `da9517f` | fix: P-059 — PresenceEngine coalesce_ms/pulse_interval Inkompatibilität | 12.08. |
| `2cb506c` | fix: P-056 + P-057 + P-058 — Themenring, stay_once neutral, Button 4 | 12.08. |
| `400bdd5` | test: P-054 + P-055 — Unit-Tests | 12.08. |
| `fed5656` | fix: P-054 + P-055 — Onboarding-State-Bug und Clarify-Dispatch-Schleife | 12.08. |
| `0d6db77` | test(live_rc): test_08_clarify | 12.08. |
| `cd84fd3` | fix(P-052): Modal-Puls ignoriert Cooldown | 12.08. |
| `328532b` | fix(P-051): action_id in allen Button-Dicts (RC 6.x Rendering-Fix) | 12.08. |
| `338fa14` | feat(P-044): install.sh-Migration pip → offizieller Hermes-Installer | 12.08. |
| `5fc3dbd` | fix: entferne doppelte clear_clarify_modal()-Blöcke | 11.08. |
| `a743914` | feat: P-049 Clarify-Modal + P-047 Mobile-Buttons | 11.08. |
---
## Behobene Pitfalls (dieser Sprint)
| P-ID | Problem | Status |
|---|---|---|
| P-044 | pip deprecated → offizieller Hermes-Installer | ✅ Migration implementiert |
| P-051 | Clarify-Buttons ohne action_id → RC 6.x ignoriert | ✅ gefixt, Mobile bestätigt |
| P-052 | Modal-Puls blockiert durch Cooldown | ✅ gefixt |
| P-053 | Self-Improvement-Loop crasht Gateway während Clarify | ✅ gefixt |
| P-054 | In-Memory Onboarding-State nach Restart leer | ✅ 3-Stage Fallback |
| P-055 | Clarify-Dispatch-Schleife (stay_once + Nachklärungs-Buttons) | ✅ skip_direct_dispatch |
| P-056 | Themenring greift nicht nach stay_here (Room-ID-Mismatch) | ✅ _normalize_room_id |
| P-057 | stay_once lernt falsch (neutral statt negativ) | ✅ feedback_type='neutral' |
| P-058 | Button 4 "Falsch geroutet" (reject feedback_type) | ✅ implementiert + DM-Ausschluss |
| P-059 | PresenceEngine coalesce_ms/pulse_interval Inkompatibilität | ✅ reverted zu away_grace_s |
| P-060 | V9-Refactor: ungeschützte _pulse_controller-Referenzen | ✅ entfernt |
| P-061 | V8.6-Zombie-Methoden in adapter.py | ✅ alle entfernt |
| P-063 | Drift-Korrektur Auto-Inkrement + fehlender RC-Status-Reset | ✅ gefixt |
| P-064 | _register_presence_hooks() nie aufgerufen — Status permanent GRÜN | ✅ in connect() verdrahtet |
| P-065 | _is_onboarding_phase_active() behandelt ACTIVE als laufend | ✅ aufgespalten |
| P-066 | send_clarify baut Buttons manuell — keine Pipeline-Features | ✅ button_builder genutzt |
| P-067 | send_clarify aktiviert Clarify-Modal-Puls nie | ✅ set_clarify_modal verdrahtet |
| P-072 | Crash-Forensik Race-Condition — Core-Heartbeat überschreibt PID vor Plugin-Connect | ✅ start_time-Vergleich bei PID-Match (14.08., .45 deployed) |
| P-073 | crash_forensics-Import schlägt im Gateway-Kontext fehl (sys.path) | ✅ expliziter sys.path-Eintrag (15.08.) |
| P-074 | Crash-Forensik Pfad-Mismatch + SIGKILL-Klassifikation | ✅ gefixt (15.08.) |
| P-074c | gateway_state.json updated_at ist ISO-String, nicht Unix-Float | ✅ gefixt (15.08.) |
| P-075 | crash_forensics.py an reales gateway_state.json-Schema angepasst | ✅ gefixt (15.08.) |
| P-076 | background_review.py ist Core-Code, nicht Plugin-Code | ✅ erkannt — Core-Änderung als eigener Deploy-Schritt (18.08.) |
| P-077 | _review_fork_ran-Flag muss VOR run_conversation gesetzt werden | ✅ gefixt — Flag vor run_conversation, idempotenter Clamp (18.08.) |
| P-079 | Modal-Puls Cache-Skip — rot fest statt pulsierend | ✅ gefixt — _clarify_modal überspringt Cache (18.08.) |
| P-079b | Normaler Puls (GREEN_PULSE/RED_PULSE) gecacht — ~10s-Takt statt 2,5s | ✅ gefixt — Puls-Phasen überspringen Cache (19.08.) |
| P-080 | Veralteter Snapshot — apt dist-upgrade als Testvoraussetzung vergessen | ✅ dokumentiert (19.08.) — Prävention in Test-Doku |
| P-081 | busy_input_mode=interrupt als Default schluckt Nachrichten bei Messaging-Bots | ✅ gelöst — queue-Modus aktiv (19.08.) |
| P-082 | ContextVar token mismatch bei parallelen Nachrichten — Antworten blockiert | 🔲 OFFEN — Plugin-Bug, Miguel fixen |
| P-083 | HIER_HER-Pattern Negations-Lookahead — 'passt hier nicht' fälschlich als Widerspruch | ✅ gefixt — Negative-Lookbehind-Regex (20.08.) |
| P-084 | detect_routing_contradiction nur Negation — positive Formulierung nicht erkannt | ✅ gefixt — positive Formeln + angebunden (20.08.) |
| P-108 | Topic-Scoped Sticky route Folge-Nachricht ohne klares Topic in falschen Raum | ✅ GEFIXT (25.08., `0a436d4`) — B2-Block setzt `_should_classify=False`, kein Fall-through zum Archivar |
| P-108a | Sticky-Erneuerung im Archivar-Fallthrough widerspricht B2-Bypass | ✅ GEFIXT (25.08., `0a436d4`) — `_sticky_bypassed_this_turn`-Flag verhindert ungeprüfte Sticky-Erneuerung |
| P-108b | Wahrheitsquellen-Divergenz keywords_100-Matcher — room_map nutzt match_keyword (Fuzzy), booster nutzt match_keyword_exact | ✅ GEFIXT (26.08., `f382c8c`) — room_map.py auf match_keyword_exact umgestellt |
| P-112 | Butler lernt Raumname als Keyword | ✅ GEFIXT (26.08., `06a349b`) — Blocklist gegen Raumnamen + F5.3 Cap |
| P-113 | Archivar analysiert Bot-Eigene Nachrichten — Lern-Kontamination durch Antworten | ✅ GEFIXT (26.08., `207669d`) — Early-Return für Bot-Eigene Nachrichten |
| P-116 | FAISS-Stale-Check nur versionsbasiert — room-map inhaltlich geändert ohne Versions-Bump | ✅ GEFIXT (27.08., `30681e1`) — Stale-Check um Timestamp ergänzt |
| P-160 | Root-`__init__.py` mit archivar-Inhalt überschrieben — "No messaging platforms enabled" | ✅ GEFIXT (25.08., Don) — register()-Guard in install.sh (`1f76e43`) |
| P-143 | Mail-Trigger-Antwort mit CLI-Warnung verschmutzt — Output-Router-Filter + Toolset-Registrierung | ✅ GEFIXT (29.08., `7a8d0c5`) — platform_toolsets.rocketchat statt legacy top-level toolsets |
| P-145 | Send-Pfad Prio 2 nutzt _THEMATIC_TARGET_ROOM bei User-Antworten — Antworten im falschen Raum | ✅ GEFIXT (29.08., `3ad0c55`) — Fallback ist letzter bekannter User-Raum, nie Archivar-Sticky-Target |
> **Gesamt:** 137 Pitfall-Einträge in `/data/Wissensdatenbank/0299 Projektdokumentationen/Pitfalls & Lessons Learned.md`.
---
## Meilensteine (live)
| Meilenstein | Status | Commit |
|---|---|---|
| P-096 Staffelstab-Prinzip — Archivar drückt die Schachuhr | ✅ live | `c5653bd`+`c3c6d35`+`56bd33c` |
| Stufe 4 — Red Flag Detection | ✅ live | `059673b` |
| Stufe 5 — Feedback-Learning (Butler-Prinzip) | ✅ live | `4906ee3`+`1a053c6`+`d5aec93` |
| F92 — Archivar Self-Check nach Gateway-Start | ✅ live | `5170180` |
| P-108 Topic-Scoped Sticky Scope-Fix | ✅ GEFIXT | `0a436d4` |
| P-108a Sticky-Erneuerung Fallthrough-Schutz | ✅ GEFIXT | `0a436d4` |
| P-108b keywords_100 match_keyword_exact in room_map | ✅ GEFIXT | `f382c8c` |
| P-112 Blocklist gegen Raumnamen als Keywords | ✅ GEFIXT | `06a349b` |
| P-113 Early-Return für Bot-Eigene Nachrichten | ✅ GEFIXT | `207669d` |
| Butler-Lernkonzept V2 (Keyword-Extraktion + Override + 4 Buttons) | ✅ live | `d37b8c2`+`ba47bb7`+`dd59a18`+`793351b` |
| Butler V3 — Silent Collector + :: keywords review | ✅ live | `03a50c0`+`96dd1bc`+`45b2ddd`+`ca5b723`+`8c4029e` |
| P-116 FAISS-Stale-Check um Timestamp ergänzt | ✅ GEFIXT | `30681e1` (install.sh) |
| P-160 Root-`__init__.py` register()-Guard | ✅ GEFIXT | `1f76e43` (install.sh) |
---
## GAP-Analyse (13.08. — verifiziert am Code)
| GAP | Stand 13.08. | Aufwand |
|---|---|---|
| B1: V7-2 Sticky thematisch | ✅ Implementiert | Nur Doku |
| B2: V7-3 "Jetzt verblasst" | ⚠️ Teilweise (24h-Verfall, adaptiv fehlt) | Mittel |
| B3: V7-4 Rückbezüge | ⚠️ Teilweise (sentence_markers.py, Verdrahtung fehlt) | Klein-Mittel |
| B4: V7-5 Pause-Definition | ⚠️ Teilweise (24h hard limit, adaptiv fehlt) | Klein |
| B5: Onboarding ohne Neustart | ⚠️ Teilweise (DDP-Events, Trigger fehlt) | Klein |
| B6: FAKT-Speicherort-Dialog | ✅ Implementiert (::setfakt) | Kein GAP |
| B7: Hilfeseite natürliche Sprache | ✅ Implementiert (Commit 4ad0cf5) | Kein GAP |
| B8: Taskliste (Notizzettel) | ⚠️ Teilweise (Counter + ::task, Nachhake-Logik fehlt) | Mittel |
---
## Offene Punkte
1. **P-050** — Rate-Limiting-Telemetrie vor Release prüfen
2. **P-041a Stufe 2** — Core-API `on_session_progress` Hook (langfristig)
3. ~~**install.sh-Migration** — Rainers X1-X7 Plan, Andreas' 3 Entscheidungen offen~~ **✅ ERLEDIGT (11.08.)** — A1/A2/A3 im Decision Log als ✅ Angenommen, Feature-Register Eintrag 62 (Commit `338fa14`), Pitfall P-044. Implementiert von Miguel.
4. **.45 Plugin** — ältere Version, Update ausstehend
5. **GAP B2/B4** — Adaptive Verfall-Logik (V7-3/V7-5)
6. **GAP B3** — Rückbezug-Verdrahtung (V7-4)
7. **GAP B5** — Onboarding-Trigger ohne Neustart
8. **GAP B8** — Taskliste-Nachhake-Logik
9. **24h-Rekonvaleszenz-Check** — Listener stabil seit 13.08.?
10. **Alte state.db-Backups** — Aufräumen WV 16.08. (4,6 GB, 5 Dateien)
11. **P-082** — ContextVar token mismatch bei parallelen Nachrichten (Plugin-Bug, Miguel)
12. **P-085** — Gezielter Fix stale `main_agent` Counter nach Diagnose-Log-Auswertung
13. **test_09 Assertions** — Live-Test-Assertions korrigieren (Backend funktioniert, Assertions mismatch)
14. **.45 Modell** — Qwen3.8-27B (DGX) vs. deepseek-v4-flash — Entscheidung ausstehend
15. **Tagesabschluss-Skill** — Standardisierter Skill für Tagesabschluss (STATUS.md, Daily Notes, Feature-Map)
16. **DGX .46 Stabilität** — Ursache Einfrieren ungeklärt, vLLM-Status unbestätigt
17. **Live-Test .45 P-108** — P-108 Sticky-Scope-Fix (`0a436d4`) auf .45 live verifizieren (bisher nur .101-Status erfasst)
18. **DDP-Rate-Limiter identifizieren** — welcher Rate-Limiter drosselt DDP-Status-Updates (siehe P-106/P-103 429-Cooldown-Kette)
---
## Wichtige Pfade
| Was | Pfad |
|---|---|
| **Dev-Repo** | `/home/bernd/projekte/Hermes_rocket.chat_Plugin/` |
| **Plugin im Repo** | `/home/bernd/projekte/Hermes_rocket.chat_Plugin/plugin/` |
| **Deployed** | `~/.hermes/plugins/platforms/rocketchat/` |
| **Gitea** | `git@192.168.180.47:Andreas/Hermes_rocket.chat_Plugin.git` (Port 222) |
| **Feature-Map** | `/data/Wissensdatenbank/0299 Projektdokumentationen/Feature-Maps/` |
| **Pitfalls** | `/data/Wissensdatenbank/0299 Projektdokumentationen/Pitfalls & Lessons Learned.md` |