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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user