fix: extend visual summary timeout to 120 seconds

This commit is contained in:
chenmingxuan committed 2026-09-29 00:56:41 +08:00
1 parent 4465a2e199
commit 59f458205d
13 files changed
+39 -12

No files matched your search

+10 -1
View File
@@ -16,11 +16,12 @@
import pytest
from artemis.config import AgentGlobalConfig
from artemis.config import AgentGlobalConfig, load_agent_config
def test_memory_defaults():
cfg = AgentGlobalConfig.model_validate({})
assert cfg.flash.step_summarizer.timeout_seconds == 120.0
# 2 per the 2026-09-01 on-device baseline (serial queue at 1 pushed
# summary-ready P90 past the scrub-edge grace window).
assert cfg.memory.runtime.max_concurrency == 2
@@ -41,6 +42,14 @@ def test_memory_defaults():
assert cfg.memory.transcript.hard_ratio == 0.9
def test_visual_summary_timeout_config(monkeypatch):
monkeypatch.delenv("ARTEMIS_STEP_SUMMARIZER_TIMEOUT_SECONDS", raising=False)
assert load_agent_config().flash.step_summarizer.timeout_seconds == 120.0
monkeypatch.setenv("ARTEMIS_STEP_SUMMARIZER_TIMEOUT_SECONDS", "75")
assert load_agent_config().flash.step_summarizer.timeout_seconds == 75.0
def test_transcript_ratio_ladder_is_validated():
"""start <= soft <= hard, all within [0, 1]: the defaults pass, a
crossed pair is rejected with a clear message."""