feat(F172): Human-Tempo-Pacing im Laborassistent-Harness

Pacing-Modul (tests/live_rc/helpers/pacing.py) simuliert menschliche
Interaktionsrhythmen im Test-Runner — NICHT im Archivar (bleibt unverändert).

- 3 Pacing-Klassen: think (30-60s), read (2-5s), click (3-8s), idle (0s)
- Jitter ±20% (uniform) gegen Lock-Step mit Hintergrund-Tickern
- Konfiguration: ENV (RC_LIVE_*) > CLI-Flags > Code-Default
  --human-tempo={on,off}, --fast-mode, --pacing-{think,read,click}-{min,max}, --pacing-jitter
- F169-Reset: ::reset-timeout wird vor Test-Start gepostet (Rainers Veto)
- Quota-Schutz: avoided_llm_calls-Zähler protokolliert vermiedene LLM-Calls
- 22 Unit-Tests (tests/test_pacing.py) — Pacing wirkt, Kategorien korrekt,
  Config änderbar, Jitter-Korridor, Quota-Telemetrie
- test_01_echo als Referenz-Integration (pacer.wait('think') nach REST-Post)

@implements: [F-172]
This commit is contained in:
Bernd (Hermes)
2026-09-05 12:32:48 +02:00
parent 44b2ada193
commit 05531f1d8d
5 changed files with 793 additions and 0 deletions
+6
View File
@@ -39,6 +39,7 @@ def test_01_echo_bot_responds(
rate_limiter,
cleanup_messages,
bot_status_check,
pacer,
):
"""Smoke-Test: Bot antwortet auf eine einfache Nachricht.
@@ -56,6 +57,11 @@ def test_01_echo_bot_responds(
)
logger.info("Test 01: posted message %s", msg_id[:12])
# F172: Pacing — Mensch liest Antwort, überlegt, tippt (30-60s).
# Greift NUR im Test-Runner, NICHT im Archivar. Verhindert Bot-Feuerwerk
# (10-20 LLM-Calls/30s) und hält F120/F169 unter realer Last.
pacer.wait("think")
# Step 2: Wait for bot response
try:
response = wait_for_bot_message(