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]
This commit is contained in:
Bernd (Hermes)
2026-09-15 20:27:36 +02:00
parent 7613ce65b6
commit f0f353747d
4 changed files with 210 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Projekt-STATUS — Hermes Rocket.Chat Plugin
> **Stand:** 8. September 2026 — `ebd057e` fix(F423): ::getcontext versionstoleranter Agent-Lookup — v0.19.0-Fallback. _resolve_resident_agent() als versionstoleranter Helfer: v0.21.0+ nutzt runner._resident_agent_for, v0.19.0 fallback auf _running_agents + _agent_cache. Behebt 'Keine aktive Session gefunden' auf .45 (v0.19.0). 4 neue Tests. **Gepusht auf origin/main.** Zuvor: `6e8854d` F423 ::getcontext, `05531f1` F172 Pacing, `44b2ada` F169 Reset-Endpoint.
> **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).